Beispiel #1
0
 public void CreateIntroWindow()
 {
     if (intro == null || !intro.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         intro          = new Intro();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, intro);
         }
         else
         {
             intro.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     intro.KeyDown += new KeyEventHandler(editor_KeyDown);
     intro.BringToFront();
 }
 public MainTitle(Intro intro)
 {
     this.intro = intro;
     //
     InitializeComponent();
     pictureBoxTitle.Invalidate();
     LoadTilesetEditor();
     //LoadPaletteEditor();
     //LoadGraphicEditor();
     //LoadSpritePaletteEditor();
     //LoadSpriteGraphicEditor();
     // load the individual editors
     tilesetEditor.TopLevel = false;
     tilesetEditor.Dock     = DockStyle.Left;
     this.panel2.Controls.Add(tilesetEditor);
     tilesetEditor.BringToFront();
     tilesetEditor.Show();
     SetTilesetImages();
     //
     GC.Collect();
     this.History = new History(this);
 }
Beispiel #3
0
 // constructor
 public Opening(Intro intro)
 {
     this.intro = intro;
     //
     openingTileset  = Bits.GetBytes(Model.OpeningData, 0, 0x480);
     openingGraphics = Bits.GetBytes(Model.OpeningData, 0x480);
     tileset         = new Tileset(openingTileset, openingGraphics, paletteSet, 16, 9, TilesetType.Opening);
     InitializeComponent();
     if (Model.ROM[0x00087D] == 0xEA &&
         Model.ROM[0x00087E] == 0xEA &&
         Model.ROM[0x00087F] == 0xEA &&
         Model.ROM[0x000880] == 0xEA)
     {
         disableGardenLoad.Checked = true;
     }
     if (Model.ROM[0x034872] == 0x4C &&
         Model.ROM[0x034873] == 0x44 &&
         Model.ROM[0x034874] == 0x00)
     {
         disableGardenNew.Checked = true;
     }
     //
     SetTilesetImage();
 }
Beispiel #4
0
 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();
     }
 }