How to make rotating menu selections

opie2k1opie2k1 Member, PRO Posts: 36
I am looking to do something similar to the UI on the iPhone when you set the time for an appointment. You have a spinning "wheel" of choices with the center highlighted and the user swipes up or down to move the "wheel" till their choice is in the highlight. Has anyone done this? Is there a tutorial or template out there I can see/buy? I don't think it'd be all that hard, but I also don't want to reinvent the wheel. :)

thanks,
Shawn

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    This might be of interest...

    http://www.deepblueapps.com/rotating-menu-template/

    Darren.
  • SocksSocks London, UK.Member Posts: 12,822
    @DeepBlueApps.com

    I think he means more like this:

    image

    Shouldn't be too hard, a bit of 'sin' and some vertical scaling.
  • opie2k1opie2k1 Member, PRO Posts: 36
    Yup, that's exactly what I mean. thanks for the visual Socks. I'm good with vertical or horizontally oriented.
  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2013
    @opie2k1

    Just noticed that Apple don't scale their type as if on a cylinder (see image below - all type is the same height), which makes life much more easy . . . .so with that in mind I will give this a quick go:


    image
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    If @socks is giving this ago, your can bet your bottom dollar his solution will be AAA*sin( self.Time *BBB)+CCC

    Anything else and he's stolen the code
  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2013
    @opie2k1

    Here's a quick rough idea, you'd need to decide how you want the selections to lock to the centre (up/down buttons?) as well as playing around with the images to get a more convincing 'barrel' effect + a nice clicking sound wouldn't go amiss, but this should give you a basic idea to start from.

    (Also, for this kind of quick and easy set up to work you would have to have this scroll wheel as the bottom layer of a menu - as it has a couple of 'blanking panels' hiding the text list - hope that makes sense.)

    http://www.mediafire.com/?g6atp2l8yr6t7qe
  • SocksSocks London, UK.Member Posts: 12,822
    If @socks is giving this ago, your can bet your bottom dollar his solution will be AAA*sin( self.Time *BBB)+CCC

    Anything else and he's stolen the code
    I don't know what you mean, all my demos use high quality ingredients sourced from reputable growers, my tomatoes are from Italy, my horse meat is from the UK and all my attributes are organic.

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    @socks Organic smanic! I've got video evidence of you using pesticides on your attributes!

    Took a look at the demo, bit of a problem in your otherwise rule .. Its all focused to the X velocity and not the Y ;)

    I guess if you wanted to take this one step further, you could combine your masking techniques with a vertical coverflow, no growth on the individual slats but you could then combine a snap to middle function to always straighten out the scroll upon its slow down.
  • SocksSocks London, UK.Member Posts: 12,822
    @socks Organic smanic! I've got video evidence of you using pesticides on your attributes!
    Nothing more than a light dusting of Methionylthreonylthreonylglutamin (+ some lead and this dark brown stuff I get from the petrol/gas station).
    Took a look at the demo, bit of a problem in your otherwise rule .. Its all focused to the X velocity and not the Y ;)
    Damn ! I told you I threw it together, yeah, you'd need to sort that out, in fact I don't even know what that's for, that part of the code was stolen from someone else (I forget, probably someone clever, it's not [AAA*sin( self.Time *BBB)+CCC] after all).
    I guess if you wanted to take this one step further, you could combine your masking techniques with a vertical coverflow, no growth on the individual slats but you could then combine a snap to middle function to always straighten out the scroll upon its slow down.
    Yep, perfect ! I'll let someone else do all the actual hard work.

    ;)
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Your posts never fail to put a smile upon my face :)
  • SocksSocks London, UK.Member Posts: 12,822
    Your posts never fail to put a smile upon my face :)
    During my time as a postman, that's what my 8th wife (big "babs" Barbara) used to say, lovely woman but very violent / unpredictable.
Sign In or Register to comment.