Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 4
0
 private void LoadPokemonBallTextures(IContentLoader contentLoader)
 {
     foreach (var pokemonState in states)
     {
         PokemonBallTextures.Add(
             contentLoader.LoadTexture(
                 $"Battle/gui/StatusPokemonBall{Enum.GetName(typeof (PokemonStates), pokemonState)}"));
     }
 }
Ejemplo n.º 5
0
        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);
                    }
                }
            }
        }
Ejemplo n.º 6
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture(TextureName);
 }
Ejemplo n.º 7
0
 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");
 }
Ejemplo n.º 10
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture(spriteData.TextureName);
 }
Ejemplo n.º 11
0
 public void LoadContent(IContentLoader contentLoader)
 {
     backgroundTexture = contentLoader.LoadTexture("ScreenEffects/white_block");
 }
 public void LoadContent(IContentLoader contentLoader)
 {
     effectTecture = contentLoader.LoadTexture("Battle/Pokeballs/pokeball_open_effect");
 }
Ejemplo n.º 13
0
 public void LoadContent(IContentLoader contentLoader)
 {
     pokeballTexture    = contentLoader.LoadTexture(pokeBallData.TextureName);
     this.contentLoader = contentLoader;
 }
Ejemplo n.º 14
0
 public virtual void LoadContent(IContentLoader contentLoader)
 {
     Texture = contentLoader.LoadTexture("Windows/windowframe");
 }
Ejemplo n.º 15
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture("pi_test");
 }
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture("Battle/Gui/HealthBar");
 }
Ejemplo n.º 17
0
 public void LoadContent(IContentLoader contentLoader)
 {
     arrowTexture = contentLoader.LoadTexture("Windows/message_arrow");
 }