Author Topic: Split radial guages  (Read 4582 times)

Teonnyn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Split radial guages
« on: July 20, 2013, 01:30:36 PM »
I'd like to borrow the gauge effect from Snoopy Flying Ace (or maybe Torchlight 2), but I'm not sure if it's possible to do it.
Can NGUI display half-gauges like this?

« Last Edit: July 20, 2013, 07:03:41 PM by Teonnyn »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Split radial guages
« Reply #1 on: July 20, 2013, 03:12:48 PM »
Your image doesn't work. Don't use shitty hosting services that don't allow external image embedding. You can attach images here for a reason. :P

Teonnyn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Split radial guages
« Reply #2 on: July 20, 2013, 07:03:29 PM »
Whoops! Fixed the original post with an attachment. Strangely it worked for me but failed for everyone else.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Split radial guages
« Reply #3 on: July 21, 2013, 04:41:41 AM »
What gauge effect is it? Hard to tell what you're referring to from that picture.

Teonnyn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Split radial guages
« Reply #4 on: July 21, 2013, 05:00:39 AM »
On the right side where the map is displayed, you can see a standard health/energy gauge. It's split down the middle and organized so it doesn't take up so much room. Would the Radial 360 work on a half-circle like that, or would I need another effect to pull that off? On a semi-related note, can I apply the NGUI Animation effect to a health bar/gauge?

Teonnyn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Split radial guages
« Reply #5 on: July 21, 2013, 09:36:12 AM »
Slight bump, but got it working! Played around with everything and experimented. Built a completely custom widget using Radial 180, and added animation. Did notice an animation side effect. It forces the image to it's original sizes (unless you script for scaled animation?), however it works out in the end. I'm building this for a combination web, mobile, and eventual console down the line.