From 5b825bbaa3d527db712ce8e703293ee9772346d0 Mon Sep 17 00:00:00 2001 From: Logan Payton Date: Fri, 18 May 2018 09:45:07 -0400 Subject: [PATCH] Remove annoying invisible frame --- ElvUI/Modules/DataBars/Experience.lua | 4 ++-- ElvUI/Modules/UnitFrames/Elements/AuraBars.lua | 2 +- ElvUI/Modules/UnitFrames/UnitFrames.lua | 10 +++++----- ElvUI/Settings/Profile.lua | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ElvUI/Modules/DataBars/Experience.lua b/ElvUI/Modules/DataBars/Experience.lua index fd325a3..4374600 100644 --- a/ElvUI/Modules/DataBars/Experience.lua +++ b/ElvUI/Modules/DataBars/Experience.lua @@ -114,8 +114,7 @@ function mod:ExperienceBar_OnClick() end function mod:UpdateExperienceDimensions() - self.expBar:SetWidth(self.db.experience.width) - self.expBar:SetHeight(self.db.experience.height) + E:Size(self.expBar, self.db.experience.width, self.db.experience.height) E:FontTemplate(self.expBar.text, LSM:Fetch("font", self.db.experience.font), self.db.experience.textSize, self.db.experience.fontOutline) self.expBar.rested:SetOrientation(self.db.experience.orientation) @@ -158,6 +157,7 @@ function mod:LoadExperienceBar() self.expBar.rested:SetStatusBarTexture(E.media.normTex) E:RegisterStatusBar(self.expBar.rested) self.expBar.rested:SetStatusBarColor(1, 0, 1, 0.2) + E:Kill(ExhaustionTick) self:UpdateExperienceDimensions() diff --git a/ElvUI/Modules/UnitFrames/Elements/AuraBars.lua b/ElvUI/Modules/UnitFrames/Elements/AuraBars.lua index 06c1756..36040df 100644 --- a/ElvUI/Modules/UnitFrames/Elements/AuraBars.lua +++ b/ElvUI/Modules/UnitFrames/Elements/AuraBars.lua @@ -227,7 +227,7 @@ function UF:CheckFilter(name, caster, spellID, isFriend, isPlayer, isUnit, allow end function UF:AuraBarFilter(unit, name, _, _, _, debuffType, duration, _, unitCaster, isStealable, _, spellID) - if not self.db then return; end + if not self.db then return end local db = self.db.aurabar if not name then return nil end diff --git a/ElvUI/Modules/UnitFrames/UnitFrames.lua b/ElvUI/Modules/UnitFrames/UnitFrames.lua index 78cc67d..6d65633 100644 --- a/ElvUI/Modules/UnitFrames/UnitFrames.lua +++ b/ElvUI/Modules/UnitFrames/UnitFrames.lua @@ -821,7 +821,7 @@ hiddenParent:Hide() local HandleFrame = function(baseName) local frame - if(type(baseName) == "string") then + if type(baseName) == "string" then frame = _G[baseName] else frame = baseName @@ -835,17 +835,17 @@ local HandleFrame = function(baseName) frame:SetParent(hiddenParent) local health = frame.healthbar - if(health) then + if health then health:UnregisterAllEvents() end local power = frame.manabar - if(power) then + if power then power:UnregisterAllEvents() end local spell = frame.spellbar - if(spell) then + if spell then spell:UnregisterAllEvents() end end @@ -868,7 +868,7 @@ function ElvUF:DisableBlizzard(unit) HandleFrame(TargetofTargetFrame) elseif string.match(unit, "(party)%d?$") == "party" and E.private["unitframe"]["disabledBlizzardFrames"].party then local id = string.match(unit, "party(%d)") - if(id) then + if id then HandleFrame("PartyMemberFrame"..id) else for i = 1, 4 do diff --git a/ElvUI/Settings/Profile.lua b/ElvUI/Settings/Profile.lua index cc671c7..aa09d49 100644 --- a/ElvUI/Settings/Profile.lua +++ b/ElvUI/Settings/Profile.lua @@ -556,7 +556,7 @@ P["bags"] = { ["showBackdrop"] = false, ["mouseover"] = false } -}; +} --UnitFrame P["unitframe"] = {