From: otta8634 Date: Wed, 25 Sep 2024 10:45:21 +0000 (+0800) Subject: Add jumpspeed option to the menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea6c552504197139ccb2a82600429e25bc154319;p=xonotic%2Fxonotic-data.pk3dir.git Add jumpspeed option to the menu It seems useful enough to be shown on the menu --- 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)