mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Allow disabling the debug bar in debug mode.
This commit is contained in:
parent
2f9402ae5f
commit
f3857e03be
1 changed files with 7 additions and 2 deletions
|
|
@ -10,9 +10,10 @@ namespace Penumbra.UI
|
||||||
private const string MenuItemToggle = "Toggle UI";
|
private const string MenuItemToggle = "Toggle UI";
|
||||||
private const string SlashCommand = "/penumbra";
|
private const string SlashCommand = "/penumbra";
|
||||||
private const string MenuItemRediscover = "Rediscover Mods";
|
private const string MenuItemRediscover = "Rediscover Mods";
|
||||||
|
private const string MenuItemHide = "Hide Menu Bar";
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
private const bool _showDebugBar = true;
|
private bool _showDebugBar = true;
|
||||||
#else
|
#else
|
||||||
private const bool _showDebugBar = false;
|
private const bool _showDebugBar = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -31,6 +32,10 @@ namespace Penumbra.UI
|
||||||
|
|
||||||
if( ImGui.MenuItem( MenuItemRediscover ) )
|
if( ImGui.MenuItem( MenuItemRediscover ) )
|
||||||
_base.ReloadMods();
|
_base.ReloadMods();
|
||||||
|
#if DEBUG
|
||||||
|
if ( ImGui.MenuItem( MenuItemHide) )
|
||||||
|
_showDebugBar = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
ImGui.EndMenu();
|
ImGui.EndMenu();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue