Thread: artifact xp bar
View Single Post
09-02-16, 11:12 AM   #20
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
You need to move these lines out of the event handler. Probably to the main scope.
Code:
local bar = CreateFrame("StatusBar", nil, derArtifactBar)
bar:SetAllPoints(true)
local text = bar:CreateFontString(nil, "OVERLAY", "GameFontNormal")
text:SetPoint("CENTER")
Do you really want to create another bar on top the existing one, though?
__________________
Grab your sword and fight the Horde!
  Reply With Quote