Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_hudpanel_itemstime.qc
Go to the documentation of this file.
1
#include "
dialog_hudpanel_itemstime.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
mixedslider.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 =
makeXonoticMixedSlider
(
"hud_panel_itemstime"
));
16
e.setValueSpace(e, e.valueSpace * 1.5);
17
e.addText(e, _(
"Disable"
), 0);
18
e.addText(e, _(
"Enable spectating"
), 1);
19
e.addText(e, _(
"Enable even playing in warmup"
), 2);
20
e.configureXonoticMixedSliderValues(e);
21
22
dialog_hudpanel_main_settings
(me, panelname);
23
24
me.TR(me);
25
me.TD(me, 1, 1.4, e =
makeXonoticTextLabel
(0, _(
"Text/icon ratio:"
)));
26
me.TD(me, 1, 2.6, e =
makeXonoticSlider
(2, 8, 0.5,
"hud_panel_itemstime_ratio"
));
27
me.TR(me);
28
me.TD(me, 1, 1.4, e =
makeXonoticTextLabel
(0, _(
"Icon alignment:"
)));
29
me.TD(me, 1, 2.6/2, e =
makeXonoticRadioButton
(2,
"hud_panel_itemstime_iconalign"
,
"0"
, _(
"Left"
)));
30
me.TD(me, 1, 2.6/2, e =
makeXonoticRadioButton
(2,
"hud_panel_itemstime_iconalign"
,
"1"
, _(
"Right"
)));
31
32
me.TR(me);
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);
36
37
me.TR(me);
38
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_itemstime_hidespawned"
, _(
"Hide spawned items"
)));
39
me.TR(me);
40
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_itemstime_hidebig"
, _(
"Hide big armor and health"
)));
41
me.TR(me);
42
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_itemstime_dynamicsize"
, _(
"Dynamic size"
)));
43
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
XonoticHUDItemsTimeDialog_fill
void XonoticHUDItemsTimeDialog_fill(entity me)
Definition
dialog_hudpanel_itemstime.qc:9
dialog_hudpanel_itemstime.qh
dialog_hudpanel_main_settings
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition
util.qc:731
setDependent
void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax)
Definition
util.qc:180
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
makeXonoticCheckBox
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition
checkbox.qc:28
checkbox.qh
makeXonoticMixedSlider
entity makeXonoticMixedSlider(string theCvar)
Definition
mixedslider.qc:10
mixedslider.qh
makeXonoticRadioButton
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition
radiobutton.qc:10
radiobutton.qh
makeXonoticSlider
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition
slider.qc:10
slider.qh
menu
xonotic
dialog_hudpanel_itemstime.qc
Generated on
for Xonotic QuakeC by
1.14.0