Hi ArenMook,
I am creating a slider in my GUI that measures %PCT completion for skill levels (just a bit of background). I want to add a feature that displays the XP values in a label on top of this slider during mouseover. I'm using NData so binding this visibility was easy with a Slider component. I used the OnHover NGUI function with NData to turn a visibility binding on and off.
This works perfectly except the slider value can still be manipulated by mouse.
I tried replacing the Slider components with a Progress Bar widget. This works fine to lock the slider value from mouse control, but it no longer recieves OnHover events. As far as I can tell, the Slider becomes a Progress Bar when you delete the box collider component (and vice versa). So when I went to attach a new box collider to the Progress Bar I found that it becomes a Slider again.
I'm stuck between a rock and a hard place. Fix one problem, you get the other. Is there a clean solution for this problem? I was thinking I could create some sort of zombie such as a transparent Slider that does event recieving over top of my perfectly good progress bar. If I do want to make a Frankenstein, which NGUI components are compatible with OnHover that would be simplest? I tried it on the UILabel itself but NGUI kept inactivating the collider.
Thanks,
Jay