Lots of SzGui work

This commit is contained in:
2026-02-25 00:08:27 -06:00
parent e6749c51c4
commit dad80e30da
20 changed files with 968 additions and 22 deletions

View File

@@ -0,0 +1,22 @@
using ImGuiNET;
namespace SzGui.Windows;
public abstract class SzGuiWindowBase
{
public bool IsOpen = true;
public string WindowName { get; protected set; } = "Window";
public virtual void Draw()
{
if (!IsOpen) return;
if (ImGui.Begin(WindowName, ref IsOpen, ImGuiWindowFlags.MenuBar))
{
RenderContent();
}
ImGui.End();
}
protected abstract void RenderContent();
}