Author Topic: UIButton - change sprite on hover?  (Read 8411 times)

SpaceCadet

  • Guest
UIButton - change sprite on hover?
« 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!

Dedede

  • Guest
Re: UIButton - change sprite on hover?
« Reply #1 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).

SpaceCadet

  • Guest
Re: UIButton - change sprite on hover?
« Reply #2 on: May 22, 2012, 08:45:24 AM »
Ahh, I missed that! Thanks, Dedede. :)