Author Topic: How to make Progress Bar with round tip (foreground)  (Read 3043 times)

SpiritOpportunity

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
How to make Progress Bar with round tip (foreground)
« on: May 11, 2015, 03:19:24 AM »
I want to make a progress bar like this one (image attached)
I really searched a lot but.. I just couldn't find the way

I think it's not possible with NGUI.
Maybe a way to do it some other way? Or is there a way to do it with NGUI ?

Razhagal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 14
    • View Profile
Re: How to make Progress Bar with round tip (foreground)
« Reply #1 on: May 11, 2015, 05:25:41 AM »
Your image need to be with rounded corner as well.

SpiritOpportunity

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: How to make Progress Bar with round tip (foreground)
« Reply #2 on: May 11, 2015, 09:12:26 PM »
Your image need to be with rounded corner as well.

In that way, I have to set the UISprite type to simple, and this causes the bar to strech when value changes.
So the rounded corner shape changes, and it looks weird this way

Razhagal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 14
    • View Profile
Re: How to make Progress Bar with round tip (foreground)
« Reply #3 on: May 12, 2015, 03:13:04 AM »
You can use it as sliced and just slice it little before the round corners on the sides. That way only the middle part will stretch. The only real problem is the stripes that are going to be stretched. You can test different variants with sprite length to see how it looks like. In our game we have very similar progress bars and it's barely noticeable. Try with sprite length half the progress background.

SpiritOpportunity

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: How to make Progress Bar with round tip (foreground)
« Reply #4 on: May 12, 2015, 07:19:31 PM »
You can use it as sliced and just slice it little before the round corners on the sides.

How can you slice like that?


EDIT: I think I found it, UISprite -> Sprite -> Edit -> Border
Give value to border left and right? Think it works
Thanks :) @Razhagal
« Last Edit: May 12, 2015, 08:13:20 PM by SpiritOpportunity »

Razhagal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 14
    • View Profile
Re: How to make Progress Bar with round tip (foreground)
« Reply #5 on: May 13, 2015, 09:11:57 AM »
UISprite -> Sprite -> Edit -> Border
Give value to border left and right? Think it works
Yea, that's it. You can do a lot of nice stuff with slicing - mostly reducing your textures size a lot.