]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudsetup_exit.c
Merge remote branch 'refs/remotes/origin/mirceakitsune/highres_weapon_textures'
[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, "HUD Setup")
5         ATTRIB(XonoticHUDExitDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6         ATTRIB(XonoticHUDExitDialog, intendedWidth, float, 0.4)
7         ATTRIB(XonoticHUDExitDialog, rows, float, 15)
8         ATTRIB(XonoticHUDExitDialog, columns, float, 4)
9         ATTRIB(XonoticHUDExitDialog, name, string, "HUDExit")
10 ENDCLASS(XonoticHUDExitDialog)
11
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticHUDExitDialog_fill(entity me)
16 {
17         entity e;
18         me.TR(me);
19                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Defaults:"));
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, 2, e = makeXonoticTextLabel(0, "Team Color:"));
24                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_color_team"));
25                         me.TR(me);
26                                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:"));
27                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_alpha"));
28                         me.TR(me);
29                                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Foreground Alpha:"));
30                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_fg_alpha"));
31                         me.TR(me);
32                                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Progress Bar Alpha:"));
33                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_progressbar_alpha"));
34                         me.TR(me);
35                                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_configure_checkcollisions", "Collision Check"));
36         me.TR(me);
37         
38         me.TR(me);
39                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
40
41                         me.TR(me);
42                                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
43                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_color_team"));
44                         me.TR(me);      
45                                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Dock Alpha:"));
46                                         me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_alpha"));
47         me.TR(me);
48         
49         me.TR(me);
50                 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
51
52                         me.TR(me);
53                                 me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "hud_configure_grid", "Snap Panel to Grid"));
54                         me.gotoRC(me, me.rows - 1, 0);
55                                 me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));
56 }
57 #endif