internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.BufferUp = 1; _optionsBox.BufferRight = 4; _optionsBox.CanCancel = false; _optionsBox.CloseAfterSelection = false; var options = new List <string>() { "NEW GAME", "OPTION" }; if (PlayerData.SaveFileExists()) { // load player file if it exists Controller.ActivePlayer = new Player(); Controller.ActivePlayer.Load(); options.Insert(0, "CONTINUE"); } _optionsBox.Show(options.ToArray()); _optionsBox.OptionSelected += OptionSelected; var unit = Border.UNIT * Border.SCALE; var offset = Controller.ClientRectangle.Height / 2 - Border.SCREEN_HEIGHT * unit / 2; _optionsBox.OffsetY = (int)(_optionsBox.Height * unit + offset); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _itemIcon = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokemon/item.png"); _mailIcon = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokemon/mail.png"); _selector = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/selector.png"); _moveSelector = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/moveSelector.png"); _arrow = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/arrow.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.OffsetY -= (int)(Border.SCALE * Border.UNIT * 3); _optionsBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 9); _optionsBox.OptionSelected += OptionSelected; _optionsBox.CloseAfterSelection = false; _confirmationBox = new OptionsBox(); _confirmationBox.LoadContent(); _confirmationBox.OffsetY -= (int)(Border.SCALE * Border.UNIT); _confirmationBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 14); _message = DEFAULT_MESSAGE; }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _overlay = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/searchOverlay.png"); _search = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/search.png"); _arrow = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/arrow.png"); _noResultsOverlay = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/noResultsOverlay.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); // load type selections var type1Options = new List <string>(); var type2Options = new List <string> { "----" }; for (var i = 0; i < Pokemon.TYPES_AMOUNT; i++) { type1Options.Add(((PokemonType)(i + 1)).ToString().ToUpper()); type2Options.Add(((PokemonType)(i + 1)).ToString().ToUpper()); } _type1Options = type1Options.ToArray(); _type2Options = type2Options.ToArray(); }
internal override void LoadContent() { _sceneTarget = RenderTargetManager.CreateScreenTarget(); _batch = new SpriteBatch(Controller.GraphicsDevice); _player = Controller.Content.LoadDirect <Texture2D>("Textures/Battle/player.png"); _pokeballOpening = Controller.Content.LoadDirect <Texture2D>("Textures/Battle/pokeballOpening.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _battleTextbox = new Textbox(); _battleTextbox.LoadContent(); _battleTextbox.OffsetY = StartY + (int)(12 * Border.UNIT * Border.SCALE); _enemyPokemonStatus = new EnemyPokemonStatus(); _enemyPokemonStatus.LoadContent(); _playerPokemonStatus = new PlayerPokemonStatus(); _playerPokemonStatus.LoadContent(); _playerStatus = new PlayerStatus(); _playerStatus.LoadContent(); _pokemonStats = new PokemonStats(); _pokemonStats.LoadContent(); }
public void LoadContent() { _texture = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Battle/playerState.png"); _partyIndicators = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Battle/partyIndicators.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _fontRenderer.LineGap = 0; _optionsText = GetOptionsText(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _overlay = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/optionOverlay.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }
} = false; // increases the own pokemon level display by 1 to simulate a level up public void LoadContent() { _texture = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Battle/playerPokemonState.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _hpState = GetTargetHPState(); _expState = GetTargetExpState(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _map = Controller.Content.LoadDirect <Texture2D>($"Textures/UI/TownMap/{_region}.png"); _selector = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TownMap/selector.png"); _player = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TownMap/player.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _fontRenderer.LineGap = 0; }
public void LoadContent() { _texture = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Battle/enemyPokemonState.png"); _caughtIndicator = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Battle/caughtIndicator.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _hpState = GetTargetHPState(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _pokeball = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/pokeball.png"); _unknown = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/unknownPokemon.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); var backgroundFile = MAIL_BACKGROUNDS[_mail.Template]; _background = Controller.Content.LoadDirect <Texture2D>($"Textures/UI/Mail/{backgroundFile}"); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _background = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TrainerCard/background.png"); _badges = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TrainerCard/badges.png"); _leaders = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TrainerCard/leaders.png"); _pageLabels = Controller.Content.LoadDirect <Texture2D>("Textures/UI/TrainerCard/pageLabels.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _border = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Naming/border.png"); _selector = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Naming/selector.png"); _placeholders = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Naming/placeholders.png"); _selectorMenu = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Naming/selectorMenu.png"); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _pages = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokemon/summaryPages.png"); _expBar = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokemon/expBar.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _hpbar = new HPBar(); _hpbar.LoadContent(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _mapJohto = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/mapJohto.png"); _mapKanto = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/mapKanto.png"); _nestIndicator = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/nestIndicator.png"); _player = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/player.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); LoadMapEntries(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _overlay = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/detailsOverlay.png"); _pageIndicators = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/pageIndicators.png"); _footprints = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokedex/footprints.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); // initialize first entry InitializeEntry(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.BufferUp = 1; _optionsBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 11); _optionsBox.OffsetY -= (int)(Border.SCALE * Border.UNIT * 3); _optionsBox.OptionSelected += OptionSelected; _optionsBox.CloseAfterSelection = false; }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _arrow = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/arrow.png"); _buttons = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/buttons.png"); _switchButton = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/switchButton.png"); _timeBox = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/time.png"); _mapOverlay = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/mapOverlay.png"); _phoneBackground = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/phoneBackground.png"); _reception = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Pokegear/reception.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _contactsFontRenderer = new PokemonFontRenderer(); _contactsFontRenderer.LoadContent(); _contactsFontRenderer.LineGap = 0; _exitTextbox = new Textbox(); _exitTextbox.LoadContent(); _exitTextbox.ShowAndSkip("Press any button\nto exit."); _exitTextbox.OffsetY = (int)(Border.SCREEN_HEIGHT * Border.SCALE * Border.UNIT - Textbox.HEIGHT * Border.UNIT * Border.SCALE); _phoneTextbox = new Textbox(); _phoneTextbox.LoadContent(); _phoneTextbox.ShowAndSkip("Whom do you want\nto call?"); _phoneTextbox.OffsetY = (int)(Border.SCREEN_HEIGHT * Border.SCALE * Border.UNIT - Textbox.HEIGHT * Border.UNIT * Border.SCALE); _phoneOptionsBox = new OptionsBox(); _phoneOptionsBox.LoadContent(); _phoneOptionsBox.OffsetY = _phoneTextbox.OffsetY; _phoneOptionsBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 9); _phoneOptionsBox.BufferUp = 1; _phoneOptionsBox.BufferRight = 1; _deleteNumberOptionsBox = new OptionsBox(); _deleteNumberOptionsBox.LoadContent(); _deleteNumberOptionsBox.OffsetY = _phoneTextbox.OffsetY; _deleteNumberOptionsBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 14); // TODO: get correct location from world _mapScreen = new TownMapScreen(null, "kanto", "Pallet Town"); _mapScreen.LoadContent(); _phonebook = Phonebook.Load(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _textbox = new Textbox(); _textbox.LoadContent(); _textbox.Show("Would you like to\nsave the game?"); _textbox.Finished += TextboxFinished; _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.OptionSelected += SelectedQuestion; var unit = (int)(Border.UNIT * Border.SCALE); _optionsBox.OffsetY = unit * 12; _textbox.OffsetY = unit * 12; }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _oak = Controller.Content.LoadDirect <Texture2D>("Textures/UI/NewGame/oak.png"); _player = Controller.Content.LoadDirect <Texture2D>("Textures/UI/NewGame/player.png"); _namingIcon = Controller.Content.LoadDirect <Texture2D>("Textures/UI/NewGame/namingIcon.png"); _random = new Random(); _previewPokemon = Pokemon.Get(POKEMON_PREVIEW_IDS[_random.Next(0, POKEMON_PREVIEW_IDS.Length)], 1); _textbox = new Textbox(); _textbox.LoadContent(); _textbox.OffsetY = GameController.RENDER_HEIGHT / 2 - (int)(Border.SCALE * Border.UNIT * Border.SCREEN_HEIGHT) / 2 + (int)(12 * Border.UNIT * Border.SCALE); _nameSelection = new OptionsBox(); _nameSelection.LoadContent(); _nameSelection.BufferUp = 1; _nameSelection.CanCancel = false; }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _arrow = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/arrow2.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _textbox = new Textbox(); _textbox.LoadContent(); _textbox.OffsetY = (int)(Border.SCREEN_HEIGHT * Border.SCALE * Border.UNIT - Textbox.HEIGHT * Border.UNIT * Border.SCALE); _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.BufferUp = 1; _confirmationBox = new OptionsBox(); _confirmationBox.LoadContent(); _confirmationBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 14); _confirmationBox.OffsetY = _textbox.OffsetY; SetMails(); }
internal override void LoadContent() { _batch = new SpriteBatch(Controller.GraphicsDevice); _arrow = Controller.Content.LoadDirect <Texture2D>("Textures/UI/Computer/arrow2.png"); _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _textbox = new Textbox(); _textbox.LoadContent(); _textbox.OffsetY = (int)(Border.SCREEN_HEIGHT * Border.SCALE * Border.UNIT - Textbox.HEIGHT * Border.UNIT * Border.SCALE); _optionsBox = new OptionsBox(); _optionsBox.LoadContent(); _optionsBox.OffsetY = _textbox.OffsetY; _optionsBox.OffsetX += (int)(Border.SCALE * Border.UNIT * 14); _amountSelector = new AmountSelector(); _amountSelector.LoadContent(); _amountSelector.OffsetY = _textbox.OffsetY - (int)(Border.SCALE * Border.UNIT * AmountSelector.HEIGHT); SetItems(); }
public void LoadContent() { _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); _texture = Controller.Content.LoadDirect <Texture2D>("Textures/UI/World/locationSign.png"); }
public void LoadContent() { _fontRenderer = new PokemonFontRenderer(); _fontRenderer.LoadContent(); }