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
+seta hud_panel_physics "" "enable/disable this panel, 1 = show only when spectating other players, 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"
if(!autocvar_hud_panel_physics)
{
if(!autocvar__hud_configure) return;
+ if(spectatee_status <= 0 && autocvar_hud_panel_physics < 2) return;
}
else
hud_configure_active_panel = HUD_PANEL_PHYSICS;
float i;
me.TR(me);
- me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics", "Enable panel"));
+ 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 always enabled", "2");
+ e.configureXonoticTextSliderValues(e);
me.TR(me);
me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, "Background:"));
me.TD(me, 1, 1.6, e = makeXonoticTextSlider(strzone(strcat("hud_panel_", panelname, "_bg"))));