From ea6c552504197139ccb2a82600429e25bc154319 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Wed, 25 Sep 2024 18:45:21 +0800 Subject: [PATCH] Add jumpspeed option to the menu It seems useful enough to be shown on the menu --- qcsrc/menu/xonotic/dialog_hudpanel_physics.qc | 5 +++++ qcsrc/menu/xonotic/dialog_hudpanel_physics.qh | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_physics.qc b/qcsrc/menu/xonotic/dialog_hudpanel_physics.qc index db966263f..63e7f8de1 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_physics.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_physics.qc @@ -52,6 +52,11 @@ void XonoticHUDPhysicsDialog_fill(entity me) me.TD(me, 1, 3.8/2, e = makeXonoticCheckBox(0, "hud_panel_physics_topspeed", _("Top speed"))); me.TD(me, 1, 3.8/2, e = makeXonoticSlider(1, 10, 1, "hud_panel_physics_topspeed_time")); setDependent(e, "hud_panel_physics_topspeed", 1, 1); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 3.8/2, e = makeXonoticCheckBox(0, "hud_panel_physics_jumpspeed", _("Jump speed"))); + me.TD(me, 1, 3.8/2, e = makeXonoticSlider(1, 10, 1, "hud_panel_physics_jumpspeed_time")); + setDependent(e, "hud_panel_physics_jumpspeed", 1, 1); //acceleration me.TR(me); diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_physics.qh b/qcsrc/menu/xonotic/dialog_hudpanel_physics.qh index 2a52bef91..ac884a6d3 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_physics.qh +++ b/qcsrc/menu/xonotic/dialog_hudpanel_physics.qh @@ -6,9 +6,8 @@ CLASS(XonoticHUDPhysicsDialog, XonoticRootDialog) ATTRIB(XonoticHUDPhysicsDialog, title, string, _("Physics Panel")); ATTRIB(XonoticHUDPhysicsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT); ATTRIB(XonoticHUDPhysicsDialog, intendedWidth, float, 0.4); - ATTRIB(XonoticHUDPhysicsDialog, rows, float, 15.5); + ATTRIB(XonoticHUDPhysicsDialog, rows, float, 16.5); ATTRIB(XonoticHUDPhysicsDialog, columns, float, 4); ATTRIB(XonoticHUDPhysicsDialog, name, string, "HUDphysics"); - ATTRIB(XonoticHUDPhysicsDialog, sliderTopspeedTime, entity); ATTRIB(XonoticHUDPhysicsDialog, requiresConnection, float, true); ENDCLASS(XonoticHUDPhysicsDialog) -- 2.39.2