示例#1
0
        private void compileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!CheckConfig())
            {
                return;
            }
            FighterSelection selector = new FighterSelection(AITree.AISource.work);

            if (selector.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            foreach (var ft in selector.selFighters)
            {
                foreach (var type in selector.selTypes)
                {
                    string pathIn = AITree.GetFolderPath(ft, type, AITree.AISource.work);
                    if (Directory.Exists(pathIn))
                    {
                        string pathOut = AITree.GetFolderPath(ft, type, AITree.AISource.compiled);
                        aism.AssembleFolder(pathIn, pathOut);
                    }
                }
            }
        }
示例#2
0
        private void addCompiledFilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!CheckConfig())
            {
                return;
            }
            FighterSelection selector = new FighterSelection(AITree.AISource.compiled);

            if (selector.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            tree.AddProjectFiles(selector.selFighters, selector.selTypes, AITree.AISource.compiled);
            UpdateTreeView();
        }
示例#3
0
        private void newProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!CheckConfig())
            {
                return;
            }
            FighterSelection selector = new FighterSelection(AITree.AISource.game_file);

            if (selector.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            tree.InitNewProject(selector.selFighters, selector.selTypes);
            UpdateTreeView();
            SetProjectStatus(true);
        }