2 CLASS(XonoticHUDItemsTimeDialog) EXTENDS(XonoticRootDialog)
3 METHOD(XonoticHUDItemsTimeDialog, fill, void(entity))
4 ATTRIB(XonoticHUDItemsTimeDialog, title, string, _("Items Time Panel"))
5 ATTRIB(XonoticHUDItemsTimeDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6 ATTRIB(XonoticHUDItemsTimeDialog, intendedWidth, float, 0.4)
7 ATTRIB(XonoticHUDItemsTimeDialog, rows, float, 15)
8 ATTRIB(XonoticHUDItemsTimeDialog, columns, float, 4)
9 ATTRIB(XonoticHUDItemsTimeDialog, name, string, "HUDitemstime")
10 ENDCLASS(XonoticHUDItemsTimeDialog)
14 void XonoticHUDItemsTimeDialog_fill(entity me)
17 string panelname = "itemstime";
20 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_itemstime"));
21 e.addValue(e, ZCTX(_("PNL^Disabled")), "0");
22 e.addValue(e, ZCTX(_("PNL^Enabled spectating")), "1");
23 e.addValue(e, ZCTX(_("PNL^Enabled even playing in warmup")), "2");
24 e.configureXonoticTextSliderValues(e);
26 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
29 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Align icon:")));
30 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left")));
31 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right")));
33 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar", _("Enable status bar")));
34 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar_reduced", _("Reduced")));
35 setDependent(e, "hud_panel_itemstime_progressbar", 1, 1);
37 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Text/icon ratio:")));
38 me.TD(me, 1, 2.6, e = makeXonoticSlider(2, 8, 0.5, "hud_panel_itemstime_ratio"));
40 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_showspawned", _("Show spawned items")));