From what I can tell, in the “older days” there were addons (Such as UnitFramesImproved) that used the following to be able to set custom health text on unit frames:
But ever since the latest Dragonflight patch (10.2.7), that method can no longer be hooked into.
So now when a target has for example 1.500.000 health, it is written out as “1500k” instead of “1.5m”.
Is there a new function to hook into instead? Is there another way to customize how the health numbers are abbreviated?
Ah, I see! Thanks, this repo is definitely useful for future references.
I tried fiddling some more with it. It seems if I used a string for the Table reference, it threw exceptions.
So this line made it not-break on load:
If I changed the 2nd parameter, it would complain about the function not existing. So that part is at least correct.
But the actual callback I referenced (FunctionToCall). No matter how many parameters I give it, that is never called.