From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sun, 28 May 2023 06:19:08 +0000 (+0200) Subject: strafehud: remove center panel button which is deprecated by the center line of the... X-Git-Tag: xonotic-v0.8.6~37^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f76369394cd676245bfc300ce6c073813c9ec231;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: remove center panel button which is deprecated by the center line of the hud editor --- diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_strafehud.qc b/qcsrc/menu/xonotic/dialog_hudpanel_strafehud.qc index c94bef763..8e209abb6 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_strafehud.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_strafehud.qc @@ -7,14 +7,6 @@ #include "textlabel.qh" #include "textslider.qh" -void StrafeHUD_CenterPanel(entity btn, entity me) -{ - vector size = stov(str_cvar("hud_panel_strafehud_size")); - vector pos = stov(str_cvar("hud_panel_strafehud_pos")); - pos.x = 0.5 - size.x / 2; - cvar_set("hud_panel_strafehud_pos", strcat(ftos(pos.x), " ", ftos(pos.y))); -} - void StrafeHUD_ColorReset(entity btn, entity me) { cvar_set("hud_panel_strafehud_bar_accel_color", cvar_defstring("hud_panel_strafehud_bar_accel_color")); @@ -58,16 +50,10 @@ void XonoticHUDStrafeHUDDialog_fill(entity me) e.addValue(e, _("gradient"), "2"); e.configureXonoticTextSliderValues(e); me.TR(me); - me.TD(me, 1, 1.2, e = makeXonoticCheckBoxString("1", "0", "_hud_panel_strafehud_demo", _("Demo mode"))); - - me.TDempty(me, 0.4); - - me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, _("Range:"))); - me.TD(me, 1, 1.8, e = makeXonoticSlider(0, 360, 5, "hud_panel_strafehud_range")); + me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Range:"))); + me.TD(me, 1, 2.6, e = makeXonoticSlider(0, 360, 5, "hud_panel_strafehud_range")); me.TR(me); - me.TD(me, 1, 1.9, e = makeXonoticButton(_("Center panel"), '0 0 0')); - e.onClick = StrafeHUD_CenterPanel; - e.onClickEntity = me; + me.TD(me, 1, 1.9, e = makeXonoticCheckBoxString("1", "0", "_hud_panel_strafehud_demo", _("Demo mode"))); me.TDempty(me, 0.2);