示例#1
0
        public void Set(Name name, Image image, float x, float y, float width, float height, Azul.Color color)
        {
            Set(name, image, x, y, width, height);

            // Configure Azul Sprite
            this.pAzulSprite.SwapColor(color);
        }
示例#2
0
 public void SwapColor(Azul.Color color)
 {
     pAzulSprite.SwapColor(color);
 }
        public static Sprite add(Sprite.SpriteName spriteName, Image.ImageName spriteImageName, float x, float y, float width, float height, Azul.Color azulColor)
        {
            SpriteManager spriteMInstance = SpriteManager.getSingletonInstance();

            Debug.Assert(spriteMInstance != null);

            Sprite nodeAdded = (Sprite)spriteMInstance.genericAdd();

            Debug.Assert(nodeAdded != null);
            //set the attributes of the Image node
            Image image = ImageManager.find(spriteImageName);

            Debug.Assert(image != null);

            nodeAdded.setAll(spriteName, image, x, y, width, height, azulColor);

            return(nodeAdded);
        }