Hi
I wrote an addon to display damage on the target frame, with a lot of help from this forum, a long time ago. It's very simple.
Now I'd like to know if it's possible to color the font based on what hit e.g. ─ can you make white hits and yellow hits, just like the normal damage font ─ and is it possible to color crits orange for example?
Code:
local txt=TargetFrameTextureFrame:CreateFontString("TargetHitIndicator","OVERLAY","NumberFontNormalHuge");
txt:SetPoint("CENTER",TargetFrameTextureFrame,"TOPRIGHT",-73,-42);
txt:Hide();
CombatFeedback_Initialize(TargetFrame,txt,30);
TargetFrame:RegisterUnitEvent("UNIT_COMBAT","target");
TargetFrame:HookScript("OnEvent",function(self,event,unit,...)
if event=="UNIT_COMBAT" then CombatFeedback_OnCombatEvent(self,...); end
end);
TargetFrame:HookScript("OnUpdate",CombatFeedback_OnUpdate);
Thank you in advance for any help, it's all much appreciated! :-)