Author Topic: UIPopUpList - change control method?  (Read 4225 times)

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
UIPopUpList - change control method?
« 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

« Last Edit: June 30, 2012, 08:21:11 AM by Gregzo »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPopUpList - change control method?
« Reply #1 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.

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Re: UIPopUpList - change control method?
« Reply #2 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!