コード例 #1
0
        public MWEnd(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            SwinGame.LoadBitmapNamed("Ending1", "Ending1");
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed("Ending1"));
            //

            //Go to menu
            _gotoMenuButton = new MWButton("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText("-Back to Menu-", 25);
            //
        }
        public MWMarioEnd(ViewManager viewManager)
            : base(viewManager)
        {
            //background Image
            _marioimage = "game_over.jpg";
            SwinGame.LoadBitmapNamed(_marioimage, _marioimage);
            _mariomenu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_marioimage));
            //

            //Go to menu
            _mariogotoMenuButton = new MWButton("grey_button06.png");
            _mariogotoMenuButton.SetWidth(191);
            _mariogotoMenuButton.SetHeight(49);
            _mariogotoMenuButton.SetText("-Back to Menu-", 25);
            //
        }
        public Settings(ViewManager viewManager)
            : base(viewManager)
        {
            //background Image
            _image = BS_bgSelector.bg_img();
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //next img button
            _nextImgButton = new BS_Button("flatDark24_2.png");
            _nextImgButton.SetWidth(30);
            _nextImgButton.SetHeight(30);
            _nextImgButton.SetText(" Background Changer ", 15);

            //previous img button
            _previousImgButton = new BS_Button("flatDark23_2.png");
            _previousImgButton.SetWidth(30);
            _previousImgButton.SetHeight(30);

            //BGM1 button
            _BGM1Button = new MWButton("red_button2.png");
            _BGM1Button.SetWidth(80);
            _BGM1Button.SetHeight(40);
            _BGM1Button.SetText("Adventure", 15);

            //BGM2 button
            _BGM2Button = new MWButton("red_button2.png");
            _BGM2Button.SetWidth(80);
            _BGM2Button.SetHeight(40);
            _BGM2Button.SetText(" Fantasy ", 15);

            //stop BGM button
            _stopBGMButton = new MWButton("red_button2.png");
            _stopBGMButton.SetWidth(80);
            _stopBGMButton.SetHeight(40);
            _stopBGMButton.SetText("No Music", 15);

            //Go to menu
            _gotoMenuButton = new BS_Button("grey_button06.png");
            _gotoMenuButton.SetWidth(191);
            _gotoMenuButton.SetHeight(49);
            _gotoMenuButton.SetText(" Back to Menu ", 25);
            //
        }
コード例 #4
0
        public MWGame(ViewManager viewManager) : base(viewManager)
        {
            _sideBar     = new MWSideBarUpdate(_viewManager);
            _servingArea = new MWServingArea();
            _btmBar      = new MWBottomBar();

            _giveUpButton = new MWButton("blue_button07.png");
            _giveUpButton.SetWidth(80);
            _giveUpButton.SetHeight(80);
            _giveUpButton.SetText("Exit", 35);

            //Register for Observer Pattern
            foreach (MWDiningTable diningTable in _servingArea.DiningTable)
            {
                diningTable.RegisterSideBar(_sideBar);
            }
            _btmBar.RegisterStove(_servingArea.Stoves);
            _servingArea.Player.RegisterHoldingFrame(_sideBar.HoldingFoodFrame);
            //
        }
        public MWCustomerSelection(ViewManager viewManager) : base(viewManager)
        {
            //background Image
            _image = BS_bgSelector.bg_img();
            SwinGame.LoadBitmapNamed(_image, _image);
            _menu = SwinGame.CreateSprite(SwinGame.BitmapNamed(_image));
            //

            //Male Button
            _pokemonButton = new MWButton("grey_button06.png");
            _pokemonButton.SetWidth(191);
            _pokemonButton.SetHeight(49);
            _pokemonButton.SetText("Pokemon", 25);
            //

            _superMarioButton = new MWButton("grey_button06.png");
            _superMarioButton.SetWidth(191);
            _superMarioButton.SetHeight(49);
            _superMarioButton.SetText("SuperMario", 25);
        }