Hi guys,
I'm been porting layout to Legion.
I was now testing the RuneBar and it is not working. Like not updating. It gets displayed correctly it just doesn't get depleted. I've set some prints on the runebar.lua in the update method and it seems it is not being called.
Anyone tested it or facing the same problem?
This is my code, pretty straightforward, I've compared it to other layouts, everything seems fine.
Lua Code:
local CreateRuneBar = function(self)
local Runes = {}
for index = 1, 6 do
local Rune = CreateFrame('StatusBar', nil, self)
local numRunes, maxWidth, gap = 6, cfg.frames.main.width, 6
local width = ((maxWidth / numRunes) - (((numRunes-1) * gap) / numRunes))
Rune:SetSize(width, cfg.frames.main.power.height)
Rune:SetStatusBarTexture(m.textures.status_texture)
Rune:SetStatusBarColor(unpack(oUF.colors.power["RUNES"]))
core:setBackdrop(Rune, 2, 2, 2, 2) -- Backdrop
if(index == 1) then
Rune:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -8)
else
Rune:SetPoint('LEFT', Runes[index - 1], 'RIGHT', gap, 0)
end
Runes[index] = Rune
end
self.Runes = Runes
end
Again, they show up just fine, they just don't update.
Thanks.