Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: derkoi on May 30, 2012, 03:00:39 PM

Title: Alternating a button image on press?
Post by: derkoi on May 30, 2012, 03:00:39 PM
Is there a way to alternate a button image on press, so every time it gets pressed it goes from say a stripy button to a plain button then back to a stripy button if its pressed again and so on?

Thanks
Title: Re: Alternating a button image on press?
Post by: ArenMook on May 30, 2012, 03:54:58 PM
Just create a script has has an OnClick() and swaps the sprite there.
Title: Re: Alternating a button image on press?
Post by: derkoi on June 01, 2012, 03:33:03 AM
I actually ended up using the UICheckbox. Just removed the fade between images. Works perfectly.  :)

I must say I'm really enjoying working with NGUI, I'm having to convert an existing UI made with Prime31s UIToolkit because for some reason UIToolkit doesn't display on the Motorola Droid Bionic.  ???