Xonotic
dialog_hudpanel_itemstime.qc
Go to the documentation of this file.
1
#include "
dialog_hudpanel_itemstime.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
textslider.qh
"
5
#include "
radiobutton.qh
"
6
#include "
checkbox.qh
"
7
#include "
slider.qh
"
8
9
void
XonoticHUDItemsTimeDialog_fill
(
entity
me)
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
}
makeXonoticRadioButton
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition:
radiobutton.qc:10
entity
entity() spawn
dialog_hudpanel_main_settings
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition:
util.qc:773
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition:
textlabel.qc:3
makeXonoticSlider
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition:
slider.qc:10
XonoticHUDItemsTimeDialog_fill
void XonoticHUDItemsTimeDialog_fill(entity me)
Definition:
dialog_hudpanel_itemstime.qc:9
checkbox.qh
dialog_hudpanel_itemstime.qh
slider.qh
textlabel.qh
textslider.qh
makeXonoticTextSlider
entity makeXonoticTextSlider(string theCvar)
Definition:
textslider.qc:10
radiobutton.qh
makeXonoticCheckBox
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition:
checkbox.qc:28
setDependent
void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax)
Definition:
util.qc:178
menu
xonotic
dialog_hudpanel_itemstime.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13