Ejemplo n.º 1
0
        /// <summary>
        /// Init the Ressource Cres
        /// </summary>
        protected override void InitResourceTabPage()
        {
            if (tResourceNode == null)
            {
                tResourceNode = new SimPe.Plugin.TabPage.ResourceNode();
            }
            if (tCres == null)
            {
                tCres = new SimPe.Plugin.TabPage.Cres();
            }

            this.tCres.cres_tv.Nodes.Clear();
            tCres.tbfjoint.Text = "";
            AddChildNode(this.tCres.cres_tv.Nodes, 0, this);
            this.tCres.cres_tv.ExpandAll();
        }
Ejemplo n.º 2
0
 public override void Dispose()
 {
     if (this.tResourceNode != null)
     {
         this.tResourceNode.Dispose();
     }
     tResourceNode = null;
     if (tCres != null)
     {
         tCres.Dispose();
     }
     tCres = null;
     sgres = null;
     ogn   = null;
     ctn   = null;
     items = new ResourceNodeItem[0];
 }
Ejemplo n.º 3
0
        /// <summary>
        /// You can use this to setop the Controls on a TabPage befor it is dispplayed
        /// </summary>
        protected override void InitTabPage()
        {
            if (tResourceNode == null)
            {
                tResourceNode = new SimPe.Plugin.TabPage.ResourceNode();
            }

            tResourceNode.lb_rn.Items.Clear();
            for (int i = 0; i < this.items.Length; i++)
            {
                tResourceNode.lb_rn.Items.Add(items[i]);
            }

            tResourceNode.tb_rn_uk1.Text = "0x" + Helper.HexString((uint)this.unknown1);
            tResourceNode.tb_rn_uk2.Text = "0x" + Helper.HexString((uint)this.unknown2);
            tResourceNode.tb_rn_ver.Text = "0x" + Helper.HexString(this.version);
        }