Apparently the script tag only accepts top level files in vanilla

This commit is contained in:
Logan Payton
2018-05-16 17:48:45 -04:00
parent ff331498c2
commit ecff83dd48
3 changed files with 3 additions and 4 deletions
@@ -370,7 +370,7 @@ end
local function Enable(self)
if self.AuraBars then
self:RegisterEvent("UNIT_AURA", Update)
self:RegisterEvent("PLAYER_AURAS_CHANGED", Update)
self.AuraBars:Height(1)
self.AuraBars.bars = self.AuraBars.bars or {}
self.AuraBars.SetAnchors = SetAnchors
@@ -383,7 +383,7 @@ end
local function Disable(self)
local auraFrame = self.AuraBars
if auraFrame then
self:UnregisterEvent("UNIT_AURA", Update)
self:UnregisterEvent("PLAYER_AURAS_CHANGED", Update)
auraFrame:SetScript("OnUpdate", nil)
end
end
+1 -1
View File
@@ -1,3 +1,3 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="oUF_AuraBars\oUF_AuraBars.lua"/>
<Script file="oUF_AuraBars.lua"/>
</Ui>
@@ -45,7 +45,6 @@ function UF:Construct_AuraBars()
bar.bg = bar:CreateTexture(nil, "BORDER")
bar.bg:Hide()
bar.iconHolder:RegisterForClicks("RightButtonUp")
bar.iconHolder:SetScript("OnClick", function(self)
if E.db.unitframe.auraBlacklistModifier == "NONE" or not ((E.db.unitframe.auraBlacklistModifier == "SHIFT" and IsShiftKeyDown()) or (E.db.unitframe.auraBlacklistModifier == "ALT" and IsAltKeyDown()) or (E.db.unitframe.auraBlacklistModifier == "CTRL" and IsControlKeyDown())) then return; end