]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/dialog_hudsetup_exit.c
move highlightedPanel updating to gamecode.qc to prepare for a little restructure...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudsetup_exit.c
index 968596c7ea85f727aab34d1b7cd45998d9334abb..8e58fd5ee02448438a3f7e7283b6d93759c44bc9 100644 (file)
@@ -1,11 +1,11 @@
 #ifdef INTERFACE
 CLASS(XonoticHUDExitDialog) EXTENDS(XonoticRootDialog)
        METHOD(XonoticHUDExitDialog, fill, void(entity))
-       ATTRIB(XonoticHUDExitDialog, title, string, "Exit HUD Setup")
+       ATTRIB(XonoticHUDExitDialog, title, string, "HUD Setup")
        ATTRIB(XonoticHUDExitDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
-       ATTRIB(XonoticHUDExitDialog, intendedWidth, float, 0.9)
-       ATTRIB(XonoticHUDExitDialog, rows, float, 22)
-       ATTRIB(XonoticHUDExitDialog, columns, float, 6.5)
+       ATTRIB(XonoticHUDExitDialog, intendedWidth, float, 0.4)
+       ATTRIB(XonoticHUDExitDialog, rows, float, 15)
+       ATTRIB(XonoticHUDExitDialog, columns, float, 4)
        ATTRIB(XonoticHUDExitDialog, name, string, "HUDExit")
 ENDCLASS(XonoticHUDExitDialog)
 
@@ -16,6 +16,42 @@ void fillXonoticHUDExitDialog(entity me)
 {
        entity e;
        me.TR(me);
-               me.TD(me, 2, 1, makeXonoticCommandButton("Exit Setup", '1 0.5 0.5', "_hud_configure 0", 1));
+               me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Settings:"));
+                       me.TR(me);
+                               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
+                       me.TR(me);
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_color_team"));
+                       me.TR(me);
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_alpha"));
+                       me.TR(me);
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Foreground Alpha:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_fg_alpha"));
+                       me.TR(me);
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Progress Bar Alpha:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_progressbar_alpha"));
+                       me.TR(me);
+                               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_configure_checkcollisions", "Collision Check"));
+       me.TR(me);
+       
+       me.TR(me);
+               me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
+
+                       me.TR(me);
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_color_team"));
+                       me.TR(me);      
+                               me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Dock Alpha:"));
+                                       me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_alpha"));
+       me.TR(me);
+       
+       me.TR(me);
+               me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
+
+                       me.TR(me);
+                               me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "hud_configure_grid", "Snap Panel to Grid"));
+                       me.gotoRC(me, me.rows - 1, 0);
+                               me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));
 }
 #endif