Issue when displaying health text
Gotxiko opened this issue ยท 13 comments
Hey lightspark! Don't know if this is an issue with LS:UI or an issue with any other addon I have, but here it goes:
Health text on unit frames is not updating unless I deselect the target and select it again. Health text only gets updated when targeting, not when their health changes. Got this errors at some point while fighting, don't know if it's related.
Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:470: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: <unnamed>:GetLeft().
Time: Wed Oct 14 19:40:01 2020
Count: 1
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:470: Action[FrameMeasurement] failed because[Can't measure restricted regions]: attempted from: <unnamed>:GetLeft().
[string "=[C]"]: in function `GetLeft'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:470: in function `GetPreferredInsets'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:166: in function `UpdateInsetsForType'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:150: in function `ApplyFrameOptions'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:116: in function `OnNamePlateAdded'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:56: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:47>
Locals: (*temporary) = <unnamed> {
otherHealPrediction = <unnamed> {
}
b = 0
myHealAbsorbLeftShadow = <unnamed> {
}
border = <unnamed> {
}
background = <unnamed> {
}
overAbsorbGlow = <unnamed> {
}
barTexture = <unnamed> {
}
0 = <userdata>
r = 0.999998
totalAbsorb = <unnamed> {
}
myHealPrediction = <unnamed> {
}
g = 0
totalAbsorbOverlay = <unnamed> {
}
myHealAbsorbRightShadow = <unnamed> {
}
overHealAbsorbGlow = <unnamed> {
}
myHealAbsorb = <unnamed> {
}
}
`Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:216: Usage: GetRaidTargetIndex(unit)
Time: Wed Oct 14 19:40:49 2020
Count: 6
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:216: Usage: GetRaidTargetIndex(unit)
[string "=[C]"]: in function `GetRaidTargetIndex'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:216: in function `OnRaidTargetUpdate'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:122: in function `OnNamePlateAdded'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:56: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:47>
Locals: (*temporary) = nil
`
`Message: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:216: Usage: GetRaidTargetIndex(unit)
Time: Wed Oct 14 19:40:49 2020
Count: 6
Stack: ...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:216: Usage: GetRaidTargetIndex(unit)
[string "=[C]"]: in function `GetRaidTargetIndex'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:216: in function `OnRaidTargetUpdate'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:122: in function `OnNamePlateAdded'
[string "@Interface\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua"]:56: in function <...e\AddOns\Blizzard_NamePlates\Blizzard_NamePlates.lua:47>
Locals: (*temporary) = nil
`
Hi!
Errors are unrelated, I don't do anything with nameplates, so it's some other addon. I'll look into health text, seems weird
Tried disabling addons, other addons don't seem to be conflicting.
I believe the tag is correct, and it's not only this one, tried with other tags and are not updating either.
UNIT_MAXHEALTH UNIT_CONNECTION PLAYER_FLAGS_CHANGED
function(unit)
if not UnitIsConnected(unit) then
return _VARS.L["OFFLINE"]
elseif UnitIsDeadOrGhost(unit) then
return _VARS.L["DEAD"]
else
return _VARS.E:FormatNumber(UnitHealth(unit))
end
end
Tried on more than one character as well, as well as disabling all addons besides lsui, problem persists. It's really weird.
Patience with that queue! Take your time, not really a critical problem right now ;)
No errors whatsoever, the numbers just don't update unless I "re-target" the objective.