mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-08-02 17:36:32 +03:00
Implement SCR UI
This commit is contained in:
27
NResUI/Models/BinaryExplorerViewModel.cs
Normal file
27
NResUI/Models/BinaryExplorerViewModel.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace NResUI.Models;
|
||||
|
||||
public class BinaryExplorerViewModel
|
||||
{
|
||||
public bool HasFile { get; set; }
|
||||
public string? Error { get; set; }
|
||||
|
||||
public string Path { get; set; } = "";
|
||||
public byte[] Data { get; set; } = [];
|
||||
|
||||
public List<Region> Regions { get; set; } = [];
|
||||
|
||||
public Vector4 NextColor;
|
||||
}
|
||||
|
||||
public class Region
|
||||
{
|
||||
public int Begin { get; set; }
|
||||
|
||||
public int Length { get; set; }
|
||||
|
||||
public uint Color { get; set; }
|
||||
|
||||
public string? Value;
|
||||
}
|
20
NResUI/Models/ScrViewModel.cs
Normal file
20
NResUI/Models/ScrViewModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using ScrLib;
|
||||
|
||||
namespace NResUI.Models;
|
||||
|
||||
public class ScrViewModel
|
||||
{
|
||||
public bool HasFile { get; set; }
|
||||
public string? Error { get; set; }
|
||||
|
||||
public ScrFile? Scr { get; set; }
|
||||
|
||||
public string? Path { get; set; }
|
||||
|
||||
public void SetParseResult(ScrFile scrFile, string path)
|
||||
{
|
||||
Scr = scrFile;
|
||||
HasFile = true;
|
||||
Path = path;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user