1 #include "dialog_hudpanel_itemstime.qh"
2 #ifndef DIALOG_HUDPANEL_ITEMSTIME_H
3 #define DIALOG_HUDPANEL_ITEMSTIME_H
4 #include "rootdialog.qc"
5 CLASS(XonoticHUDItemsTimeDialog, XonoticRootDialog)
6 METHOD(XonoticHUDItemsTimeDialog, fill, void(entity));
7 ATTRIB(XonoticHUDItemsTimeDialog, title, string, _("Items Time Panel"))
8 ATTRIB(XonoticHUDItemsTimeDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
9 ATTRIB(XonoticHUDItemsTimeDialog, intendedWidth, float, 0.4)
10 ATTRIB(XonoticHUDItemsTimeDialog, rows, float, 15)
11 ATTRIB(XonoticHUDItemsTimeDialog, columns, float, 4)
12 ATTRIB(XonoticHUDItemsTimeDialog, name, string, "HUDitemstime")
13 ENDCLASS(XonoticHUDItemsTimeDialog)
17 void XonoticHUDItemsTimeDialog_fill(entity me)
20 string panelname = "itemstime";
23 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_itemstime"));
24 e.addValue(e, ZCTX(_("PNL^Disabled")), "0");
25 e.addValue(e, ZCTX(_("PNL^Enabled spectating")), "1");
26 e.addValue(e, ZCTX(_("PNL^Enabled even playing in warmup")), "2");
27 e.configureXonoticTextSliderValues(e);
29 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
32 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Align icon:")));
33 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left")));
34 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right")));
36 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar", _("Enable status bar")));
37 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar_reduced", _("Reduced")));
38 setDependent(e, "hud_panel_itemstime_progressbar", 1, 1);
40 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Text/icon ratio:")));
41 me.TD(me, 1, 2.6, e = makeXonoticSlider(2, 8, 0.5, "hud_panel_itemstime_ratio"));
43 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidespawned", _("Hide spawned items")));
45 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidelarge", _("Hide large armor and health")));
47 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_dynamicsize", _("Dynamic size")));