]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudsetup_exit.c
ce832355781df77eb9944e0028af0865de628b93
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudsetup_exit.c
1 #ifdef INTERFACE
2 CLASS(XonoticHUDExitDialog) EXTENDS(XonoticRootDialog)
3         METHOD(XonoticHUDExitDialog, fill, void(entity))
4         ATTRIB(XonoticHUDExitDialog, title, string, "Exit HUD Setup")
5         ATTRIB(XonoticHUDExitDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6         ATTRIB(XonoticHUDExitDialog, intendedWidth, float, 0.9)
7         ATTRIB(XonoticHUDExitDialog, rows, float, 22)
8         ATTRIB(XonoticHUDExitDialog, columns, float, 6.5)
9         ATTRIB(XonoticHUDExitDialog, name, string, "HUDExit")
10 ENDCLASS(XonoticHUDExitDialog)
11
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void fillXonoticHUDExitDialog(entity me)
16 {
17         entity e;
18         me.TR(me);
19                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Settings:"));
20         me.TR(me);
21                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
22         me.TR(me);
23                 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Team Color:"));
24                         me.TD(me, 1, 3, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_color_team"));
25         me.TR(me);
26                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, "Background Alpha:"));
27                         me.TD(me, 1, 3, e = makeXonoticSlider(0.1, 1, 0.01, "hud_bg_alpha"));
28         me.TR(me);
29                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, "Foreground Alpha:"));
30                         me.TD(me, 1, 3, e = makeXonoticSlider(0.1, 1, 0.01, "hud_fg_alpha"));
31         me.TR(me);
32                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, "Progress Bar Alpha:"));
33                         me.TD(me, 1, 3, e = makeXonoticSlider(0.1, 1, 0.01, "hud_progressbar_alpha"));
34         me.TR(me);
35         me.TR(me);
36                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
37         me.TR(me);
38                 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Team Color:"));
39                         me.TD(me, 1, 3, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_color_team"));
40         me.TR(me);      
41                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, "Dock Alpha:"));
42                         me.TD(me, 1, 3, e = makeXonoticSlider(0.1, 1, 0.01, "hud_dock_alpha"));
43         me.TR(me);
44         me.TR(me);
45                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
46         me.TR(me);
47                 me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "hud_configure_grid", "Snap Panel to Grid"));
48         me.gotoRC(me, me.rows - 1, 0);
49                 me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));
50 }
51 #endif