From: terencehill Date: Thu, 30 Dec 2010 20:37:23 +0000 (+0100) Subject: hud_panel_physics 1 to show the panel if not observing instead of only when spectating X-Git-Tag: xonotic-v0.5.0~333 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb2dddac1658c8eb19e5d3096e85928eaefc0f81;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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);