public override MenuBasic Create() { this.NeedsInput = false; Ready = true; LevelEditorWindow.EditorMode = false; LevelEditorWindow.masterEditor = new MasterEditor(); LevelEditorWindow.masterEditor.Load(); LevelEditorWindow.gameManager = new GameManager(); MasterEditor.LoadNewLevel(DialogManager.ReadFile(new BinaryReader(File.Open("Content/Game/Levels/" + SettingsHolder.map.ToString() + ".lvl", FileMode.Open)))); GameManager.MyLevel.Reset(); MasterEditor.Run(); return(base.Create()); }
void RunProject(Button button) { MasterEditor.Run(); }