2D Toolkit Forum

2D Toolkit => Support => Topic started by: k3ch0ng on November 27, 2012, 02:52:28 pm

Title: Button toggle
Post by: k3ch0ng on November 27, 2012, 02:52:28 pm
Is there like an easy way to do this ? Just want to make the button look like its been pressed.
Title: Re: Button toggle
Post by: unikronsoftware on November 27, 2012, 06:20:45 pm
It doesn't support it out of the box, but you can change it quite easily if you'd like to.

Make a copy of the tk2dbuton script, and were the ButtonPressedEvent() is called...
swap buttonUpSpriteId & buttonDownSpriteId, also flip an internal toggled state.
That is more or less it.