Example #1
0
        public TestMenu()
        {
            LinkedMenuItem cb = new MainMenuButton(this);
            LinkedMenuItem eb = new ExitButton(this, null, null, cb, null);

            cb.Down   = eb;
            menuItems = new List <LinkedMenuItem>();
            menuItems.Add(cb);
            menuItems.Add(eb);
            this.selectedItem = cb;
        }
Example #2
0
        public PauseScreen()
        {
            LinkedMenuItem cb = new MainMenuButton(this);
            LinkedMenuItem eb = new ExitButton(this, null, null, cb, null);

            cb.Down   = eb;
            menuItems = new List <LinkedMenuItem>();
            menuItems.Add(cb);
            menuItems.Add(eb);
            if (MainManager.Instance.gameMan.gState == GameState.map_editor)
            {
                LinkedMenuItem smb = new SaveMapButton(this);
                eb.Down = smb;
                smb.Up  = eb;
                menuItems.Add(smb);
            }
            this.selectedItem = cb;
        }
Example #3
0
 public TestMenu()
 {
     LinkedMenuItem cb = new MainMenuButton(this);
     LinkedMenuItem eb = new ExitButton(this, null, null, cb, null);
     cb.Down = eb;
     menuItems = new List<LinkedMenuItem>();
     menuItems.Add(cb);
     menuItems.Add(eb);
     this.selectedItem = cb;
 }
Example #4
0
 public PauseScreen()
 {
     LinkedMenuItem cb = new MainMenuButton(this);
     LinkedMenuItem eb = new ExitButton(this, null, null, cb, null);
     cb.Down = eb;
     menuItems = new List<LinkedMenuItem>();
     menuItems.Add(cb);
     menuItems.Add(eb);
     if(MainManager.Instance.gameMan.gState == GameState.map_editor)
     {
         LinkedMenuItem smb = new SaveMapButton(this);
         eb.Down = smb;
         smb.Up = eb;
         menuItems.Add(smb);
     }
     this.selectedItem = cb;
 }