Exemplo n.º 1
0
 public AcmdMain()
 {
     InitializeComponent();
     this.Text   = $"{Program.Title} - ";
     Manager     = new WorkspaceManager();
     ScriptFiles = new SortedList <string, IScriptCollection>();
 }
Exemplo n.º 2
0
        public Project CreateProject(string filepath, string name, WorkspaceManager manager)
        {
            var p = new FitProj
            {
                ProjFilepath = filepath,
                ProjName     = name,
                Platform     = ProjPlatform.WiiU,
                ToolVer      = Program.Version,
                GameVer      = "1.1.7",
                ProjectGuid  = Guid.NewGuid()
            };

            using (var fsd = new FolderSelectDialog())
            {
                if (fsd.ShowDialog() == DialogResult.OK)
                {
                    if (manager.DecompileFighter(fsd.SelectedPath, Path.Combine(p.ProjDirectory, "Moveset")))
                    {
                        foreach (var file in Directory.EnumerateFiles(Path.Combine(p.ProjDirectory, "Moveset"), "*.*", SearchOption.AllDirectories))
                        {
                            p.AddFile(file, false);
                        }
                    }
                }
                else
                {
                    return(null);
                }
            }
            return(p);
        }
Exemplo n.º 3
0
 public void Reset()
 {
     this.Text = $"{Program.AssemblyTitle} {Program.Version} - ";
     FileTree.Nodes.Clear();
     ScriptFiles.Clear();
     Viewport.TabPages.Clear();
     ParamFile   = null;
     Manager     = new WorkspaceManager();
     MotionTable = null;
     IDEMode     = IDE_MODE.NONE;
 }
Exemplo n.º 4
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     Explorer = new WorkspaceExplorer();
     AddDockedControl(Explorer, DockState.DockRight);
     WorkspaceManager = new WorkspaceManager(Explorer);
     WorkspaceManager.OnWorkspaceOpened += WorkspaceManager_OnWorkspaceOpened;
     WorkspaceManager.OnProjectAdded    += WorkspaceManager_OnProjectAdded;
     if (!string.IsNullOrEmpty(OpenTarget))
     {
         OpenFile(OpenTarget);
     }
 }
Exemplo n.º 5
0
        public Project CreateProject(string filepath, string name, WorkspaceManager manager)
        {
            var p = new FitProj
            {
                ProjFilepath = filepath,
                ProjName     = name,
                Platform     = ProjPlatform.WiiU,
                ToolVer      = Program.Version,
                GameVer      = "1.1.7",
                ProjectGuid  = Guid.NewGuid()
            };

            return(p);
        }
Exemplo n.º 6
0
 public ACMDMain()
 {
     InitializeComponent();
     _manager = new WorkspaceManager();
 }
Exemplo n.º 7
0
 public AcmdMain()
 {
     InitializeComponent();
     _manager = new WorkspaceManager();
 }