Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: newnixon on May 02, 2012, 12:21:14 PM
-
I have 8 buttons on a panel. I would like it if when you click on the button that it would stay in the hover state until another button is selected. So that the user will know which button is active. I think you can do this with groups for check boxes but I am not sure how to do it with buttons. Can anyone tell me how?
-
Set up your buttons, then get rid of the UIButton or UIButtonColor script on them, and add a UICheckbox instead. Duplicate the button's background (bring its depth forward), bring the label forward more, and change the duplicate background's color to whatever you want it to be when it's highlighted. Now on the checkbox script, specify the checkmark to be this duplicate background you created. Last but not least, set the radioButtonRoot on UICheckbox to be the parent object that all your buttons are parented to.
-
Thanks!! I will try it.