So on my Diablo oUF layout, I'm trying to add the Artifact Bar in preparation for Legion's release.
I found an oUF_ArtifactPower module that should allow me to do so, just like the oUF_Experiance and oUF_Reputation modules.
I can get the bar created, but for some reason when I register the bar to oUF as a ArtifactPower for the module to take over, it doesn't.
Here's a link to the module being used:
http://www.wowinterface.com/download...factPower.html
And the code used to implement the bar:
Lua Code:
--create the artifact bar
bars.createArtifactBar = function(self)
local cfg = self.cfg.artifactbar
if not cfg.show then return end
local w, h = 360, 5
local f = CreateFrame("StatusBar","oUF_DiabloArtifactBar",self)
f:SetFrameStrata("LOW")
f:SetFrameLevel(1)
f:SetSize(w,h)
f:SetPoint(cfg.pos.a1, cfg.pos.af, cfg.pos.a2, cfg.pos.x, cfg.pos.y)
f:SetScale(cfg.scale)
f:SetStatusBarTexture(cfg.texture)
f:SetStatusBarColor(1,1,1)
f:EnableMouse(true)
func.applyDragFunctionality(f)
local text = f:CreateFontString(nil,"OVERLAY")
text:SetPoint("CENTER")
text:SetFontObject(GameFontHighlight)
f.text = text
local t = f:CreateTexture(nil,"BACKGROUND",nil,-8)
t:SetAllPoints(f)
t:SetTexture(cfg.texture)
t:SetVertexColor(0,0.7,0)
t:SetAlpha(0.3)
f.bg = t
self.ArtifactPower = f
end
This is nearly a copy/paste of the reputation and experiance bar creation functions, changing a few things to match the ArtifactPower needs.
However, all that it does is create a statusbar that is locked at 100% full and the mouseover/text functions of the module have no effect on the bar.
If I copy/paste the example code he gives on the wiki, and add a texture to the bar, I get the same result, so I know it isn't related to the code I have here.