2012-09-02 23:29:23 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Substrate.Nbt;
|
2012-09-02 00:08:54 +00:00
|
|
|
|
|
|
|
|
|
namespace NBTExplorer.Model
|
|
|
|
|
{
|
|
|
|
|
public class TagByteArrayDataNode : TagDataNode
|
|
|
|
|
{
|
|
|
|
|
public TagByteArrayDataNode (TagNodeByteArray tag)
|
|
|
|
|
: base(tag)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
protected new TagNodeByteArray Tag
|
|
|
|
|
{
|
|
|
|
|
get { return base.Tag as TagNodeByteArray; }
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-02 23:29:23 +00:00
|
|
|
|
public override bool CanEditNode
|
|
|
|
|
{
|
2013-10-07 01:43:12 +00:00
|
|
|
|
#if WINDOWS
|
|
|
|
|
get { return true; }
|
|
|
|
|
#else
|
|
|
|
|
get { return false; }
|
|
|
|
|
#endif
|
2012-09-02 23:29:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-09-02 00:08:54 +00:00
|
|
|
|
public override bool EditNode ()
|
|
|
|
|
{
|
|
|
|
|
return EditByteHexValue(Tag);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string NodeDisplay
|
|
|
|
|
{
|
|
|
|
|
get { return NodeDisplayPrefix + Tag.Data.Length + " bytes"; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|