Nez.Portable/UI/Skin.cs
/// <summary>
/// Adds all named subtextures from the atlas
/// </summary>
/// <param name="atlas">Atlas.</param>
Adds all named subtextures from the atlas
Adds all named subtextures from the atlas
public void addSubtextures(TextureAtlas atlas)
        {
            for (int i = 0, n = atlas.subtextures.Length; i < n; i++)
            {
                var subtexture = atlas.subtextures[i];
                if (subtexture is NinePatchSubtexture)
                    add<NinePatchSubtexture>(atlas.regionNames[i], subtexture as NinePatchSubtexture);
                else
                    add<Subtexture>(atlas.regionNames[i], subtexture);
            }
        }
public void addSubtextures ( TextureAtlas atlas ) { for ( int i = 0 , n = atlas . subtextures . Length ; i < n ; i ++ ) { var subtexture = atlas . subtextures [ i ] ; if ( subtexture is NinePatchSubtexture ) add < NinePatchSubtexture > ( atlas . regionNames [ i ] , subtexture as NinePatchSubtexture ) ; else add < Subtexture > ( atlas . regionNames [ i ] , subtexture ) ; } }
Adds all named subtextures from the atlas
Adds all named subtextures from the atlas
atlas
TextureAtlas
None