mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +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 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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue