Author Topic: Wondering if my proposed UI is possible in NGUI (Image attached)  (Read 7560 times)

hankthewhale

  • Guest
Hey all. Like my subject says, I'm looking to see if what's in my attached image is possible with NGUI.

I'm still roughing out the design but the attached image shows what I'm looking to do.

My questions are:

I presume radio buttons are possible (I'm guessing a variation of NGUI's checkbox). Is this correct?

I would like to drive the questions on the right dynamically via XML. Does NGUI support this?

The rotations are basically sliders but would require the user to follow along the path of the circle. Is this possible? If not, I would make them simple sliders. In the end, simple sliders are probably going to be better from a usability stand point, but I still want to know if my current idea is possible.

Is there an easy way to implement the background transparent blue arch? My first thought would be to make a mesh that would have a transparent shader applied to it. Thoughts on that?

Thanks!

mtoivo

  • Guest
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #1 on: October 02, 2012, 01:59:42 PM »
Quote
I presume radio buttons are possible (I'm guessing a variation of NGUI's checkbox). Is this correct?
Yes, just trap on the OnActivate -event and you can deactivate the other radio button.

Quote
I would like to drive the questions on the right dynamically via XML. Does NGUI support this?
Text-content can be dynamically modified, so yes. You have to do the XML-loading and parsing elsewhere, though. For simple XML-parsing, I used "UnityScript Lightweight XML Parser" and it worked great. Even works with #pragma strict, if you need that.

For other questions, I let someone else answer. For the transparency, I'd go with your idea, seems simple enough.

hankthewhale

  • Guest
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #2 on: October 02, 2012, 02:11:50 PM »
Great news. Thanks for your quick reply.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #3 on: October 02, 2012, 04:37:41 PM »
Radio buttons = checkboxes with radioButtonRoot set to their parent. No need to trap anything, just set that value in the inspector.

NGUI doesn't have radial slider, but it does have a filled sprite. If you have a donut-shaped sprite, you can use a filled sprite to create a radially-filled slider just by setting the fill direction to be Radial360. The trick is having it handle dragging in a radial fashion. This is something you'd have to code.

For the arch, you can either create a 3D UI and tilt your sprites individually, or just create pre-tilted sprites to begin with.

hankthewhale

  • Guest
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #4 on: October 04, 2012, 06:50:04 AM »
Yeah I was wondering about the radioButtonRoot. Figured that's what it was for. Thanks for verifying.

For what you mentioned about the radial slider, I'll look into that although I think I'm going to go with simple sliders just because radial sliders are probably annoying from a usability standpoint.

Thanks for the response.

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #5 on: March 25, 2013, 06:50:50 AM »
A radial Slider will be awesome.

Any news from Tasharen about a Radial Slider?

Thanks!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #6 on: March 25, 2013, 11:48:14 AM »
No radial slider planned as far as I know; it's relatively easy to do with a UIFilledSprite except for the touch input.

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: Wondering if my proposed UI is possible in NGUI (Image attached)
« Reply #7 on: March 27, 2013, 06:58:51 AM »
No radial slider planned as far as I know; it's relatively easy to do with a UIFilledSprite except for the touch input.

Yes, the touch input is hard to manage.

Any idea about carry it?

Thanks!