Skip to content

Instantly share code, notes, and snippets.

@joshtynjala
Created January 20, 2016 21:40
Show Gist options
  • Save joshtynjala/998f1068749004bd15ed to your computer and use it in GitHub Desktop.
Save joshtynjala/998f1068749004bd15ed to your computer and use it in GitHub Desktop.
An example of skinning a button's states in Feathers 3.0
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