mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-26 18:39:20 +01:00
Rewrite ImGuiScene
This commit is contained in:
parent
6bf264acf0
commit
184463a056
41 changed files with 3888 additions and 3890 deletions
|
|
@ -8,13 +8,12 @@ using System.Text;
|
|||
using System.Text.Unicode;
|
||||
|
||||
using Dalamud.Configuration.Internal;
|
||||
using Dalamud.Game.ClientState.Keys;
|
||||
using Dalamud.Interface.ImGuiBackend.InputHandler;
|
||||
using Dalamud.Interface.ManagedFontAtlas;
|
||||
using Dalamud.Interface.ManagedFontAtlas.Internals;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
|
||||
using ImGuiNET;
|
||||
using ImGuiScene;
|
||||
|
||||
using VirtualKey = Dalamud.Game.ClientState.Keys.VirtualKey;
|
||||
|
||||
|
|
@ -23,7 +22,7 @@ namespace Dalamud.Interface.Utility;
|
|||
/// <summary>
|
||||
/// Class containing various helper methods for use with ImGui inside Dalamud.
|
||||
/// </summary>
|
||||
public static class ImGuiHelpers
|
||||
public static partial class ImGuiHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the main viewport.
|
||||
|
|
@ -373,7 +372,7 @@ public static class ImGuiHelpers
|
|||
/// <returns>The ImGuiKey that corresponds to this VirtualKey, or <c>ImGuiKey.None</c> otherwise.</returns>
|
||||
public static ImGuiKey VirtualKeyToImGuiKey(VirtualKey key)
|
||||
{
|
||||
return ImGui_Input_Impl_Direct.VirtualKeyToImGuiKey((int)key);
|
||||
return Win32InputHandler.VirtualKeyToImGuiKey((int)key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -383,7 +382,7 @@ public static class ImGuiHelpers
|
|||
/// <returns>The VirtualKey that corresponds to this ImGuiKey, or <c>VirtualKey.NO_KEY</c> otherwise.</returns>
|
||||
public static VirtualKey ImGuiKeyToVirtualKey(ImGuiKey key)
|
||||
{
|
||||
return (VirtualKey)ImGui_Input_Impl_Direct.ImGuiKeyToVirtualKey(key);
|
||||
return (VirtualKey)Win32InputHandler.ImGuiKeyToVirtualKey(key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -587,6 +586,12 @@ public static class ImGuiHelpers
|
|||
return -1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears the stack in the current ImGui context.
|
||||
/// </summary>
|
||||
[LibraryImport("cimgui", EntryPoint = "igCustom_ClearStacks")]
|
||||
internal static partial void ClearStacksOnContext();
|
||||
|
||||
/// <summary>
|
||||
/// Attempts to validate that <paramref name="fontPtr"/> is valid.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue