From fb2dddac1658c8eb19e5d3096e85928eaefc0f81 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 30 Dec 2010 21:37:23 +0100 Subject: [PATCH] hud_panel_physics 1 to show the panel if not observing instead of only when spectating 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 | 2 +- qcsrc/client/hud.qc | 2 +- qcsrc/menu/xonotic/dialog_hudpanel_physics.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_hud_descriptions.cfg b/_hud_descriptions.cfg index 7eb0de2f1..da3779abc 100644 --- a/_hud_descriptions.cfg +++ b/_hud_descriptions.cfg @@ -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" diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 14cf376c7..09f7c3680 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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; diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_physics.c b/qcsrc/menu/xonotic/dialog_hudpanel_physics.c index 4ca6144f8..8277b5e85 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_physics.c +++ b/qcsrc/menu/xonotic/dialog_hudpanel_physics.c @@ -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); -- 2.39.2