Lord Doljonijiarnimorinar
Join Date: Jan 2003
Server: Povar
Posts: 1,050
|
Color changing gauges
actually the color changinging gauges are just 4 or 5 different gauges laid over the top of each other(hence the different size and locations). So each progressive bar changes in size. each has the same start point for the countdown bar the only thing that changes is the fill. so for instance lets say you are going to use red yellow orange green.
the first would be red1 used to indicate 20% to dead so it starts out at 10 6 and goes for 20% or 2000
red 2 would be the fill and would go from 30 6 and go for 80 or 8000
next would be yellow1 to cover 20 % to 40% it would start at 10 6 and go for 40 or 4000
yellow2 would start at 50 6 and go for 60 or 6000
so on ...the reason for the multiplication is so that when you hit the next threshold the bar dissappears revealing the bar under it for the continous countdown.
I am not the one who discovered or wrote this but learned it from the person that did and use it in my uis. feel free to open my group gauge and look at the code there.
It was much simpler prior to them changing the code to require containers but still able to complete .
Hal
|