Go to the source code of this file.
◆ XonoticHUDWeaponsDialog_fill()
Definition at line 10 of file dialog_hudpanel_weapons.qc.
References dialog_hudpanel_main_checkbox(), dialog_hudpanel_main_settings(), entity(), and makeXonoticTextLabel().
13 string panelname =
"weapons";
24 e.addValue(e, _(
"Never"),
"0");
25 for(i = 1; i <= 10; ++i)
27 e.configureXonoticTextSliderValues(e);
33 e.addValue(e,
ZCTX(_(
"EF^None")),
"0");
34 e.addValue(e, _(
"Alpha"),
"1");
35 e.addValue(e, _(
"Slide"),
"2");
36 e.addValue(e,
ZCTX(_(
"EF^Both")),
"3");
37 e.configureXonoticTextSliderValues(e);
43 me.TD(me, 1, 3.8, e =
makeXonoticCheckBox(0,
"hud_panel_weapons_onlyowned", _(
"Show only owned weapons")));
47 me.TD(me, 1, 2.6, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_weapons_noncurrent_alpha"));
51 me.TD(me, 1, 2.6, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_weapons_noncurrent_scale"));
62 me.TD(me, 1, 2.4, e =
makeXonoticSlider(0.1, 1, 0.05,
"hud_panel_weapons_label_scale"));
66 me.TD(me, 1, 3.8/2, e =
makeXonoticCheckBox(0,
"hud_panel_weapons_accuracy", _(
"Show Accuracy")));
72 me.TD(me, 1, 2.4, e =
makeXonoticSlider(0.1, 1, 0.1,
"hud_panel_weapons_ammo_alpha"));
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)