コード例 #1
0
 public IUITexture LoadTexture(string texture)
 {
     if (texture == null)
     {
         return(parent.LoadTexture(null));
     }
     return(parent.LoadTexture(Combine(ContextPath, texture)));
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #8
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture(pokemonBattleSpriteDate.TextureName);
 }
コード例 #9
0
 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");
 }
コード例 #12
0
 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");
 }
コード例 #16
0
 public void LoadContent(IContentLoader contentLoader)
 {
     texture = contentLoader.LoadTexture("Battle/Gui/HealthBar");
 }
コード例 #17
0
 public void LoadContent(IContentLoader contentLoader)
 {
     arrowTexture = contentLoader.LoadTexture("Windows/message_arrow");
 }