View Single Post
09-02-09, 08:39 AM   #1151
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Caellian View Post
May i ask you, how ?
Because, someone reported that the previous method only partially worked, after a while, the runes would just get "stuck", colored but not updating anymore.
Your method might be the solution.
source: http://github.com/p3lim/oUF_RuneBar/...UF_RuneBar.lua
Code:
local function update(self)
    for index = 1, 6 do
        self.Runes[index]:SetStatusBarColor(unpack(oUF.colors.runes[GetRuneType(index)]))
    end
end
This function is also 2nd arg in oUF:AddElement()