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)
15 void fillXonoticHUDExitDialog(entity me)
19 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Settings:"));
21 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
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"));
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"));
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"));
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"));
36 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
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"));
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"));
45 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
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));