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)
15 void XonoticHUDExitDialog_fill(entity me)
19 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Defaults:"));
21 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
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"));
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"));
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"));
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"));
35 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_configure_checkcollisions", "Collision Check"));
39 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
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"));
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"));
50 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
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));