Ejemplo n.º 1
0
 public void CreateSpritesWindow()
 {
     if (sprites == null || !sprites.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         sprites        = new Sprites();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, sprites);
         }
         else
         {
             sprites.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     sprites.KeyDown += new KeyEventHandler(editor_KeyDown);
     sprites.BringToFront();
 }
Ejemplo n.º 2
0
 public void CreateWorldMapsWindow()
 {
     if (worldMaps == null || !worldMaps.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         worldMaps      = new WorldMaps();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, worldMaps);
         }
         else
         {
             worldMaps.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     worldMaps.KeyDown += new KeyEventHandler(editor_KeyDown);
     worldMaps.BringToFront();
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public void CreateItemsWindow()
 {
     if (items == null || !items.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         items          = new ItemsEditor();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, items);
         }
         else
         {
             items.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     items.KeyDown += new KeyEventHandler(editor_KeyDown);
     items.BringToFront();
 }
Ejemplo n.º 6
0
 public void CreateLevelsWindow()
 {
     if (levels == null || !levels.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         levels         = new Levels();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, levels);
         }
         else
         {
             levels.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     levels.KeyDown += new KeyEventHandler(editor_KeyDown);
     levels.BringToFront();
 }
Ejemplo n.º 7
0
 public void CreateEventScriptsWindow()
 {
     if (eventScripts == null || !eventScripts.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         eventScripts   = new EventScripts();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, eventScripts);
         }
         else
         {
             eventScripts.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     eventScripts.KeyDown += new KeyEventHandler(editor_KeyDown);
     eventScripts.BringToFront();
 }
Ejemplo n.º 8
0
 public void CreateFormationsWindow()
 {
     if (formations == null || !formations.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         formations     = new FormationsEditor();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, formations);
         }
         else
         {
             formations.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     formations.KeyDown += new KeyEventHandler(editor_KeyDown);
     formations.BringToFront();
 }
Ejemplo n.º 9
0
 public void CreateDialoguesWindow()
 {
     if (dialogues == null || !dialogues.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         dialogues      = new Dialogues();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, dialogues);
         }
         else
         {
             dialogues.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     dialogues.KeyDown += new KeyEventHandler(editor_KeyDown);
     dialogues.BringToFront();
 }
Ejemplo n.º 10
0
 public void CreateBattlefieldsWindow()
 {
     if (battlefields == null || !battlefields.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         battlefields   = new Battlefields();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, battlefields);
         }
         else
         {
             battlefields.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     battlefields.KeyDown += new KeyEventHandler(editor_KeyDown);
     battlefields.BringToFront();
 }
Ejemplo n.º 11
0
 public void CreateAudioWindow()
 {
     if (audio == null || !audio.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         audio          = new Audio();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, audio);
         }
         else
         {
             audio.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     audio.KeyDown += new KeyEventHandler(editor_KeyDown);
     audio.BringToFront();
 }
Ejemplo n.º 12
0
 public void CreateAttacksWindow()
 {
     if (attacks == null || !attacks.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         attacks        = new AttacksEditor();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, attacks);
         }
         else
         {
             attacks.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     attacks.KeyDown += new KeyEventHandler(editor_KeyDown);
     attacks.BringToFront();
 }
Ejemplo n.º 13
0
 public void CreateAnimationsWindow()
 {
     if (animations == null || !animations.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         animations     = new AnimationScripts();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, animations);
         }
         else
         {
             animations.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     animations.KeyDown += new KeyEventHandler(editor_KeyDown);
     animations.BringToFront();
 }
Ejemplo n.º 14
0
 // editor managing
 public void Dock()
 {
     if (allies != null && allies.Visible)
     {
         Do.AddControl(editor.Panel2, allies);
     }
     if (animations != null && animations.Visible)
     {
         Do.AddControl(editor.Panel2, animations);
     }
     if (attacks != null && attacks.Visible)
     {
         Do.AddControl(editor.Panel2, attacks);
     }
     if (audio != null && audio.Visible)
     {
         Do.AddControl(editor.Panel2, audio);
     }
     if (battlefields != null && battlefields.Visible)
     {
         Do.AddControl(editor.Panel2, battlefields);
     }
     if (dialogues != null && dialogues.Visible)
     {
         Do.AddControl(editor.Panel2, dialogues);
     }
     if (effects != null && effects.Visible)
     {
         Do.AddControl(editor.Panel2, effects);
     }
     if (eventScripts != null && eventScripts.Visible)
     {
         Do.AddControl(editor.Panel2, eventScripts);
     }
     if (formations != null && formations.Visible)
     {
         Do.AddControl(editor.Panel2, formations);
     }
     if (items != null && items.Visible)
     {
         Do.AddControl(editor.Panel2, items);
     }
     if (levels != null && levels.Visible)
     {
         Do.AddControl(editor.Panel2, levels);
     }
     if (intro != null && intro.Visible)
     {
         Do.AddControl(editor.Panel2, intro);
     }
     if (menus != null && menus.Visible)
     {
         Do.AddControl(editor.Panel2, menus);
     }
     if (miniGames != null && miniGames.Visible)
     {
         Do.AddControl(editor.Panel2, miniGames);
     }
     if (monsters != null && monsters.Visible)
     {
         Do.AddControl(editor.Panel2, monsters);
     }
     if (sprites != null && sprites.Visible)
     {
         Do.AddControl(editor.Panel2, sprites);
     }
     if (worldMaps != null && worldMaps.Visible)
     {
         Do.AddControl(editor.Panel2, worldMaps);
     }
 }