0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 00:18:02 +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

@ -0,0 +1,33 @@
using System.Numerics;
using ImGuiNET;
using NResUI.Abstractions;
namespace NResUI.ImGuiUI;
public class MessageBoxModalPanel : ImGuiModalPanel
{
private string? _text;
protected override string ImGuiId { get; } = "#message-box";
public MessageBoxModalPanel()
{
WindowSize = new Vector2(300, 150);
}
public void Show(string? text)
{
_text = text;
base.Open();
}
protected override void OnImGuiRenderContent()
{
ImGui.Text(_text);
ImGui.Spacing();
if (ImGui.Button("Ок"))
{
ImGui.CloseCurrentPopup();
}
}
}