#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"));
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);