/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w Lose. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/TransparentBackground"); _logo.LoadContent(content, "Views/Common/Logo"); _goToMainMenuButton.LoadContent(content, "Views/NavigationButtons/MainMenu"); _tryAgain.LoadContent(content, "Views/NavigationButtons/TryAgain"); _infoLabel.LoadContent(content, "Fonts/Silkscreen"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w Help. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); _logo.LoadContent(content, "Views/Common/Logo"); _instruction.LoadContent(content, "Views/Help/Instruction"); _previousPage.LoadContent(content, "Views/NavigationButtons/GoBack"); _exit.LoadContent(content, "Views/NavigationButtons/Exit"); _header.LoadContent(content, "Fonts/Silkscreen"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w NewGame. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); _menuFrame.LoadContent(content, "Views/Common/MenuFrame"); _menu[0].LoadContent(content, "Views/NavigationButtons/Play"); _menu[1].LoadContent(content, "Views/NavigationButtons/GoBack"); _menu[2].LoadContent(content, "Views/NavigationButtons/Exit"); // UserInput _userName.LoadContent(content, "Fonts/Silkscreen"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w Pause. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/TransparentBackground"); _logo.LoadContent(content, "Views/Common/Logo"); _continue.LoadContent(content, "Views/NavigationButtons/Continue"); _exit.LoadContent(content, "Views/NavigationButtons/Exit"); _menu[0].LoadContent(content, "Views/NavigationButtons/MainMenu"); _menu[1].LoadContent(content, "Views/NavigationButtons/Options"); _menu[2].LoadContent(content, "Views/NavigationButtons/Help"); _header.LoadContent(content, "Fonts/Silkscreen"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w BestScores. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); _logo.LoadContent(content, "Views/Common/Logo"); _previousPage.LoadContent(content, "Views/NavigationButtons/GoBack"); _exit.LoadContent(content, "Views/NavigationButtons/Exit"); _header.LoadContent(content, "Fonts/Silkscreen"); for (int i = 0; i < _players.GetLength(0); i++) { for (int j = 0; j < _players.GetLength(1); j++) { _players[i, j].LoadContent(content, "Fonts/Silkscreen"); } } }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w Menu. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); _grass[0].LoadContent(content, "Views/Menu/GrassOne"); _grass[1].LoadContent(content, "Views/Menu/GrassTwo"); _grass[2].LoadContent(content, "Views/Menu/GrassThree"); _sky.LoadContent(content, "Views/Menu/Sky"); _cloud.LoadContent(content, "Views/Menu/Clouds"); _groundBuffer.LoadContent(content, "Views/Menu/GroundBuffer"); _menuFrame.LoadContent(content, "Views/Common/MenuFrame"); _menu[0].LoadContent(content, "Views/NavigationButtons/NewGame"); _menu[1].LoadContent(content, "Views/NavigationButtons/LoadGame"); _menu[2].LoadContent(content, "Views/NavigationButtons/BestScores"); _menu[3].LoadContent(content, "Views/NavigationButtons/Help"); _menu[4].LoadContent(content, "Views/NavigationButtons/Exit"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w Options. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/TransparentBackground"); _logo.LoadContent(content, "Views/Common/Logo"); _goBack.LoadContent(content, "Views/NavigationButtons/GoBack"); _exit.LoadContent(content, "Views/NavigationButtons/Exit"); _keyboardLabel.LoadContent(content, "Fonts/Silkscreen"); _keyboardLayout[0].LoadContent(content, "Views/OptionsButtons/Arrows"); _keyboardLayout[1].LoadContent(content, "Views/OptionsButtons/Wsad"); _musicLabel.LoadContent(content, "Fonts/Silkscreen"); _musicOnOff[0].LoadContent(content, "Views/OptionsButtons/On"); _musicOnOff[1].LoadContent(content, "Views/OptionsButtons/Off"); _header.LoadContent(content, "Fonts/Silkscreen"); }
/// <summary> /// Metoda wczytuje grafiki i czcionkni dla wszystkich obiektów znajdujących się w LoadState. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); _logo.LoadContent(content, "Views/Common/Logo"); _previousPage.LoadContent(content, "Views/NavigationButtons/GoBack"); _exit.LoadContent(content, "Views/NavigationButtons/Exit"); _header.LoadContent(content, "Fonts/Silkscreen"); if (Window.Context.Players.Count == 0) { _noPlayers.LoadContent(content, "Fonts/Silkscreen"); } else { for (int i = 0; i < _players.Length; i++) { _players[i].LoadContent(content, "Fonts/Silkscreen"); } } }
/// <summary> /// Metoda wczytująca grafiki ziemi. /// </summary> /// <param name="content">Menager zasobów.</param> /// <param name="normalGroundGraphic">Ścieżka do zasobu normalnej ziemi.</param> /// <param name="freeGroundGraphic">Ścieżka do zasobu pustej ziemi.</param> public void LoadContent(ContentManager content, string normalGroundGraphic, string freeGroundGraphic) { _groundGraphic.LoadContent(content, normalGroundGraphic); _freeGroundGraphic.LoadContent(content, freeGroundGraphic); }
/// <summary> /// Metoda wczytująca grafike owocu. /// </summary> /// <param name="content">Manager zasobów.</param> /// <param name="assetName">Ścieżka do zasobu.</param> public void LoadContent(ContentManager content, string assetName) { _fruitGraphic.LoadContent(content, assetName); _rectangle = new Rectangle(); }
/// <summary> /// Metoda wczytuje tło w Exit. /// </summary> /// <param name="content">Manager zasobów.</param> public void LoadContent(ContentManager content) { _background.LoadContent(content, "Views/Common/Background"); }