Originally Posted by Phanx
I haven't looked at the code, but whatever the problem is is certainly fixable... however, at this point, you would probably be better off just switching to any of the many nameplate addons that are still actively maintained by their authors. Searching for "plate" should find them all.
|
I know but I just really like these and I hate swapping nameplate addon as a tank, so I am really hoping on fixing these.
Edit: disabling " if self:IsShown() ~= 1 then return end " makes them work again, what does that line exactly do? It returned a 1 on beta so I just decided to disable it but ya.
Edit 2: perhaps it helps if i link all the code, so ya here that line is alreayd disabled that part with --
Lua Code:
----------------------------
--- EVENT HANDLERS/CUSTOM---
----------------------------
local function OnSizeChanged(self, width, height)
if self:IsShown() ~= 1 then return end
if height > cfg.castbar.height then
self.needFix = true
end
end
local function OnValueChanged(self, curValue)
-- if self:IsShown() ~= 1 then return end
UpdateTime(self, curValue)
--fix castbar from bloating - as a back up to onshow fixcastbar call
if self:GetHeight() > cfg.castbar.height or self.needFix then
FixCastbar(self)
self.needFix = nil
end
-- --another safety to ensure proper casbar coloring for interruptable vs uninteruptable items
-- if self.controller and select(2, self:GetStatusBarColor()) > 0.15 then
-- self:SetStatusBarColor(0.83, 0.14, 0.14)
-- end
end
local function OnShow(self)
FixCastbar(self)
self.IconOverlay:Show()
ColorCastbar(self, self.shieldedRegion:IsShown() == 1)
end
local function OnHide(self)
self.highlight:Hide()
end