mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
add export
This commit is contained in:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user