public IUITexture LoadTexture(string texture) { if (texture == null) { return(parent.LoadTexture(null)); } return(parent.LoadTexture(Combine(ContextPath, texture))); }
public void LoadContent(IContentLoader contentLoader) { barTexture = contentLoader.LoadTexture("Battle/Gui/PlayerStatusbox"); font = contentLoader.LoadFont("PokemonBattleFont"); genderTexture = pokemonBattleData.Gender == Genders.Male ? contentLoader.LoadTexture("Battle/Gui/MaleIcon") : contentLoader.LoadTexture("Battle/Gui/FemaleIcon"); HealthBar.LoadContent(contentLoader); }
public override void LoadContent(IContentLoader contentLoader) { backgroundTexture = contentLoader.LoadTexture("Battle/Backgrounds/background"); windowBattle.LoadContent(contentLoader); currentPhase.LoadContent(contentLoader, windowQueuer, battleData); this.contentLoader = contentLoader; }
private void LoadPokemonBallTextures(IContentLoader contentLoader) { foreach (var pokemonState in states) { PokemonBallTextures.Add( contentLoader.LoadTexture( $"Battle/gui/StatusPokemonBall{Enum.GetName(typeof (PokemonStates), pokemonState)}")); } }
public IEnumerable <TTile> ProduceTiles() { var texture = loader.LoadTexture(Name); foreach (var grid in Grids) { foreach (var tile in grid.Tiles) { var tileWidth = grid.TileWidth; var tileHeight = grid.TileHeight; var tileX = grid.OffsetX + tile.GridX * (tileWidth + grid.BorderX); var tileY = grid.OffsetY + tile.GridY * (tileHeight + grid.BorderY); var tileBounds = new IntRect(tileX, tileY, tileWidth, tileHeight); var anchor = new IntPoint(tile.AnchorX ?? grid.AnchorX, tile.AnchorY ?? grid.AnchorY); foreach (var r in producer.ProduceAll(tileSize, tileBounds, anchor, tile.Tags, texture)) { yield return(r); } } } }
public void LoadContent(IContentLoader contentLoader) { texture = contentLoader.LoadTexture(TextureName); }
public void LoadContent(IContentLoader contentLoader) { BarTexture = contentLoader.LoadTexture("Battle/Gui/BattleNumberOfPokemons"); LoadPokemonBallTextures(contentLoader); }
public void LoadContent(IContentLoader contentLoader) { texture = contentLoader.LoadTexture(pokemonBattleSpriteDate.TextureName); }
public override void LoadContent(IContentLoader contentLoader) { Texture = contentLoader.LoadTexture("Windows/windowBattleFrame"); }
public void LoadContent(IContentLoader contentLoader) { texture = contentLoader.LoadTexture(spriteData.TextureName); }
public void LoadContent(IContentLoader contentLoader) { backgroundTexture = contentLoader.LoadTexture("ScreenEffects/white_block"); }
public void LoadContent(IContentLoader contentLoader) { effectTecture = contentLoader.LoadTexture("Battle/Pokeballs/pokeball_open_effect"); }
public void LoadContent(IContentLoader contentLoader) { pokeballTexture = contentLoader.LoadTexture(pokeBallData.TextureName); this.contentLoader = contentLoader; }
public virtual void LoadContent(IContentLoader contentLoader) { Texture = contentLoader.LoadTexture("Windows/windowframe"); }
public void LoadContent(IContentLoader contentLoader) { texture = contentLoader.LoadTexture("pi_test"); }
public void LoadContent(IContentLoader contentLoader) { texture = contentLoader.LoadTexture("Battle/Gui/HealthBar"); }
public void LoadContent(IContentLoader contentLoader) { arrowTexture = contentLoader.LoadTexture("Windows/message_arrow"); }