PitBull Unit Frames 4.0
PitBull Unit Frames 4.0
Woof. Arf. Yip.
Getting Started:
You can help translate PitBull for your language with the localization tool.
Classic
PitBull works with WoW Classic! Classic Era/Vanilla is supported in
v4.3.x-vanilla
releases. Cataclysm Classic is supported in v4.2.x
releases
(the same releases retail use).
Classic Era caveats:
- Aura duration is not available from the API, so PitBull uses LibClassicDurations to show them. The duration can be inaccurate if it's affected by rank or talents.
- Cast info is only available for your spells from the API. PitBull uses LibClassicCasterino to show cast bars for other units, but this can be inaccurate since there is a lot of guess-work involved.
Download
CurseForge: https://www.curseforge.com/wow/addons/pitbull-unit-frames-4-0
Wago: https://addons.wago.io/addons/pitbull4
WoWInterface: https://www.wowinterface.com/downloads/info20021
Thanks allot.
Till now I have to agree with nuKayos saying that you did an amazing job on this add-on. Works great, isn't too hard to get the hang of and lets us control nearly every aspect of unitframes.
@jtburke, not entirely sure what you're asking but if you're asking if you can create say multiple target frames, not yet. I hit a snag and things have been delayed a bit. Plus I've been busy with some other things lately. Sorry.
@Loom927, I just checked the code it works fine here. I believe you have a typo in your copy. Note that the case matters.
local dr,dg,db = DifficultyColor(unit)
local form = DruidForm(unit)
local classification = Classification(unit)
local race = SmartRace(unit)
if UnitIsPlayer(unit) or (not UnitIsFriend(unit,"player") and not IsPet(unit)) then
local cr,cg,cb = ClassColor(unit)
if form then
return "%s%s|cff%02x%02x%02x%s|r %s%s|cff%02x%02x%02x%s|r (%s)",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),race or '',race and ' ',cr,cg,cb,Class(unit),form
else
return "%s%s|cff%02x%02x%02x%s|r %s%s|cff%02x%02x%02x%s|r",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),race or '',race and ' ',cr,cg,cb,Class(unit) end
else
if form then
return "%s%s|cff%02x%02x%02x%s|r (%s) %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),form,race or ''
else
return "%s%s|cff%02x%02x%02x%s|r %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),race or ''
end
end
thanks for the reply Shefki, worked a treat. now i love pitbull4, lol
Its driving me nuts, my target has no texts and each time i swap targets the screen Jolts and freezes for 1 second still with no text.
So it'll look like so:
local r,g,b = ClassColor(unit)
return '|cff%02x%02x%02x%s|r',r,g,b,Name(unit)
http://www.wowace.com/addons/pitbull4/tickets/406-right-aligned-text-strings-to-not-truncate/
Ultimately, this issue has to do with the limitations of the wow anchoring system and how we're using it. Fixing it would likely negatively impact far more people than leaving this quirk in.
Is there a way to remove the AFK timer that appears next to a players name? The code is currently set for Class coloured names: "local r,g,b = ClassColor(unit)
return '|cff%02x%02x%02x%s|r %s%s%s',r,g,b,Name(unit),Angle(AFK(unit) or DND(unit))"
I tried removing the (unit)'s behind both AFK and DND but I get an error. Tried removing the whole AFK and DND also don;t work.
Any sugestions?
Thanks.
string.sub(string, 1, n)
Where string is the text you want to clip, 1 is the first character you want, and n is the last character you want.
So say you wanted to shorten a name to 10 characters you could do:
string.sub(Name(unit),1,10)
For now, you probably want to configure the debuffs to be on one half of the side of the frame and the buffs to be on the other. So you might put the debuffs on the top left and the buffs on the top right and then set their width to be half of the width of the frame (or slightly less if you want to leave a gap).