コード例 #1
0
        public CharacterSelectStage()
        {
            BackgroundDisplayable bg = new BackgroundDisplayable(null);
            background.Add(bg);

            MenuItem title = new MenuItem(null, 0, 0);
            MenuItem char1 = new MenuItem(null, pad, topmargin);
            MenuItem char2 = new MenuItem(null, pad, char1.currentLocation.Y + gap);
            MenuItem char3 = new MenuItem(null, pad, char2.currentLocation.Y + gap);
            MenuItem char4 = new MenuItem(null, pad, char3.currentLocation.Y + gap);
            MenuItem char5 = new MenuItem(null, pad, char4.currentLocation.Y + gap);
            MenuItem random = new MenuItem(null, pad, char5.currentLocation.Y + gap);
            MenuItem back = new MenuItem(null, pad, random.currentLocation.Y + gap * 2);

            menuitems.Add(title);
            menuitems.Add(char1);
            menuitems.Add(char2);
            menuitems.Add(char3);
            menuitems.Add(char4);
            menuitems.Add(char5);
            menuitems.Add(random);
            menuitems.Add(back);

            layers.Add(background);
            layers.Add(menuitems);
        }
コード例 #2
0
ファイル: ModeSelectStage.cs プロジェクト: gsdmlgla/Project
        /// <summary>
        /// Constructs a ModeSelectStage
        /// </summary>
        public ModeSelectStage()
        {
            BackgroundDisplayable bg = new BackgroundDisplayable(null);
            background.Add(bg);

            MenuItem title = new MenuItem(null, 0, 0);
            MenuItem story = new MenuItem(null, pad, topmargin);
            MenuItem pvp = new MenuItem(null, pad, story.currentLocation.Y + gap);
            MenuItem arena = new MenuItem(null, pad, pvp.currentLocation.Y + gap);
            MenuItem back = new MenuItem(null, pad, arena.currentLocation.Y + gap * 2);

            menuitems.Add(title);
            menuitems.Add(story);
            menuitems.Add(pvp);
            menuitems.Add(arena);
            menuitems.Add(back);

            layers.Add(background);
            layers.Add(menuitems);
        }
コード例 #3
0
ファイル: MainMenuStage.cs プロジェクト: gsdmlgla/Project
        /// <summary>
        /// Constructs a MainMenuStage.
        /// </summary>
        public MainMenuStage()
        {
            MenuItem Title = new MenuItem(null,0, 0);
            MenuItem Start = new MenuItem(null, pad, topmargin) ;
            MenuItem Options = new MenuItem(null, pad, Start.currentLocation.Y + gap) ;
            MenuItem Credits = new MenuItem(null, pad, Options.currentLocation.Y + gap) ;
            MenuItem Quit = new MenuItem(null, pad, Credits.currentLocation.Y + gap) ;

            menuitems.Add(Title);
            menuitems.Add(Start);
            menuitems.Add(Options);
            menuitems.Add(Credits);
            menuitems.Add(Quit);

            BackgroundDisplayable bg = new BackgroundDisplayable(null);
            background.Add(bg);

            layers.Add(background);
            layers.Add(menuitems);
        }