I'm getting an alignment issue on the code below. When there are no DoTs on my target it displays letters in my cast bar like so:
------------------------------------------------------
| HaU UA CoA COR SL SE Fear | Cast Bar
------------------------------------------------------
However when the DoTs are up, they change to icons (thanks to this thread for help on icons). But I'm getting the annoying alignment issue where icons are slightly raised higher than text like:
------------------------------------------------------
| Icon |
|(1) UA CoA COR SL SE Fear | Cast Bar
------------------------------------------------------
Initially I thought it was an issue with icons and txt in general, but in my code below if I take out the line checking for player = "Warlock", the alignment is perfect, I tinkered around but can't see my fopar in my if line checking for warlock.
[(if (Class(unit="player") = "Warlock") then (IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then (if HasAura("Haunt") then
Icon("Interface/Icons/Ability_Warlock_Haunt", size=20)
else
" HaU":Red
end) (if HasAura("Unstable Affliction") then
Icon("Interface/Icons/Spell_Shadow_UnstableAffliction_3", size=20)
else
" UA":Red
end) (if HasAura("Curse of Agony") then
Icon("Interface/Icons/Spell_Shadow_CurseOfSargeras", size=20)
else
" CoA":Red
end) (if HasAura("Corruption") then
Icon("Interface/Icons/Spell_Shadow_AbominationExplosion", size=20)
else
" COR":Red
end) (if HasAura("Siphon Life") then
Icon("Interface/Icons/Spell_Shadow_Requiem", size=20)
else
" SL":Red
end) (if HasAura("Shadow Embrace") then
Icon("Interface/Icons/Spell_Shadow_ShadowEmbrace", size=20)
else
" SE":Red
end) (if (HasAura("Fear") or HasAura("Howl of Terror") or HasAura("Death Coil")) then
Icon("Interface/Icons/Spell_Shadow_Possession", size=20)
else
" Fear":Yellow
end)
end)
end)]
The other issue I have is my logic around getting my Name text on my Health Bar to look like:
Targetting Players:
------------------------------------------------------
| [H] BE Zragoll [80]<AFK><Ghost>| Health Bar
------------------------------------------------------
** Colours: "[H] BE" - Red for Horde, Blue for Alliance
** "Zragoll [80]" - Purple for Warlock, Uses Class Colours
** "<AFK><Ghost>" - Yellow
Targetting Mobs & NPCs:
** ------------------------------------------------------
** | Ogre High King Maulg [??]<Boss> | Health Bar
** ------------------------------------------------------
** Colours: (Not Tapped)
** "Ogre" - White
** "High King Maulg [??]" - Class Colour
** "<Boss>" - Yellow
** Colours: (Tapped By Someone Else not in your Group)
** "Ogre High King Maulg [??]<Boss>" - Grey
** Colours: (Tapped by You or someone in your Group)
** "Ogre" - Red
** "High King Maulg [??]" - Class Colour
** "<Boss>" - Yellow
I can't seem to find the right syntax to do what I want. the below works, kind of, it does what its suppose to for targetting players, but not for mobs or npc's. I suspect I'm not using the IsTapped syntax for its intended purpose, the goal is to identify a mob/npc and to check if its tapped by me or someone else.
[(if (IsEnemy IsPlayerOrPet) then
(if Faction = "Alliance" then
("A":Bracket:Blue) " " (ShortRace:Blue)
end) (if Faction = "Horde" then
("H":Bracket:Red) " " (ShortRace:Red)
end) " " (Name:White) " " (Level:Bracket:Yellow) (AFK:Angle:Yellow) (DND:Angle:Yellow) (Dead:Angle:Yellow)
end) (if (IsEnemy ~IsPlayerOrPet) then
(if (IsTapped = "True") & (Faction ~"Alliance") then
(ShortRace:Gray) " " (Name:Truncate(15,nil):Gray) " " (Level:Bracket:Gray) (Classification:Angle:Gray)
end) (if (IsTappedByMe = "True") & (Faction ~"Alliance") then
(ShortRace:White) " " (Name:Truncate(15,nil):White) " " (Level:Bracket:White) (Classification:Angle:Yellow)
end)
end)]
This thread has been amazing, to think, 2 days ago, I didn't know how to use tags and just downloaded pitbull. Today I'm learning how to create some really cool things for myself to get rid of buff addons and necrosis.
PS How does one alter pitbull's colours and bar textures? I've seen some pretty cool screenshots of square health bars that are pale blue, or dark grey.