mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Apparently the script tag only accepts top level files in vanilla
This commit is contained in:
+2
-2
@@ -370,7 +370,7 @@ end
|
|||||||
|
|
||||||
local function Enable(self)
|
local function Enable(self)
|
||||||
if self.AuraBars then
|
if self.AuraBars then
|
||||||
self:RegisterEvent("UNIT_AURA", Update)
|
self:RegisterEvent("PLAYER_AURAS_CHANGED", Update)
|
||||||
self.AuraBars:Height(1)
|
self.AuraBars:Height(1)
|
||||||
self.AuraBars.bars = self.AuraBars.bars or {}
|
self.AuraBars.bars = self.AuraBars.bars or {}
|
||||||
self.AuraBars.SetAnchors = SetAnchors
|
self.AuraBars.SetAnchors = SetAnchors
|
||||||
@@ -383,7 +383,7 @@ end
|
|||||||
local function Disable(self)
|
local function Disable(self)
|
||||||
local auraFrame = self.AuraBars
|
local auraFrame = self.AuraBars
|
||||||
if auraFrame then
|
if auraFrame then
|
||||||
self:UnregisterEvent("UNIT_AURA", Update)
|
self:UnregisterEvent("PLAYER_AURAS_CHANGED", Update)
|
||||||
auraFrame:SetScript("OnUpdate", nil)
|
auraFrame:SetScript("OnUpdate", nil)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
<Ui xmlns="http://www.blizzard.com/wow/ui/">
|
<Ui xmlns="http://www.blizzard.com/wow/ui/">
|
||||||
<Script file="oUF_AuraBars\oUF_AuraBars.lua"/>
|
<Script file="oUF_AuraBars.lua"/>
|
||||||
</Ui>
|
</Ui>
|
||||||
@@ -45,7 +45,6 @@ function UF:Construct_AuraBars()
|
|||||||
bar.bg = bar:CreateTexture(nil, "BORDER")
|
bar.bg = bar:CreateTexture(nil, "BORDER")
|
||||||
bar.bg:Hide()
|
bar.bg:Hide()
|
||||||
|
|
||||||
|
|
||||||
bar.iconHolder:RegisterForClicks("RightButtonUp")
|
bar.iconHolder:RegisterForClicks("RightButtonUp")
|
||||||
bar.iconHolder:SetScript("OnClick", function(self)
|
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user