mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 04:13:40 +01:00
feat: port Dalamud windows to WindowSystem
This commit is contained in:
parent
65fb949c61
commit
c21e7efab7
10 changed files with 252 additions and 247 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Numerics;
|
||||
using ImGuiNET;
|
||||
using Serilog;
|
||||
|
||||
namespace Dalamud.Interface
|
||||
{
|
||||
|
|
@ -32,6 +33,8 @@ namespace Dalamud.Interface
|
|||
return mainViewportId;
|
||||
}
|
||||
|
||||
public static Vector2 MainWindowPos { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Create a dummy scaled by the global Dalamud scale.
|
||||
/// </summary>
|
||||
|
|
@ -52,6 +55,7 @@ namespace Dalamud.Interface
|
|||
internal static void NewFrame()
|
||||
{
|
||||
GlobalScale = ImGui.GetIO().FontGlobalScale;
|
||||
MainWindowPos = ImGui.GetMainViewport().Pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue