Esempio n. 1
0
        public void NextScreen(ScreenType screen)
        {
            switch (screen)
            {
                case ScreenType.DevScreen:
                    if (!(_currentScreen is DevScreen))
                    {
                        var s = new DevScreen();
                        s.setImage("Teamblui");
                        s.Show(this, _currentScreen);
                        _currentScreen = s;
                    }
                    break;
                case ScreenType.PressStart:
                    if (!(_currentScreen is MenuScreen))
                    {
                        var m = new MenuScreen();
                        m.Show(this, _currentScreen);
                        _currentScreen = m;
                    }
                    break;
                case ScreenType.MainMenu:
                    if (!(_currentScreen is MainMenuScreen))
                    {
                        var mm = new MainMenuScreen();
                        mm.Show(this, _currentScreen);
                        _currentScreen = mm;
                    }
                    break;
                case ScreenType.Options:
                    if (!(_currentScreen is OptionMenu))
                    {
                        var m2 = new OptionMenu();
                        m2.Show(this, _currentScreen);
                        _currentScreen = m2;
                    }
                    break;
                case ScreenType.GeneralOptions:
                    var m3 = new GeneralOptionMenu();
                    m3.Show(this, _currentScreen);
                    _currentScreen = m3;
                    break;
                case ScreenType.KeyConfig:
                    if (!(_currentScreen is KeyOption))
                    {
                        var m4 = new KeyOption();
                        m4.Show(this, _currentScreen);
                        _currentScreen = m4;
                    }
                    break;
                case ScreenType.Themes:
                    if (!(_currentScreen is ThemeMenu))
                    {
                        var m5 = new ThemeMenu();
                        m5.Show(this, _currentScreen);
                        _currentScreen = m5;
                    }
                    break;
                case ScreenType.GameMode:
                    if (!(_currentScreen is GameModeMenu))
                    {
                        var m6 = new GameModeMenu();
                        m6.Show(this, _currentScreen);
                        _currentScreen = m6;
                    }
                    break;
                case ScreenType.PlayerCound:
                    if (!(_currentScreen is PlayerSelectMenu))
                    {
                        var m7 = new PlayerSelectMenu();
                        m7.Show(this, _currentScreen);
                        _currentScreen = m7;
                    }
                    break;
                case ScreenType.Characters:
                    if (!(_currentScreen is SkinSelectMenu))
                    {
                        var m8 = new SkinSelectMenu();
                        m8.Show(this, _currentScreen);
                        _currentScreen = m8;
                    }
                    break;
                case ScreenType.PreGame:
                    if (!(_currentScreen is PreGame))
                    {
                        Score._.ResetScore();
                        var m9 = new PreGame();
                        m9.Show(this, _currentScreen);
                        _currentScreen = m9;
                    }
                    break;
                case ScreenType.Game:
                    if (!(_currentScreen is GameScreen))
                    {
                        var m10 = new GameScreen();
                        m10.Show(this, _currentScreen);
                        _currentScreen = m10;
                    }
                    break;
                case ScreenType.Results:
                    if(!(_currentScreen is ResultScreen))
                    {
                        var m11 = new ResultScreen();
                        m11.Show(this, _currentScreen);
                        _currentScreen = m11;
                    }
                    break;

            }
            //FadeIn();
        }
Esempio n. 2
0
 public void LoadMenuImagePrevious(GameModeMenu old, string mySelectedOption)
 {
     MenuDataList.Add("Sky", old.MenuDataList["Sky"]);
     MenuDataList.Add("Black", old.MenuDataList["Black"]);
     MenuDataList.Add("Bomb", old.MenuDataList["Bomb"]);
     MenuDataList.Add("Eisti", old.MenuDataList["Eisti"]);
     MenuDataList.Add("2", old.MenuDataList["2"]);
     MenuDataList.Add("BoxGame", old.MenuDataList["BoxGame"]);
     MenuLabelList.Add("BoxGame", old.MenuLabelList["BoxGame"]);
     MenuDataList.Add("BoxD" + mySelectedOption, old.MenuDataList["BoxD" + mySelectedOption]);
     MenuDataList.Add("BoxG" + mySelectedOption, old.MenuDataList["BoxG" + mySelectedOption]);
     MenuLabelList.Add("Box" + mySelectedOption, old.MenuLabelList["Box" + mySelectedOption]);
 }
