mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
feat: add dev bar info toggle (#805)
This commit is contained in:
parent
a892933714
commit
eca9fcce3b
2 changed files with 19 additions and 6 deletions
|
|
@ -311,6 +311,11 @@ namespace Dalamud.Configuration.Internal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsMbCollect { get; set; } = true;
|
public bool IsMbCollect { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether or not to show info on dev bar.
|
||||||
|
/// </summary>
|
||||||
|
public bool ShowDevBarInfo { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load a configuration from the provided path.
|
/// Load a configuration from the provided path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -622,6 +622,11 @@ namespace Dalamud.Interface.Internal
|
||||||
Log.Information(info);
|
Log.Information(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui.MenuItem("Show dev bar info", null, configuration.ShowDevBarInfo))
|
||||||
|
{
|
||||||
|
configuration.ShowDevBarInfo = !configuration.ShowDevBarInfo;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.EndMenu();
|
ImGui.EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -739,14 +744,17 @@ namespace Dalamud.Interface.Internal
|
||||||
if (Service<GameGui>.Get().GameUiHidden)
|
if (Service<GameGui>.Get().GameUiHidden)
|
||||||
ImGui.BeginMenu("UI is hidden...", false);
|
ImGui.BeginMenu("UI is hidden...", false);
|
||||||
|
|
||||||
ImGui.PushFont(InterfaceManager.MonoFont);
|
if (configuration.ShowDevBarInfo)
|
||||||
|
{
|
||||||
|
ImGui.PushFont(InterfaceManager.MonoFont);
|
||||||
|
|
||||||
ImGui.BeginMenu(Util.GetGitHash(), false);
|
ImGui.BeginMenu(Util.GetGitHash(), false);
|
||||||
ImGui.BeginMenu(this.frameCount.ToString("000000"), false);
|
ImGui.BeginMenu(this.frameCount.ToString("000000"), false);
|
||||||
ImGui.BeginMenu(ImGui.GetIO().Framerate.ToString("000"), false);
|
ImGui.BeginMenu(ImGui.GetIO().Framerate.ToString("000"), false);
|
||||||
ImGui.BeginMenu($"{Util.FormatBytes(GC.GetTotalMemory(false))}", false);
|
ImGui.BeginMenu($"{Util.FormatBytes(GC.GetTotalMemory(false))}", false);
|
||||||
|
|
||||||
ImGui.PopFont();
|
ImGui.PopFont();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.EndMainMenuBar();
|
ImGui.EndMainMenuBar();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue