Beispiel #1
0
 public HighScores(ServerHandler serverHandler)
 {
     this.serverHandler = serverHandler;
     btnBack = new Button("Buttons", new Vector2(600, 400), new Rectangle(0, 120 * 6, 250, 120), false, false);
     //btnUpdate = new Button("Buttons", new Vector2(200, 400), new Rectangle(0, 120 * 9, 250, 120), false, false);
     LoadContent();
 }
        public ScreenManager(ContentManager content, GraphicsDeviceManager graphics)
        {
            // TODO: Construct any child components here
            serverHandler = new ServerHandler();
            weather = new Weather();

            mainScene = new MainScene(content, graphics);
            loadingScreen = new LoadingScreen();

            mainMenu = new MainMenu(content.Load<SpriteFont>("Fonts\\menufont"));
            highScores = new HighScores(serverHandler);
            settingsMenu = new SettingsMenu(weather, this);
            pauseMenu = new PauseMenu();
            deadScreen = new DeadScreen(this);
            weatherMenu = new WeatherMenu(this, weather);

            CurrentWeather = weather.WeatherForecast;
        }