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

@ -11,9 +11,11 @@ namespace NResUI.ImGuiUI
{
private readonly ExplorerViewModel _explorerViewModel;
public MainMenuBar(ExplorerViewModel explorerViewModel)
private readonly MessageBoxModalPanel _messageBox;
public MainMenuBar(ExplorerViewModel explorerViewModel, MessageBoxModalPanel messageBox)
{
_explorerViewModel = explorerViewModel;
_messageBox = messageBox;
}
public void OnImGuiRender()
@ -45,8 +47,10 @@ namespace NResUI.ImGuiUI
if (result.IsOk)
{
var path = result.Path;
Console.WriteLine(path);
NResExporter.Export(_explorerViewModel.Archive!, path, _explorerViewModel.Path!);
_messageBox.Show("Успешно экспортировано");
}
}
}