]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add jumpspeed option to the menu
authorotta8634 <k9wolf@pm.me>
Wed, 25 Sep 2024 10:45:21 +0000 (18:45 +0800)
committerotta8634 <k9wolf@pm.me>
Wed, 25 Sep 2024 10:45:21 +0000 (18:45 +0800)
It seems useful enough to be shown on the menu

qcsrc/menu/xonotic/dialog_hudpanel_physics.qc
qcsrc/menu/xonotic/dialog_hudpanel_physics.qh

index db966263f03e98d62b2ce06ee0e60b471479502f..63e7f8de1de0f75970e716b0fb62cf05fb6ded46 100644 (file)
@@ -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);
index 2a52bef91b8841e8f60e42a6f83e31f476e6363f..ac884a6d32dbd17f5016e8fa8dd729ddc677191e 100644 (file)
@@ -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)