2 CLASS(XonoticHUDPowerupsDialog, XonoticRootDialog)
3 METHOD(XonoticHUDPowerupsDialog, fill, void(entity))
4 ATTRIB(XonoticHUDPowerupsDialog, title, string, _("Powerups Panel"))
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 ATTRIB(XonoticHUDPowerupsDialog, requiresConnection, float, true)
11 ENDCLASS(XonoticHUDPowerupsDialog)
15 void XonoticHUDPowerupsDialog_fill(entity me)
18 string panelname = "powerups";
20 DIALOG_HUDPANEL_COMMON();
23 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_powerups_progressbar", _("Enable status bar")));
25 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Status bar alignment:")));
26 setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
29 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "0", _("Left")));
30 setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
31 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "1", _("Right")));
32 setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
33 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "2", _("Inward")));
34 setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
35 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "3", _("Outward")));
36 setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
38 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Icon alignment:")));
41 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "0", _("Left")));
42 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "1", _("Right")));
43 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "2", _("Inward")));
44 me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "3", _("Outward")));
46 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_powerups_flip", _("Flip strength and shield positions")));