mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
feat: add ImGuiHelpers class, ForceMainWindow()
This commit is contained in:
parent
24525d3d47
commit
b1fdfd798c
1 changed files with 15 additions and 0 deletions
15
Dalamud/Interface/ImGuiHelpers.cs
Normal file
15
Dalamud/Interface/ImGuiHelpers.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using ImGuiNET;
|
||||
|
||||
namespace Dalamud.Interface
|
||||
{
|
||||
/// <summary>
|
||||
/// Class containing various helper methods for use with ImGui inside Dalamud.
|
||||
/// </summary>
|
||||
public static class ImGuiHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Force this ImGui window to stay inside the main game window.
|
||||
/// </summary>
|
||||
public static void ForceMainWindow() => ImGui.SetNextWindowViewport(ImGui.GetMainViewport().ID);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue