Exemplo n.º 1
0
        public CodeEditControl(CommandListGroup group)
        {
            InitializeComponent();
            pnlParams.Enabled = true;
            TabPage p = new TabPage("Main");

            p.Controls.Add(new ITSCodeBox(group.lists[0], Runtime.commandDictionary)
            {
                Dock = DockStyle.Fill
            });
            tabControl1.TabPages.Add(p);
            p = new TabPage("GFX");
            p.Controls.Add(new ITSCodeBox(group.lists[1], Runtime.commandDictionary)
            {
                Dock = DockStyle.Fill
            });
            tabControl1.TabPages.Add(p);
            p = new TabPage("SFX");
            p.Controls.Add(new ITSCodeBox(group.lists[2], Runtime.commandDictionary)
            {
                Dock = DockStyle.Fill
            });
            tabControl1.TabPages.Add(p);
            p = new TabPage("Expression");
            p.Controls.Add(new ITSCodeBox(group.lists[3], Runtime.commandDictionary)
            {
                Dock = DockStyle.Fill
            });
            tabControl1.TabPages.Add(p);
        }
Exemplo n.º 2
0
        public void OpenWorkspace(string wrkspce)
        {
            Manager.ReadWRKSPC(wrkspce);
            List <TreeNode> col = new List <TreeNode>();

            FileTree.BeginUpdate();
            foreach (Project p in Manager.Projects)
            {
                _curFighter = Manager.OpenFighter(p.ACMDPath);
                _curFighter.AnimationHashPairs = Manager.getAnimNames(p.AnimationFile);

                string name = $"{p.ProjectName} - [{(p.ProjectType == ProjType.Fighter ? "Fighter" : "Weapon")}]";

                TreeNode pNode = new TreeNode(name);

                TreeNode Actions    = new TreeNode("MSCSB (ActionScript)");
                TreeNode ACMD       = new TreeNode("ACMD (AnimCmd)");
                TreeNode Weapons    = new TreeNode("Weapons");
                TreeNode Parameters = new TreeNode("Parameters");


                foreach (uint u in _curFighter.MotionTable)
                {
                    if (u == 0)
                    {
                        continue;
                    }

                    CommandListGroup g = new CommandListGroup(_curFighter, u)
                    {
                        ToolTipText = $"[{u:X8}]"
                    };

                    if (AnimHashPairs.ContainsKey(u))
                    {
                        g.Text = AnimHashPairs[u];
                    }

                    ACMD.Nodes.Add(g);
                }

                pNode.Nodes.AddRange(new[] { Actions, ACMD, Weapons, Parameters });
                col.Add(pNode);
            }
            FileTree.Nodes.AddRange(col.ToArray());
            Runtime.isRoot = true;
            FileTree.EndUpdate();
        }
Exemplo n.º 3
0
 public CodeEditControl(CommandListGroup group)
 {
     InitializeComponent();
     pnlParams.Enabled = true;
     TabPage p = new TabPage("Main");
     p.Controls.Add(new ITSCodeBox(group.lists[0]) { Dock = DockStyle.Fill });
     tabControl1.TabPages.Add(p);
     p = new TabPage("GFX");
     p.Controls.Add(new ITSCodeBox(group.lists[1]) { Dock = DockStyle.Fill });
     tabControl1.TabPages.Add(p);
     p = new TabPage("SFX");
     p.Controls.Add(new ITSCodeBox(group.lists[2]) { Dock = DockStyle.Fill });
     tabControl1.TabPages.Add(p);
     p = new TabPage("Expression");
     p.Controls.Add(new ITSCodeBox(group.lists[3]) { Dock = DockStyle.Fill });
     tabControl1.TabPages.Add(p);
 }
Exemplo n.º 4
0
        public void OpenWorkspace(string wrkspce)
        {
            Manager.ReadWRKSPC(wrkspce);
            List<TreeNode> col = new List<TreeNode>();
            FileTree.BeginUpdate();
            foreach (Project p in Manager.Projects)
            {
                _curFighter = Manager.OpenFighter(p.ACMDPath);
                _curFighter.AnimationHashPairs = Manager.getAnimNames(p.AnimationFile);

                string name = $"{p.ProjectName} - [{(p.ProjectType == ProjType.Fighter ? "Fighter" : "Weapon")}]";

                TreeNode pNode = new TreeNode(name);

                TreeNode Actions = new TreeNode("MSCSB (ActionScript)");
                TreeNode ACMD = new TreeNode("ACMD (AnimCmd)");
                TreeNode Weapons = new TreeNode("Weapons");
                TreeNode Parameters = new TreeNode("Parameters");


                foreach (uint u in _curFighter.MotionTable)
                {
                    if (u == 0)
                        continue;

                    CommandListGroup g = new CommandListGroup(_curFighter, u) { ToolTipText = $"[{u:X8}]" };

                    if (AnimHashPairs.ContainsKey(u))
                        g.Text = AnimHashPairs[u];

                    ACMD.Nodes.Add(g);
                }

                pNode.Nodes.AddRange(new[] { Actions, ACMD, Weapons, Parameters });
                col.Add(pNode);
            }
            FileTree.Nodes.AddRange(col.ToArray());
            Runtime.isRoot = true;
            FileTree.EndUpdate();
        }