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) { base.LoadContent(contentLoader); CreatePages(contentLoader.LoadFont("PokemonFont")); messageArrow.LoadContent(contentLoader); }
public IUIFont LoadFont(string font) { return(parent.LoadFont(Combine(ContextPath, font))); }