Esempio n. 1
0
 private void AddLevelViewButton(LevelMDIChild child)
 {
     ToolStripMenuItem item = new ToolStripMenuItem(child.Text);
     item.Click += new EventHandler(child.FocusClick);
     child.SetToolStipMenuItem(item, RemoLevelViewButton);
     viewToolStripMenuItem.DropDownItems.Add(item);
 }
Esempio n. 2
0
 private void StarEditWindows_MdiChildActivate(object sender, EventArgs e)
 {
     if(ActiveMdiChild != null)
         if (ActiveMdiChild.GetType() == (typeof(LevelMDIChild)))
         {
             LevelMDIChild child = (LevelMDIChild)ActiveMdiChild;
             child.SetMouseTile(toolform.SelectedTileString);
             lastactivelevel = child;
         }
 }
Esempio n. 3
0
        private LevelMDIChild NewLevelMDI(string path)
        {
            string[] filename = path.Split('\\');

            LevelMDIChild level = new LevelMDIChild(filename[filename.Length-1]);
            SetLevelEvents(level);
            level.MdiParent = this;
            level.Show();
            return level;
        }
Esempio n. 4
0
 private void SetLevelEvents(LevelMDIChild level)
 {
     //toolform.SelectedEnemyChanged += level.SelectedEnemyChanged;
     settooltypedelegate.Add(level.toolManager.TileToolTypeChanged);
     //toolform.TileBox.SelectedIndexChanged += new EventHandler(level.SetMouseTile);
     //toolform.SelectedToolChanged +=new ToolManager.CurrentToolChangedEventHandler(level.ToolChanged);
     //level.ToolChanged(toolform.SelectedTool);
     level.SetTool(tooltype);
     level.SelectedEnemyChanged(toolform.SelectedEnemy);
 }
Esempio n. 5
0
 private LevelMDIChild NewDefaultMDI(string name,int x,int y)
 {
     LevelMDIChild level = new LevelMDIChild(name);
     level.MdiParent = this;
     //level.SetFormLocation(Location);
     level.Show();
     level.NewLevel(x, y);
     //Adding SelectedIndexChanged Event from the TileBox in the Toolform
     //to the LevelMDIChildForm
     SetLevelEvents(level);
     return level;
 }