Пример #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;
 }
Пример #4
0
 private void LoadPokemonBallTextures(IContentLoader contentLoader)
 {
     foreach (var pokemonState in states)
     {
         PokemonBallTextures.Add(
             contentLoader.LoadTexture(
                 $"Battle/gui/StatusPokemonBall{Enum.GetName(typeof (PokemonStates), pokemonState)}"));
     }
 }
Пример #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);
                    }
                }
            }
        }
Пример #6
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture(TextureName);
 }
Пример #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");
 }
Пример #10
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture(spriteData.TextureName);
 }
Пример #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");
 }
Пример #13
0
 public void LoadContent(IContentLoader contentLoader)
 {
     pokeballTexture    = contentLoader.LoadTexture(pokeBallData.TextureName);
     this.contentLoader = contentLoader;
 }
Пример #14
0
 public virtual void LoadContent(IContentLoader contentLoader)
 {
     Texture = contentLoader.LoadTexture("Windows/windowframe");
 }
Пример #15
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture("pi_test");
 }
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture("Battle/Gui/HealthBar");
 }
Пример #17
0
 public void LoadContent(IContentLoader contentLoader)
 {
     arrowTexture = contentLoader.LoadTexture("Windows/message_arrow");
 }