Xonotic
dialog_hudpanel_itemstime.qc
Go to the documentation of this file.
2 
3 #include "textlabel.qh"
4 #include "textslider.qh"
5 #include "radiobutton.qh"
6 #include "checkbox.qh"
7 #include "slider.qh"
8 
10 {
11  entity e;
12  string panelname = "itemstime";
13 
14  me.TR(me);
15  me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_itemstime"));
16  e.addValue(e, _("Disable"), "0");
17  e.addValue(e, _("Enable spectating"), "1");
18  e.addValue(e, _("Enable even playing in warmup"), "2");
19  e.configureXonoticTextSliderValues(e);
20 
21  dialog_hudpanel_main_settings(me, panelname);
22 
23  me.TR(me);
24  me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Align icon:")));
25  me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left")));
26  me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right")));
27  me.TR(me);
28  me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar", _("Enable status bar")));
29  me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar_reduced", _("Reduced")));
30  setDependent(e, "hud_panel_itemstime_progressbar", 1, 1);
31  me.TR(me);
32  me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Text/icon ratio:")));
33  me.TD(me, 1, 2.6, e = makeXonoticSlider(2, 8, 0.5, "hud_panel_itemstime_ratio"));
34  me.TR(me);
35  me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidespawned", _("Hide spawned items")));
36  me.TR(me);
37  me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidebig", _("Hide big armor and health")));
38  me.TR(me);
39  me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_dynamicsize", _("Dynamic size")));
40 }
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition: radiobutton.qc:10
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition: slider.qc:10
void XonoticHUDItemsTimeDialog_fill(entity me)
entity makeXonoticTextSlider(string theCvar)
Definition: textslider.qc:10
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition: checkbox.qc:28