]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_powerups.c
Dialog per panel a bit annoying. Default cvars almost done. TODO: Color sliders....
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_powerups.c
1 #ifdef INTERFACE
2 CLASS(XonoticHUDPowerupsDialog) EXTENDS(XonoticRootDialog)
3         METHOD(XonoticHUDPowerupsDialog, fill, void(entity))
4         ATTRIB(XonoticHUDPowerupsDialog, title, string, "Powerups Panel Setup")
5         ATTRIB(XonoticHUDPowerupsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6         ATTRIB(XonoticHUDPowerupsDialog, intendedWidth, float, 0.4)
7         ATTRIB(XonoticHUDPowerupsDialog, rows, float, 15)
8         ATTRIB(XonoticHUDPowerupsDialog, columns, float, 4)
9         ATTRIB(XonoticHUDPowerupsDialog, name, string, "HUDpowerups")
10 ENDCLASS(XonoticHUDPowerupsDialog)
11 #endif
12
13 #ifdef IMPLEMENTATION
14 void fillXonoticHUDPowerupsDialog(entity me)
15 {
16         entity e;
17         me.TR(me);
18                 me.TR(me);
19                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_powerups", "On/Off"));
20                 me.TR(me);
21                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
22                                 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_powerups_bg_color_team"));
23                 me.TR(me);
24                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:"));
25                                 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_powerups_bg_alpha"));
26                 me.TR(me);
27                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_powerups_flip", "Flip"));
28                 me.TR(me);
29                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_powerups_mirror", "Mirror"));
30         me.TR(me);
31         //me.gotoRC(me, me.rows - 1, 0);
32                 //me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));
33 }
34 #endif