0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 23:59:46 +03:00

fix color ordering in 4444

fix blur when x2 scale
add TFNT texture open support
This commit is contained in:
bird_egop
2024-11-23 01:32:12 +03:00
parent dd2fce984c
commit bba3f2a810
3 changed files with 31 additions and 9 deletions

View File

@ -59,9 +59,28 @@ namespace NResUI.ImGuiUI
}
}
if (ImGui.MenuItem("Open TFNT TEXM"))
{
var result = Dialog.FileOpen();
if (result.IsOk)
{
var path = result.Path;
using var fs = new FileStream(path, FileMode.Open);
fs.Seek(4116, SeekOrigin.Begin);
var parseResult = TexmParser.ReadFromStream(fs, path);
_texmExplorerViewModel.SetParseResult(parseResult, path);
Console.WriteLine("Read TEXM");
}
}
if (_nResExplorerViewModel.HasFile)
{
if (ImGui.MenuItem("Экспортировать"))
if (ImGui.MenuItem("Экспортировать NRes"))
{
var result = Dialog.FolderPicker();