View Single Post
10-12-14, 06:22 AM   #5
Falleneu
A Deviate Faerie Dragon
Join Date: Aug 2010
Posts: 12
Originally Posted by Phanx View Post
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:
  1. ----------------------------
  2. --- EVENT HANDLERS/CUSTOM---
  3. ----------------------------
  4. local function OnSizeChanged(self, width, height)
  5.     if self:IsShown() ~= 1 then return end
  6.        
  7.     if height > cfg.castbar.height then
  8.         self.needFix = true
  9.     end
  10. end
  11.  
  12. local function OnValueChanged(self, curValue)
  13.      -- if self:IsShown() ~= 1 then return end
  14.     UpdateTime(self, curValue)
  15.    
  16.     --fix castbar from bloating - as a back up to onshow fixcastbar call
  17.     if self:GetHeight() > cfg.castbar.height or self.needFix then
  18.         FixCastbar(self)
  19.         self.needFix = nil
  20.     end
  21.    
  22.     -- --another safety to ensure proper casbar coloring for interruptable vs uninteruptable items
  23.     -- if self.controller and select(2, self:GetStatusBarColor()) > 0.15 then
  24.         -- self:SetStatusBarColor(0.83, 0.14, 0.14)
  25.     -- end
  26. end
  27.  
  28. local function OnShow(self)
  29.     FixCastbar(self)
  30.     self.IconOverlay:Show()
  31.     ColorCastbar(self, self.shieldedRegion:IsShown() == 1)
  32. end
  33.  
  34. local function OnHide(self)
  35.     self.highlight:Hide()
  36. end

Last edited by Falleneu : 10-12-14 at 06:34 AM.