Go to the source code of this file.
◆ XonoticHUDAmmoDialog_fill()
Definition at line 8 of file dialog_hudpanel_ammo.qc.
9{
11 string panelname = "ammo";
12
14
16
17 me.TR(me);
18 me.TD(me, 1, 4, e =
makeXonoticCheckBox(0,
"hud_panel_ammo_onlycurrent", _(
"Show only current ammo type")));
19 me.TR(me);
20 me.TDempty(me, 0.2);
23 me.TD(me, 1, 2.4, e =
makeXonoticSlider(0.1, 1, 0.1,
"hud_panel_ammo_noncurrent_alpha"));
24 e.formatString = "%";
26 me.TR(me);
27 me.TDempty(me, 0.2);
31 me.TD(me, 1, 2.4, e =
makeXonoticSlider(0.1, 1, 0.1,
"hud_panel_ammo_noncurrent_scale"));
32 e.formatString = "%";
35
36 me.TR(me);
40
41 me.TR(me);
42 me.TD(me, 1, 4, e =
makeXonoticCheckBox(0,
"hud_panel_ammo_progressbar", _(
"Enable status bar")));
43}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
References dialog_hudpanel_main_checkbox(), dialog_hudpanel_main_settings(), entity(), makeXonoticCheckBox(), makeXonoticRadioButton(), makeXonoticSlider(), makeXonoticTextLabel(), setDependent(), setDependentAND(), and setDependentNOT().