mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
refactor: rename ImGuiHelpers.ForceMainWindow() to ForceNextWindowMainViewport()
This commit is contained in:
parent
3a81f9e2a8
commit
8ee2711023
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue