Пример #1
0
        public static void OpenRDungeonEditor()
        {
            lock (lockObj) {
                if (editThread == null) {
                    EditList choices = new EditList();
                    string[] entries = new string[Data.GameData.RDungeonDex.Length];
                    for (int i = 0; i < entries.Length; i++) {
                        entries[i] = Data.GameData.RDungeonDex[i].Name;
                    }
                    choices.AddEntries(entries);
                    System.Windows.Forms.Application.Run(choices);

                    if (choices.ChosenEntry > -1) {
                        currentEditor = new Editors.RDungeonEditor();
                        ((RDungeonEditor)currentEditor).LoadRDungeon(choices.ChosenEntry);
                        editThread = new Thread(new ParameterizedThreadStart(openEditor));
                        editThread.Start(currentEditor);
                    }
                }
            }
        }
Пример #2
0
        public static void OpenRDungeonEditor()
        {
            lock (lockObj) {
                if (editThread == null)
                {
                    EditList choices = new EditList();
                    string[] entries = new string[Data.GameData.RDungeonDex.Length];
                    for (int i = 0; i < entries.Length; i++)
                    {
                        entries[i] = Data.GameData.RDungeonDex[i].Name;
                    }
                    choices.AddEntries(entries);
                    System.Windows.Forms.Application.Run(choices);

                    if (choices.ChosenEntry > -1)
                    {
                        currentEditor = new Editors.RDungeonEditor();
                        ((RDungeonEditor)currentEditor).LoadRDungeon(choices.ChosenEntry);
                        editThread = new Thread(new ParameterizedThreadStart(openEditor));
                        editThread.Start(currentEditor);
                    }
                }
            }
        }