Welcome,
Guest
. Please
login
or
register
.
September 24, 2023, 09:40:39 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Filled CountDown with point?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Filled CountDown with point? (Read 1494 times)
longbottomup
Newbie
Thank You
-Given: 2
-Receive: 0
Posts: 3
Filled CountDown with point?
«
on:
December 23, 2014, 10:43:27 PM »
Hi Aren, hope you well,
I have a question. Can you tell me how to make a effect countdown like this:
My circle countdown working as well, but i want to attach point like that(texture2D) on runtime. Thank you.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: Filled CountDown with point?
«
Reply #1 on:
December 24, 2014, 12:39:10 PM »
Attaching the point is tricky. I don't think you can get an "auto-placement" like thumb on the slider; you likely have to calculate it yourself. Luckily, you know the values so it should be a trivial calculation.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Filled CountDown with point?
«
Reply #2 on:
December 27, 2014, 09:23:50 AM »
Yup, as Nicki pointed out, knowing the center, the radius, and the angle (360 * slider.value), you can easily calculate where the point should be located using basic math.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Filled CountDown with point?