Author Topic: Pickers - anyone interested?  (Read 4283 times)

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Pickers - anyone interested?
« on: January 29, 2013, 03:44:34 PM »
Hi to all,

I've just made a few pickers for NGUI after seeing that no usable NGUI picker existed in the Asset Store. If there's enough interest, I'd polish and sell them for a very decent price.
They're modelled after iOS pickers - swipe to pick, next and previous element visible.

What I have :
1)Text picker : pass it a string[], swipe to pick. Access textPicker.selectedIndex to access the user selected index in the array you passed, or textPicker.selectedString to directly access the string.
2)Date picker - pass it a System.DateTime, swipe to pick. Example : datePicker.Init(System.DateTime.Now) will set the picker to the current date. Access datePicker.selectedDate to get the user selected date as a DateTime object.
3)Number picker : pass it a min number, a max number and a step value. Example : picker with even numbers from 26 to 88 : numberPicker.Init(26,88,2);

For the moment, the pickers use 5 UILabels which are recycled for best performance (no Instantiate). 3 of the 5 labels are always visible, and the picker is "infinite" (loops).

Features I could add, do give feedback if you're interested!
A)Choose how many items you want visible at once.
B)Sprite picker (pass it an array of UISprite or UIScaledSprite)
C)Sprite+String picker (useful if you need an icon and some text in the picker)
D)Horizontal pickers (rarely used afaik)

Cheers,

Gregzo


tektor

  • Guest
Re: Pickers - anyone interested?
« Reply #1 on: February 27, 2013, 12:21:19 AM »
Hi Gregzo, we have an immediate need for an NGUI-based date picker, and not quite enough time to implement it.

If you get this message soon, would you please contact me at your earliest opportunity? - terrance .at. ogmento .dot. com

We would like to purchase what you have, if it's in decent condition, for a decent price.

Thanks for your offer!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Pickers - anyone interested?
« Reply #2 on: February 27, 2013, 09:59:19 AM »
I'd be interested in seeing a web player build of these in action.

Trithilon

  • Guest
Re: Pickers - anyone interested?
« Reply #3 on: April 10, 2013, 06:19:45 AM »
I would love to buy a copy if you put it up on the Asset store!
Can you please show a Webplayer demo?

Also please try to incorporate the horizontal picker and dynamic scroll view size option.

Cheers!

hrlarsen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 35
    • View Profile
Re: Pickers - anyone interested?
« Reply #4 on: June 18, 2013, 08:42:05 AM »
Is anything happening on creating this picker? :)

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Pickers - anyone interested?
« Reply #5 on: June 27, 2013, 01:55:05 AM »
Bump! Anything happening with this?

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Re: Pickers - anyone interested?
« Reply #6 on: June 30, 2013, 02:43:57 PM »
Hi,

Sorry for the late reply, busy year and no interest for the full first month after my initial post...

I had time in february, now very little of the precious intangible is left until mid August.

Anyway, here's a build of the date picker, don't expect anything nice graphically!

Demonstrates recycling 5 labels whilst displaying 3, as well as displaying 5 wilst recycling 7.

Very much WIP, needs an option to tween to center label instead of snapping, as well as some Clamps to avoid problems when swipes are too fast.

It's probably pretty useless to show something that I can't polish before 90 days from now, but anyway, here it is...

Cheers,

Gregzo

[EDIT] silly me, doing things too quickly, linked to a .app... One mourning to give it a bit of work, will post later.

Apoligies to those of you who downloaded.

G

« Last Edit: July 02, 2013, 02:38:58 AM by Gregzo »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Pickers - anyone interested?
« Reply #7 on: June 30, 2013, 05:02:46 PM »
I have to make something similar for a new game after summer holiday, so I'll take a good hard look at your WIP stuff. :D