What i would like is to show my health (and targets health) as Number | percent, instead of the default truncated number/truncated max | percent
Then on the ToT frame I just want %.
Every time I try to edit the text, it makes all text in the frame disappear.
Please help, and thanks in advance :)
Is it also possible to color the border based on class?
So Druid target would have orange border, warrior brown ect? (I didn't see the option for border colors, only textures) (I'm trying to do this in kgpanel, but can't get the target script to work :( )
OK i have the following code working for player, how do i set it to work on my target and ToT frames?
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PLAYER_LOGIN")
local _, class = UnitClass("player");
if class == "WARRIOR" then
self.bg:SetVertexColor(0.95, 0.23, 0.23, 0.00)
elseif class == "PRIEST" then
self.bg:SetVertexColor(1, 0.96, 0.98, 0.00)
elseif class == "MAGE" then
self.bg:SetVertexColor(0.00, 1, 1, 0.00)
elseif class == "DRUID" then
self.bg:SetVertexColor(1, 0.49, 0.04, 0.00)
elseif class == "PALADIN" then
self.bg:SetVertexColor(0.92, 0.22, 0.46, 0.00)
elseif class == "HUNTER" then
self.bg:SetVertexColor(0.33, 0.86, 0.00, 0.00)
elseif class == "ROGUE" then
self.bg:SetVertexColor(1, 0.94, 0.16, 0.00)
elseif class == "SHAMAN" then
self.bg:SetVertexColor(0.13, 0.42, 1, 0.00)
elseif class == "WARLOCK" then
self.bg:SetVertexColor(0.36, 0.18, 1, 0.00)
elseif class == "Death Knight" then
self.bg:SetVertexColor(0.77, 0.12, 0.23, 0.00)
end
I've tried various things on onload and onevent sections, with no luck. :(
Any assistance would be great.
I'm just trying to get the scripts to work, i'm returning from a 1.5 year break from WoW, and haven't messed with pitbull4 enough yet, so i'm currently using aguf. :)
Again, i'm just trying to get the scripts to work, when i get pitbull set up i'll get the parents and all that set up properly. :)
0
0
0
return "%s%%",Percent(cur,max)
for my ToT frame?
Also if i don't want it short, is "long" an option?
0
What i would like is to show my health (and targets health) as Number | percent, instead of the default truncated number/truncated max | percent
Then on the ToT frame I just want %.
Every time I try to edit the text, it makes all text in the frame disappear.
Please help, and thanks in advance :)
Is it also possible to color the border based on class?
So Druid target would have orange border, warrior brown ect? (I didn't see the option for border colors, only textures) (I'm trying to do this in kgpanel, but can't get the target script to work :( )
0
I've tried various things on onload and onevent sections, with no luck. :(
Any assistance would be great.
I'm just trying to get the scripts to work, i'm returning from a 1.5 year break from WoW, and haven't messed with pitbull4 enough yet, so i'm currently using aguf. :)
Again, i'm just trying to get the scripts to work, when i get pitbull set up i'll get the parents and all that set up properly. :)
Thanks in advance!