public static void WelcomeMenuScreenSelection()
        {
            switch (currentPossition) //TODO Add back functionality
            {
            case 0:                   //Log in Functionality
                RegisterMenu.LogInScreen();
                MenuService.ShowLogInScreen();
                MenuService.LogInScreenSelection();

                break;

            case 1:    //Credits SCREEN
                WelcomeMenu.Credits();
                break;

            case 2:    //HIGHSCORES SCREEN
                WelcomeMenu.Scores();
                break;

            case 3:
                Console.Beep(4250, 300);
                Environment.Exit(0);
                break;
            }
        }
示例#2
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            SetUpPayPal();

            self = this;
            LoadConfig();
            LoadWallpapers();
            Wallpaper = walls[new Random().Next(6)];
            //Wallpaper = Utils.CreateTexture(GraphicsDevice, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
            //  gd = GraphicsDevice;
            var spriteSheetLoader = new SpriteSheetLoader(Content, GraphicsDevice);

            sheet     = spriteSheetLoader.Load("SpriteSheet.png");
            hit4sheet = spriteSheetLoader.Load("hit4.png");
            //sheet
            loginMenu = new LoginMenu();
            loginMenu.Initialize(Content);
            registerMenu = new RegisterMenu();
            registerMenu.Initialize(Content);
            menus.Add(loginMenu);
            menus.Add(registerMenu);
            base.Initialize();
        }
        public static void LogInScreenSelection()
        {
            switch (currentPossition)
            {
            case 0:    //Register New Player
                RegisterMenu.RegisterNewPlayer();
                break;

            case 1:    //Log In
                RegisterMenu.LogIn();
                break;

            case 2:    //Back to Welcome Menu Screen
                MenuService.ShowWelcomeScreen();
                MenuService.WelcomeMenuScreenSelection();
                break;
            }
        }
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            self = this;
            //LoadConfig();
            Wallpaper = Utils.CreateTexture(GraphicsDevice, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);

            //  gd = GraphicsDevice;

            loginMenu = new LoginMenu();
            loginMenu.Initialize(Content);
            registerMenu = new RegisterMenu();
            registerMenu.Initialize(Content);
            menus.Add(loginMenu);
            menus.Add(registerMenu);
            base.Initialize();
            state = State.LoginMenu;
        }
        public static void ShowLogInScreen()
        {
            RegisterMenu.LogInScreen(currentPossition);

            bool isSelecting = true;

            while (isSelecting)
            {
                ConsoleKeyInfo pressedKey = Console.ReadKey(true);

                if (pressedKey.Key == ConsoleKey.UpArrow)
                {
                    Console.Beep(7000, 70);
                    currentPossition--;
                    if (currentPossition < 0)
                    {
                        currentPossition = 3;
                    }
                }
                else if (pressedKey.Key == ConsoleKey.DownArrow)
                {
                    Console.Beep(7000, 70);
                    currentPossition++;
                    if (currentPossition > 2)
                    {
                        currentPossition = 0;
                    }
                }
                else if (pressedKey.Key == ConsoleKey.Enter)
                {
                    isSelecting = false;
                }


                RegisterMenu.LogInScreen(currentPossition);
                //Console.Clear();
            }
        }
示例#6
0
 public void OpenRegister()
 {
     StartMenu.SetActive(false);
     LoginMenu.SetActive(false);
     RegisterMenu.SetActive(true);
 }
        public void EnterState()
        {
            var window = new RegisterMenu();

            Program.MainWindow.SwitchScreen(window);
        }