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 TagIntArrayDataNode : TagDataNode
|
|
|
|
|
{
|
|
|
|
|
public TagIntArrayDataNode (TagNodeIntArray tag)
|
|
|
|
|
: base(tag)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
protected new TagNodeIntArray Tag
|
|
|
|
|
{
|
|
|
|
|
get { return base.Tag as TagNodeIntArray; }
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-02 23:29:23 +00:00
|
|
|
|
public override bool CanEditNode
|
|
|
|
|
{
|
|
|
|
|
get { return !IsMono(); }
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-02 00:08:54 +00:00
|
|
|
|
public override bool EditNode ()
|
|
|
|
|
{
|
|
|
|
|
return EditIntHexValue(Tag);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string NodeDisplay
|
|
|
|
|
{
|
|
|
|
|
get { return NodeDisplayPrefix + Tag.Data.Length + " integers"; }
|
|
|
|
|
}
|
2012-09-02 23:29:23 +00:00
|
|
|
|
|
|
|
|
|
private bool IsMono ()
|
|
|
|
|
{
|
|
|
|
|
return Type.GetType("Mono.Runtime") != null;
|
|
|
|
|
}
|
2012-09-02 00:08:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|