fix: count frames even when window is hidden

This commit is contained in:
goat 2021-02-10 02:34:58 +01:00
parent b34cb8f36b
commit b72e984e54

View file

@ -60,6 +60,8 @@ namespace Dalamud.Interface
public void Draw() public void Draw()
{ {
this.frameCount++;
if (!this.IsDevMenu && !this.dalamud.ClientState.Condition.Any()) if (!this.IsDevMenu && !this.dalamud.ClientState.Condition.Any())
{ {
ImGui.PushStyleColor(ImGuiCol.Button, new Vector4(0, 0, 0, 0)); ImGui.PushStyleColor(ImGuiCol.Button, new Vector4(0, 0, 0, 0));
@ -246,7 +248,6 @@ namespace Dalamud.Interface
ImGui.BeginMenu("UI is hidden...", false); ImGui.BeginMenu("UI is hidden...", false);
ImGui.BeginMenu(this.frameCount.ToString(), false); ImGui.BeginMenu(this.frameCount.ToString(), false);
this.frameCount++;
ImGui.EndMainMenuBar(); ImGui.EndMainMenuBar();
} }