Esempio n. 3
0
 public void LoadMenuImagePrevious(GameModeMenu old, string mySelectedOption)
 {
     MenuDataList.Add("Sky", old.MenuDataList["Sky"]);
     MenuDataList.Add("Black", old.MenuDataList["Black"]);
     MenuDataList.Add("Bomb", old.MenuDataList["Bomb"]);
     MenuDataList.Add("Eisti", old.MenuDataList["Eisti"]);
     MenuDataList.Add("2", old.MenuDataList["2"]);
     MenuDataList.Add("BoxOption", old.MenuDataList["BoxOption"]);
     MenuLabelList.Add("BoxOption", old.MenuLabelList["BoxOption"]);
     MenuDataList.Add("BoxGeneral", old.MenuDataList["BoxGeneral"]);
     MenuLabelList.Add("BoxGeneral", old.MenuLabelList["BoxGeneral"]);
     MenuDataList.Add("BoxD" + mySelectedOption, old.MenuDataList["BoxD" + mySelectedOption]);
     MenuDataList.Add("BoxG" + mySelectedOption, old.MenuDataList["BoxG" + mySelectedOption]);
     MenuLabelList.Add("Box" + mySelectedOption, old.MenuLabelList["Box" + mySelectedOption]);
     var l = new Label { Content = "Chargement...", FontSize = 40, Foreground = new SolidColorBrush(Colors.White), Margin = new Thickness(150, 500, 0, 0) };
     MenuLabelList.Add("Loading", l);
     if(GameParameters._.Type != GameType.Crazy)
     {
         OptionMoved.Add("Time", "");
         OptionMoved.Add("Explode", "");
         OptionMoved.Add("Lives", "");
         OptionMoved.Add("Soft", "");
         OptionMoved.Add("PowerUp", "");
         OptionMoved.Add("PowerMax", "");
         OptionMoved.Add("BombUp", "");
         OptionMoved.Add("Kick", "");
         OptionMoved.Add("SpeedUp", "");
         OptionMoved.Add("SpeedMax", "");
         OptionMoved.Add("Life", "");
         OptionMoved.Add("Teleport", "");
         OptionMoved.Add("PowerDown", "");
         OptionMoved.Add("BombDown", "");
         OptionMoved.Add("SpeedDown", "");
         OptionMoved.Add("ChangeDirection", "");
         OptionMoved.Add("Confirm", "");
         OptionMoved.Add("Quit", "");
     }else
     {
         OptionMoved.Add("Time", "");
         OptionMoved.Add("Explode", "");
         OptionMoved.Add("Lives", "");
         OptionMoved.Add("Soft", "");
         OptionMoved.Add("PowerUp", "");
         OptionMoved.Add("Move", "");
         OptionMoved.Add("Ninja", "");
         OptionMoved.Add("Mine", "");
         OptionMoved.Add("Fly", "");
         OptionMoved.Add("Teleport", "");
         OptionMoved.Add("Ghost", "");
         OptionMoved.Add("Teleguide", "");
         OptionMoved.Add("Cataclysm", "");
         OptionMoved.Add("Flower", "");
         OptionMoved.Add("Dark", "");
         OptionMoved.Add("Freeze", "");
         OptionMoved.Add("Confirm", "");
         OptionMoved.Add("Quit", "");
     }
 }
Esempio n. 4
0
 public void LoadMenuImagePrevious(GameModeMenu old)
 {
     MenuDataList.Add("Sky", old.MenuDataList["Sky"]);
     MenuDataList.Add("Black", old.MenuDataList["Black"]);
     MenuDataList.Add("Bomb", old.MenuDataList["Bomb"]);
     MenuDataList.Add("Eisti", old.MenuDataList["Eisti"]);
     MenuDataList.Add("2", old.MenuDataList["2"]);
     MenuDataList.Add("BoxGame", old.MenuDataList["BoxGame"]);
     MenuLabelList.Add("BoxGame", old.MenuLabelList["BoxGame"]);
 }