public MineCart(MiniGames miniGames) { this.MiniGames = miniGames; InitializeComponent(); this.music.Items.AddRange(Lists.Numerize(Lists.MusicNames)); this.music.SelectedIndex = Model.ROM[0x0393EF]; this.Updating = true; if (settings.RememberLastIndex) { Index = settings.LastMineCart; } else { Index = 0; } this.Updating = false; // MinecartData = new MinecartData(Model.MinecartObjects); RefreshLevel(); // load the individual editors tilesetEditor.TopLevel = false; tilemapEditor.TopLevel = false; tilemapEditor.Dock = DockStyle.Fill; tilesetEditor.Dock = DockStyle.Right; panel1.Controls.Add(tilemapEditor); panel1.Controls.Add(tilesetEditor); tilemapEditor.Show(); tilesetEditor.Show(); // this.History = new History(this, levelName, null); }
public void CreateMiniGamesWindow() { if (miniGames == null || !miniGames.Visible) { Cursor.Current = Cursors.WaitCursor; miniGames = new MiniGames(); if (dockEditors) { Do.AddControl(editor.Panel2, miniGames); } else { miniGames.Show(); } Cursor.Current = Cursors.Arrow; } miniGames.KeyDown += new KeyEventHandler(editor_KeyDown); miniGames.BringToFront(); }
public void Reload(MiniGames miniGames) { this.MiniGames = miniGames; }
public void ScreencapHotkeys() { if (allies == null || !allies.Visible) { allies = new AlliesEditor(); } if (animations == null || !animations.Visible) { animations = new AnimationScripts(); } if (attacks == null || !attacks.Visible) { attacks = new AttacksEditor(); } if (audio == null || !audio.Visible) { audio = new Audio(); } if (battlefields == null || !battlefields.Visible) { battlefields = new Battlefields(); } if (dialogues == null || !dialogues.Visible) { dialogues = new Dialogues(); } if (effects == null || !effects.Visible) { effects = new Effects(); } if (eventScripts == null || !eventScripts.Visible) { eventScripts = new EventScripts(); } if (formations == null || !formations.Visible) { formations = new FormationsEditor(); } if (items == null || !items.Visible) { items = new ItemsEditor(); } if (levels == null || !levels.Visible) { levels = new Levels(); } if (monsters == null || !monsters.Visible) { monsters = new Monsters(); } if (intro == null || !intro.Visible) { intro = new Intro(); } if (menus == null || !menus.Visible) { menus = new MenusEditor(); } if (miniGames == null || !miniGames.Visible) { miniGames = new MiniGames(); } if (sprites == null || !sprites.Visible) { sprites = new Sprites(); } if (worldMaps == null || !worldMaps.Visible) { worldMaps = new WorldMaps(); } }