Classic Floating Combat Text

Classic Floating Combat Text

614k Downloads

Text display area fallback suggestion

Jake13f opened this issue · 6 comments

commented

Suggestion
Would it be possible to remember the nameplates last position when displaying damage numbers of an enemy that dies and show the final numbers in that location instead of the center? That way the numbers still show in relatively the same position instead of snapping to the center. Would add just that much more old style immersion!

If no nameplate is available (in case the target dies or moves off-screen), text display area can fall back to screen center.

commented

Getting nameplate positions isn't possible due to blizzard restricting that part of the API.
We can only attach something to a nameplate or not.

commented

@TechHypno is it possible to get the rendered text’s position instead of the nameplate?

No, as long as any frame up the parent chain ends up being a protected frame, frame:GetPoint() on any child frame will spit out a lua error.

commented

@TechHypno is it possible to get the rendered text’s position instead of the nameplate?

commented

image
target something and run this /run print(C_NamePlate.GetNamePlateForUnit('target').UnitFrame:GetPoint())
I'm very sad that this isn't allowed, they restricted this in bfa iirc.

commented

@TechHypno dang yeah feel free to close the issue. It’s really unfortunate unless someone else has some creative idea to still calculate it. Thanks for the update!

commented

As of right now there is zero information available for any calculations so unless we buy 51% stake in ATVI its not happening.