Allow disabling the debug bar in debug mode.

This commit is contained in:
Ottermandias 2021-01-31 12:57:06 +01:00
parent 2f9402ae5f
commit f3857e03be

View file

@ -10,9 +10,10 @@ namespace Penumbra.UI
private const string MenuItemToggle = "Toggle UI";
private const string SlashCommand = "/penumbra";
private const string MenuItemRediscover = "Rediscover Mods";
private const string MenuItemHide = "Hide Menu Bar";
#if DEBUG
private const bool _showDebugBar = true;
private bool _showDebugBar = true;
#else
private const bool _showDebugBar = false;
#endif
@ -31,6 +32,10 @@ namespace Penumbra.UI
if( ImGui.MenuItem( MenuItemRediscover ) )
_base.ReloadMods();
#if DEBUG
if ( ImGui.MenuItem( MenuItemHide) )
_showDebugBar = false;
#endif
ImGui.EndMenu();
}