Xonotic
dialog_hudpanel_healtharmor.qc
Go to the documentation of this file.
1
#include "
dialog_hudpanel_healtharmor.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
checkbox.qh
"
5
#include "
radiobutton.qh
"
6
7
void
XonoticHUDHealthArmorDialog_fill
(
entity
me)
8
{
9
entity
e;
10
string
panelname =
"healtharmor"
;
11
12
dialog_hudpanel_main_checkbox
(me, panelname);
13
14
dialog_hudpanel_main_settings
(me, panelname);
15
16
me.TR(me);
17
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_healtharmor_combined"
, _(
"Combine health and armor"
)));
18
me.TR(me);
19
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_healtharmor_progressbar"
, _(
"Enable status bar"
)));
20
me.TR(me);
21
me.TD(me, 1, 4, e =
makeXonoticTextLabel
(0, _(
"Status bar alignment:"
)));
22
setDependent
(e,
"hud_panel_healtharmor_progressbar"
, 1, 1);
23
me.TR(me);
24
me.TDempty(me, 0.2);
25
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(2,
"hud_panel_healtharmor_baralign"
,
"0"
, _(
"Left"
)));
26
setDependent
(e,
"hud_panel_healtharmor_progressbar"
, 1, 1);
27
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(2,
"hud_panel_healtharmor_baralign"
,
"1"
, _(
"Right"
)));
28
setDependent
(e,
"hud_panel_healtharmor_progressbar"
, 1, 1);
29
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(2,
"hud_panel_healtharmor_baralign"
,
"2"
, _(
"Inward"
)));
30
setDependent
(e,
"hud_panel_healtharmor_progressbar"
, 1, 1);
31
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(2,
"hud_panel_healtharmor_baralign"
,
"3"
, _(
"Outward"
)));
32
setDependent
(e,
"hud_panel_healtharmor_progressbar"
, 1, 1);
33
me.TR(me);
34
me.TD(me, 1, 4, e =
makeXonoticTextLabel
(0, _(
"Icon alignment:"
)));
35
me.TR(me);
36
me.TDempty(me, 0.2);
37
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(3,
"hud_panel_healtharmor_iconalign"
,
"0"
, _(
"Left"
)));
38
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(3,
"hud_panel_healtharmor_iconalign"
,
"1"
, _(
"Right"
)));
39
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(3,
"hud_panel_healtharmor_iconalign"
,
"2"
, _(
"Inward"
)));
40
me.TD(me, 1, 0.95, e =
makeXonoticRadioButton
(3,
"hud_panel_healtharmor_iconalign"
,
"3"
, _(
"Outward"
)));
41
me.TR(me);
42
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_healtharmor_flip"
, _(
"Flip health and armor positions"
)));
43
}
dialog_hudpanel_healtharmor.qh
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
dialog_hudpanel_main_checkbox
void dialog_hudpanel_main_checkbox(entity me, string panelname)
Definition:
util.qc:764
checkbox.qh
textlabel.qh
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
XonoticHUDHealthArmorDialog_fill
void XonoticHUDHealthArmorDialog_fill(entity me)
Definition:
dialog_hudpanel_healtharmor.qc:7
menu
xonotic
dialog_hudpanel_healtharmor.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13