SpartanUI

SpartanUI

5M Downloads

Integration with RealMobHealth

ZachHandley opened this issue ยท 2 comments

commented

Title. Would be really nice to stop seeing "100/100" when I have an addon for that

commented

This is planned for SUI 6.0

With unitframes being redesigned making the needed changed in 5.X would just slow everything else down.

commented

Could you insert the relevant few lines of code into the target getHealth() getter? If it can already return a value, it should be deasily doable to add in something like this, right? Really the most major place beyond the tooltip.

Edit:
I literally just replaced UnitHealth/UnitHealthMax in SUF.lua with these two functions and it works fine.
While I don't actually know LUA at all, this works fine. I'm sure you could do better, but this is simple Butchery from NeatPlates along with an extra check to 'UnitHasHealthData' which may not be required.

https://pastebin.com/uK1x6TVV

image