View Single Post
05-25-14, 11:27 AM   #6
Ash93
A Deviate Faerie Dragon
Join Date: May 2014
Posts: 12
Originally Posted by Phanx View Post
This is not possible, as the default UI's floating damage/healing text is rendered as part of the game world, not as part of the UI, and addons don't have access to it. If they did, they could use it that access to get information Blizzard doesn't want addons to have, such as calculating the exact position of enemy units based on the position of the text. If you want to change any aspect of the floating damage/healing text other than which font it uses, you have to use an addon to replace the whole system, and you can't have the numbers appear over the relevant units in the game world.



Not tested, but this should work:
Code:
local text = TargetFrame:CreateFontString(nil, "OVERLAY", "NumberFontNormalHuge")
text:SetPoint("CENTER", TargetFrame, "TOPLEFT", 73, -42)
text:Hide()

CombatFeedback_Initialize(self, text, 30)

local f = CreateFrame("Frame", nil, TargetFrame)
f:RegisterUnitEvent("UNIT_COMBAT", "target")
f:SetScript("OnEvent", function(self, event, unit, ...)
     CombatFeedback_OnCombatEvent(TargetFrame, ...)
end)
f:SetScript("OnUpdate", function(self, elapsed)
     CombatFeedback_OnUpdate(TargetFrame, elapsed)
end)
If you need help turning the above code into an addon, copy and paste it into this page:
http://addon.bool.no/
The script didn't work. It breaks my other scripts.
  Reply With Quote