refactor: rename ImGuiHelpers.ForceMainWindow() to ForceNextWindowMainViewport()

This commit is contained in:
goat 2021-04-07 11:51:22 +02:00
parent 3a81f9e2a8
commit 8ee2711023
2 changed files with 3 additions and 3 deletions

View file

@ -19,9 +19,9 @@ namespace Dalamud.Interface
public static float GlobalScale { get; private set; } public static float GlobalScale { get; private set; }
/// <summary> /// <summary>
/// Force this ImGui window to stay inside the main game window. /// Force the next ImGui window to stay inside the main game window.
/// </summary> /// </summary>
public static void ForceMainViewport() => ImGui.SetNextWindowViewport(MainViewport.ID); public static void ForceNextWindowMainViewport() => ImGui.SetNextWindowViewport(MainViewport.ID);
/// <summary> /// <summary>
/// Create a dummy scaled by the global Dalamud scale. /// Create a dummy scaled by the global Dalamud scale.

View file

@ -141,7 +141,7 @@ namespace Dalamud.Interface.Windowing
this.ApplyConditionals(); this.ApplyConditionals();
if (this.ForceMainWindow) if (this.ForceMainWindow)
ImGuiHelpers.ForceMainViewport(); ImGuiHelpers.ForceNextWindowMainViewport();
if (ImGui.Begin(this.WindowName, ref this.internalIsOpen, this.Flags)) if (ImGui.Begin(this.WindowName, ref this.internalIsOpen, this.Flags))
{ {