feat: add ImGuiHelpers class, ForceMainWindow()

This commit is contained in:
goat 2021-04-05 17:17:52 +02:00
parent 24525d3d47
commit b1fdfd798c

View 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);
}
}