forked from Caraxi/SimpleTweaksPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugWindow.cs
More file actions
34 lines (29 loc) · 913 Bytes
/
DebugWindow.cs
File metadata and controls
34 lines (29 loc) · 913 Bytes
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
29
30
31
32
33
34
using System.Reflection;
using Dalamud.Bindings.ImGui;
using Dalamud.Interface.Utility;
using Dalamud.Interface.Windowing;
using STPDebug.Debugging;
using STPDebug.Utility;
namespace STPDebug;
public class DebugWindow : SimpleWindow
{
public DebugWindow() : base("STPDebug Debug Window")
{
WindowName = $"STPDebug [{Assembly.GetExecutingAssembly().GetName().Version}] - Client Structs#{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();
}
}