Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: SpaceCadet on May 22, 2012, 07:37:08 AM

Title: UIButton - change sprite on hover?
Post by: SpaceCadet on May 22, 2012, 07:37:08 AM
Hi there,

I've been using EZGUI for our project so far, though am considering converting it over to NGUI. I had a quick look at the first two tutorial videos, and my first question is: it seems that although there is a wide range of options for changing button color and dimensions on mouse hover/select, the paradigm is not the same as in EZGUI, where the hover state means showing a different sprite entirely? Please can  you confirm whether it's possible to do with with NGUI out-of-the-box? Thanks!
Title: Re: UIButton - change sprite on hover?
Post by: Dedede on May 22, 2012, 08:33:31 AM
You can simply use an NGUI image button widget, there you can assign a sprite for each state (normal, hover and pressed).
Title: Re: UIButton - change sprite on hover?
Post by: SpaceCadet on May 22, 2012, 08:45:24 AM
Ahh, I missed that! Thanks, Dedede. :)