14 pos.x = 0.5 - size.x / 2;
21 cvar_set(
"hud_panel_strafehud_bar_neutral_color",
cvar_defstring(
"hud_panel_strafehud_bar_neutral_color"));
22 cvar_set(
"hud_panel_strafehud_bar_overturn_color",
cvar_defstring(
"hud_panel_strafehud_bar_overturn_color"));
23 cvar_set(
"hud_panel_strafehud_angle_accel_color",
cvar_defstring(
"hud_panel_strafehud_angle_accel_color"));
24 cvar_set(
"hud_panel_strafehud_angle_neutral_color",
cvar_defstring(
"hud_panel_strafehud_angle_neutral_color"));
25 cvar_set(
"hud_panel_strafehud_angle_overturn_color",
cvar_defstring(
"hud_panel_strafehud_angle_overturn_color"));
26 cvar_set(
"hud_panel_strafehud_switch_active_color",
cvar_defstring(
"hud_panel_strafehud_switch_active_color"));
27 cvar_set(
"hud_panel_strafehud_switch_inactive_color",
cvar_defstring(
"hud_panel_strafehud_switch_inactive_color"));
34 string panelname =
"strafehud";
38 e.addValue(e, _(
"Disable"),
"0");
39 e.addValue(e, _(
"Enable"),
"1");
40 e.addValue(e, _(
"Enable even observing"),
"2");
41 e.addValue(e, _(
"Enable only in Race/CTS"),
"3");
42 e.configureXonoticTextSliderValues(e);
50 e.addValue(e, _(
"View angle centered"),
"0");
51 e.addValue(e, _(
"Velocity angle centered"),
"1");
52 e.configureXonoticTextSliderValues(e);
57 e.addValue(e, _(
"no styling"),
"0");
58 e.addValue(e, _(
"progress bar"),
"1");
59 e.addValue(e, _(
"gradient"),
"2");
60 e.configureXonoticTextSliderValues(e);
99 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_bar_neutral_color",
"hud_panel_strafehud_bar_neutral_color"));
101 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_bar_accel_color",
"hud_panel_strafehud_bar_accel_color"));
103 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_bar_overturn_color",
"hud_panel_strafehud_bar_overturn_color"));
107 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_angle_neutral_color",
"hud_panel_strafehud_angle_neutral_color"));
109 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_angle_accel_color",
"hud_panel_strafehud_angle_accel_color"));
111 me.TD(me, 2, 0.56666666, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_angle_overturn_color",
"hud_panel_strafehud_angle_overturn_color"));
114 me.TD(me, 1, 0.56666666, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_bar_neutral_alpha"));
116 me.TD(me, 1, 0.56666666, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_bar_accel_alpha"));
118 me.TD(me, 1, 0.56666666, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_bar_overturn_alpha"));
122 me.TD(me, 1, 1.9, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_angle_alpha"));
136 me.TD(me, 2, 0.85, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_switch_active_color",
"hud_panel_strafehud_switch_active_color"));
138 me.TD(me, 2, 0.85, e =
makeXonoticColorpickerString(
"hud_panel_strafehud_switch_inactive_color",
"hud_panel_strafehud_switch_inactive_color"));
145 me.TD(me, 1, 0.9, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_switch_active_alpha"));
147 me.TD(me, 1, 0.9, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_switch_inactive_alpha"));
151 me.TD(me, 1, 1.9, e =
makeXonoticSlider(0, 1, 0.1,
"hud_panel_strafehud_direction_alpha"));
void StrafeHUD_ColorReset(entity btn, entity me)
entity makeXonoticTextLabel(float theAlign, string theText)
void XonoticHUDStrafeHUDDialog_fill(entity me)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
entity makeXonoticCheckBoxString(string theYesValue, string theNoValue, string theCvar, string theText)
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"))
vector(float skel, float bonenum) _skel_get_boneabs_hidden
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
entity makeXonoticTextSlider(string theCvar)
void StrafeHUD_CenterPanel(entity btn, entity me)