Created
January 20, 2016 21:40
-
-
Save joshtynjala/998f1068749004bd15ed to your computer and use it in GitHub Desktop.
An example of skinning a button's states in Feathers 3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var skin:ImageSkin = new ImageSkin(upTexture); | |
skin.setTextureForState(ButtonState.DOWN, downTexture); | |
skin.setTextureForState(ButtonState.DISABLED, disabledTexture); | |
skin.scale9Grid = new Rectangle(2, 2, 1, 4); | |
button.defaultSkin = skin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment