Ejemplo n.º 1
0
        protected override void PopulateView()
        {
            TextureDictionaryWrapper = new RwTextureDictionaryNodeWrapper("Textures", Resource.TextureDictionary ?? new RwTextureDictionaryNode());
            ClumpsWrapper            = new RwClumpNodeListWrapper("Clumps", Resource.Clumps ?? new List <RwClumpNode>());
            NodeLinksWrapper         = new RmdNodeLinkListNodeWrapper("Node Links", Resource.NodeLinks ?? new RmdNodeLinkListNode());
            AnimationsWrapper        = new RmdAnimationsWrapper("Animations", Resource.Animations ?? new List <RmdAnimation>());
            MiscNodesWrapper         = new GenericListWrapper <RwNode>("Misc Nodes", Resource.MiscNodes ?? new List <RwNode>(), (e, i) => e.Id.ToString());

            Nodes.Add(TextureDictionaryWrapper);
            Nodes.Add(ClumpsWrapper);
            Nodes.Add(NodeLinksWrapper);
            Nodes.Add(AnimationsWrapper);
            Nodes.Add(MiscNodesWrapper);
        }
Ejemplo n.º 2
0
 public SprFileWrapper(string text, TFile resource) : base(text, resource)
 {
     SpriteListWrapper  = new GenericListWrapper <SprSprite>("Sprites", resource.Sprites, (e, i) => !string.IsNullOrEmpty(e.Comment) ? $"Sprite [{e.Comment}]" : $"Sprite {i:00}");
     TextureListWrapper = GetTextureListWrapper();
     PopulateView();
 }