Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Itchigon on February 04, 2013, 11:58:42 AM

Title: How to keep UIImageButton in 'Pressed' state
Post by: Itchigon on February 04, 2013, 11:58:42 AM
I have three states for my Image Buttons, Idle, Hover and Pressed. When the user clicks on the button I would like it to stay in the 'Pressed' state so that the particular change of colour I have for it stays there.

An example is the image below, there is a blue outline which is shown when the user clicks on the image button and I would like it to stay like this so the user can see their selection.

(http://i.imgur.com/TITl9l7.png)
Title: Re: How to keep UIImageButton in 'Pressed' state
Post by: ArenMook on February 04, 2013, 07:34:19 PM
Use the UICheckbox component (poorly named, should be UIToggle).