]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
hud_panel_physics 1 to show the panel if not observing instead of only when spectating
authorterencehill <piuntn@gmail.com>
Thu, 30 Dec 2010 20:37:23 +0000 (21:37 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 30 Dec 2010 20:37:23 +0000 (21:37 +0100)
The old way only makes sense for the pressed keys panel as u don't need to see the keys u are already pressing

_hud_descriptions.cfg
qcsrc/client/hud.qc
qcsrc/menu/xonotic/dialog_hudpanel_physics.c

index 7eb0de2f1525111a5f58959c816105dd4105577a..da3779abc984ec786a569a1c39b3241b186ac3e0 100644 (file)
@@ -219,7 +219,7 @@ seta hud_panel_infomessages_bg_border "" "if set to something else than \"\" = o
 seta hud_panel_infomessages_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
 seta hud_panel_infomessages_flip "" "1 = align the items to the right"
 
-seta hud_panel_physics "" "enable/disable this panel, 1 = show only when spectating other players, 2 = show always"
+seta hud_panel_physics "" "enable/disable this panel, 1 = show if not observing, 2 = show always"
 seta hud_panel_physics_pos "" "position of this base of the panel"
 seta hud_panel_physics_size "" "size of this panel"
 seta hud_panel_physics_bg "" "if set to something else than \"\" = override default background"
index 14cf376c75d0aa924756f6f6d7996b191dae47fc..09f7c3680700ce4193f92c253e388b42dd38bccf 100644 (file)
@@ -4170,7 +4170,7 @@ void HUD_Physics(void)
        if(!autocvar__hud_configure)
        {
                if(!autocvar_hud_panel_physics) return;
-               if(spectatee_status <= 0 && autocvar_hud_panel_physics < 2) return;
+               if(spectatee_status == -1 && autocvar_hud_panel_physics < 2) return;
        }
        else
                hud_configure_active_panel = HUD_PANEL_PHYSICS;
index 4ca6144f808a243d954366c915e0fd1bf1084fc1..8277b5e8595e6f9c624feed5a5a27735011f3dd9 100644 (file)
@@ -21,7 +21,7 @@ void XonoticHUDPhysicsDialog_fill(entity me)
        me.TR(me);
                me.TD(me, 1, 2, e = makeXonoticTextSlider("hud_panel_physics"));
                        e.addValue(e, "Panel disabled", "0");
-                       e.addValue(e, "Panel enabled when spectating", "1");
+                       e.addValue(e, "Panel enabled if not observing", "1");
                        e.addValue(e, "Panel always enabled", "2");
                        e.configureXonoticTextSliderValues(e);
        me.TR(me);