Beispiel #1
0
        public TitleScreen()
        {
            // Create all our menu items
            menuItems = new List <LinkedMenuItem>();
            StartGameButton   sgb = new StartGameButton(this);
            StartEditorButton seb = new StartEditorButton(this);
            HelpButton        hb  = new HelpButton(this);

            // Link up the menu items
            sgb.Down = seb;
            seb.Up   = sgb;
            seb.Down = hb;
            hb.Up    = seb;

            // Add the menu items to our collection
            menuItems.Add(seb);
            menuItems.Add(sgb);
            //menuItems.Add(hb);

            // Select start game by default
            this.SelectItem(sgb);
        }
Beispiel #2
0
        public TitleScreen()
        {
            // Create all our menu items
            menuItems = new List<LinkedMenuItem>();
            StartGameButton sgb = new StartGameButton(this);
            StartEditorButton seb = new StartEditorButton(this);
            HelpButton hb = new HelpButton(this);

            // Link up the menu items
            sgb.Down = seb;
            seb.Up = sgb;
            seb.Down = hb;
            hb.Up = seb;

            // Add the menu items to our collection
            menuItems.Add(seb);
            menuItems.Add(sgb);
            //menuItems.Add(hb);

            // Select start game by default
            this.SelectItem(sgb);
        }