-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
DebugWindow.cs
28 lines (23 loc) · 906 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
28
using System.Reflection;
using Dalamud.Interface.Utility;
using ImGuiNET;
using SimpleTweaksPlugin.Debugging;
using SimpleTweaksPlugin.Utility;
namespace SimpleTweaksPlugin;
public class DebugWindow : SimpleWindow {
public DebugWindow() : base("SimpleTweaksPlugin - Debug") {
WindowName = $"SimpleTweaksPlugin - Debug [{Assembly.GetExecutingAssembly().GetName().Version}] - Client Structs Version#{Common.ClientStructsVersion}###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();
}
}