mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Added GUI pages for GEM resources.
This commit is contained in:
28
exeinfogui/GEM/PanelGemGeneric.xeto.cs
Normal file
28
exeinfogui/GEM/PanelGemGeneric.xeto.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Eto.Forms;
|
||||
using Eto.Serialization.Xaml;
|
||||
|
||||
namespace exeinfogui.GEM
|
||||
{
|
||||
public class PanelGemGeneric : Panel
|
||||
{
|
||||
TextBox txtCoordinates;
|
||||
TextBox txtData;
|
||||
TextBox txtFlags;
|
||||
TextBox txtSize;
|
||||
TextBox txtState;
|
||||
|
||||
public PanelGemGeneric()
|
||||
{
|
||||
XamlReader.Load(this);
|
||||
}
|
||||
|
||||
public void Update(libexeinfo.GEM.TreeObjectNode node)
|
||||
{
|
||||
txtFlags.Text = node.flags == 0 ? "None" : node.flags.ToString();
|
||||
txtState.Text = node.state == 0 ? "Normal" : node.state.ToString();
|
||||
txtCoordinates.Text = $"{node.x},{node.y}";
|
||||
txtSize.Text = $"{node.width}x{node.height} pixels";
|
||||
txtData.Text = $"{node.data}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user