0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00

add export

This commit is contained in:
bird_egop
2024-11-15 20:29:02 +03:00
parent 465a7cb336
commit 3c47549fde
5 changed files with 84 additions and 7 deletions

View File

@ -8,6 +8,8 @@ public abstract class ImGuiModalPanel : IImGuiPanel
{
protected abstract string ImGuiId { get; }
protected Vector2 WindowSize { get; set; } = new Vector2(600, 400);
private bool _shouldOpen = false;
public virtual void Open()
@ -27,7 +29,7 @@ public abstract class ImGuiModalPanel : IImGuiPanel
_shouldOpen = false;
}
ImGui.SetNextWindowSize(new Vector2(600, 400));
ImGui.SetNextWindowSize(WindowSize);
if (ImGui.BeginPopup(ImGuiId, ImGuiWindowFlags.NoResize))
{