Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Gregzo on June 30, 2012, 08:01:12 AM

Title: UIPopUpList - change control method?
Post by: Gregzo on June 30, 2012, 08:01:12 AM
Hi!

I'd like to adapt the pop up list widget for touch devices, ie: popup OnPress(true), highlight OnDrag, and select item OnPress(false). Tried a few things, no luck (methods aren't exposed). I've never given C# a go, so am a little shy of adapting the script myself...

Anyway, a little boolean property to propose both control methods would be a great addition!

Many thanks,

G

Title: Re: UIPopUpList - change control method?
Post by: ArenMook on June 30, 2012, 11:39:48 AM
You don't call them directly, you use SendMessage to reach them. That's what UICamera does as well.
Title: Re: UIPopUpList - change control method?
Post by: Gregzo on June 30, 2012, 01:32:51 PM
Thanks, works fine but adds another layer of(less elegant) code on top of yours. I'm sure many users would appreciate an option in the UIPopUpList script : controlMethod - click or drag would be very handy!