Beispiel #1
0
        public void AddHairTexture(string textpath)
        {
            var texture = ContentExt.LoadTexture2D(textpath);

            foreach (var item in _animation)
            {
                item.Value.Hair = texture;
            }
        }
 public static void Initialize(GraphicsDeviceManager graphiceDeviceManager,
                               ContentManager content, SpriteBatch spriteBatch)
 {
     ContentExt.Initailize(content);
     GraphicsExt.Initailize(graphiceDeviceManager, spriteBatch);
 }
Beispiel #3
0
 public Sprite(string texturePath) : this(ContentExt.LoadTexture2D(texturePath))
 {
 }
 public void AddSkin(string skinName)
 {
     _skinTexture.Add(skinName, ContentExt.LoadTexture2D("UI\\Skin\\" + skinName));
 }