[FONT="Verdana"]I am curious if it is currently possible to make the health percentage animate
nice and smooth like the health bars do. Instead of having the percent jump
from 98% to 72%, have a nice smooth change where the digits count down
from 98 to 72 smoothly [faster or slower depending on how big the difference
Is this something that would need to actually be implemented inside of PB4's
core, or could this be achieved through some code that could be placed inside
of the custom field of the Lua health?[/FONT]
- Registered User
Member for 14 years, 5 months, and 21 days
Last active Sun, Oct, 30 2016 03:11:15
- 0 Followers
- 6 Total Posts
- 0 Thanks
Jan 4, 2010Hey people.Posted in: General AddOns
Had a few questions about kgPanels and some lua in general.
Question 1 --
I found above...
Quote from TomDeBaereStill one question remains. Making panels fade in and out when they appear... how?
Question 2 --
Is it possible to have a panel hidden until you mouse over it making it fade in?
Question 3 --
I have multiple profiles in Grid that I like to switch between via the /slash commands. Would it be possible to make a button using kgPanels to cycle through these profiles [left mouse button moving forward in the list / right mouse button moving backward in the list]?
If the answer to question 3 is 'no' then would it be possible to achieve this using a custom .lua file?
Thank you in advance.
Dec 23, 2009Posted in: Unit Frames
I do have another question. My UI is using 'darker' greens, yellows, and reds. By default...
local cur, max = HP(unit), MaxHP(unit) local r, g, b = HPColor(cur, max) return " |cff%02x%02x%02x%s|r", r, g, b, cur
...gives bright colors. I am fairly new at this and was not quite understanding the %02x place holder. Wondering where I would insert any custom hex RGB codes? Thank you again. :)
return " |cff%02x%02x%02x%s|r", r/2, g/2, b/2, cur
The /2 halving the current RGB colors.
Dec 22, 2009Posted in: Unit Frames
Thank you. I did in fact see that last night but I wasn't sure if I should just paste the code in there like that. :)
Dec 22, 2009Hey people. Is it possible to have the unit's health colored by percentages?Posted in: Unit Frames
100% = Green
50% = Yellow
0% = Red
And if I can do that. Will it fade smoothly from Green -> Yellow -> Red, or will it make sharp jumps from color to color?
Thanks in advance!
- To post a comment, please login or register a new account.