]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/dialog_hudpanel_physics.c
Merge branch 'master' into Mario/showspecs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_physics.c
index 466f4d1ee3f4352defa5289f28f3bce42c5ee04d..0144d6649bb5c0c4ecc831440a76a999bc2eea39 100644 (file)
@@ -8,6 +8,7 @@ CLASS(XonoticHUDPhysicsDialog) EXTENDS(XonoticRootDialog)
        ATTRIB(XonoticHUDPhysicsDialog, columns, float, 4)
        ATTRIB(XonoticHUDPhysicsDialog, name, string, "HUDphysics")
        ATTRIB(XonoticHUDPhysicsDialog, sliderTopspeedTime, entity, NULL)
+       ATTRIB(XonoticHUDPhysicsDialog, requiresConnection, float, TRUE)
 ENDCLASS(XonoticHUDPhysicsDialog)
 #endif
 
@@ -16,13 +17,13 @@ void XonoticHUDPhysicsDialog_fill(entity me)
 {
        entity e;
        string panelname = "physics";
-       float i;
 
        me.TR(me);
                me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_physics"));
                        e.addValue(e, _("Panel disabled"), "0");
-                       e.addValue(e, _("Panel enabled if not observing"), "1");
-                       e.addValue(e, _("Panel always enabled"), "2");
+                       e.addValue(e, _("Panel enabled"), "1");
+                       e.addValue(e, _("Panel enabled even observing"), "2");
+                       e.addValue(e, _("Panel enabled only in Race/CTS"), "3");
                        e.configureXonoticTextSliderValues(e);
 
        DIALOG_HUDPANEL_COMMON_NOTOGGLE();
@@ -41,7 +42,7 @@ void XonoticHUDPhysicsDialog_fill(entity me)
 
 //speed
        me.TR(me);
-               me.TD(me, 1, 1, e = makeXonoticTextLabel(0, "Speed:"));
+               me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Speed:")));
                me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics_speed_vertical", _("Include vertical speed")));
        // me.TR(me);
                // me.TDempty(me, 0.2);