forked from Caraxi/SimpleTweaksPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DebugWindow.cs
27 lines (22 loc) · 888 Bytes
/
DebugWindow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Reflection;
using Dalamud.Interface.Utility;
using ImGuiNET;
using SimpleTweaksPlugin.Debugging;
namespace SimpleTweaksPlugin;
public class DebugWindow : SimpleWindow {
public DebugWindow() : base("SimpleTweaksPlugin - Debug") {
WindowName = $"SimpleTweaksPlugin - Debug [{Assembly.GetExecutingAssembly().GetName().Version}] - Client Structs Version#{FFXIVClientStructs.Interop.Resolver.Version}###stDebugMenu";
Size = ImGuiHelpers.ScaledVector2(500, 350);
SizeCondition = ImGuiCond.FirstUseEver;
}
public override void PreDraw() {
SizeConstraints = new WindowSizeConstraints() {
MinimumSize = ImGuiHelpers.ScaledVector2(350),
MaximumSize = ImGuiHelpers.ScaledVector2(2000)
};
}
public override void Draw() {
base.Draw();
DebugManager.DrawDebugWindow();
}
}