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 fillXonoticHUDExitDialog(entity me)
19 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Settings:"));
22 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
24 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
25 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_color_team"));
27 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:"));
28 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_bg_alpha"));
30 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Foreground Alpha:"));
31 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_fg_alpha"));
33 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Progress Bar Alpha:"));
34 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_progressbar_alpha"));
36 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"));
49 me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
52 me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "hud_configure_grid", "Snap Panel to Grid"));
53 me.gotoRC(me, me.rows - 1, 0);
54 me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));