mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Remove annoying invisible frame
This commit is contained in:
@@ -114,8 +114,7 @@ function mod:ExperienceBar_OnClick()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mod:UpdateExperienceDimensions()
|
function mod:UpdateExperienceDimensions()
|
||||||
self.expBar:SetWidth(self.db.experience.width)
|
E:Size(self.expBar, self.db.experience.width, self.db.experience.height)
|
||||||
self.expBar:SetHeight(self.db.experience.height)
|
|
||||||
|
|
||||||
E:FontTemplate(self.expBar.text, LSM:Fetch("font", self.db.experience.font), self.db.experience.textSize, self.db.experience.fontOutline)
|
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)
|
self.expBar.rested:SetOrientation(self.db.experience.orientation)
|
||||||
@@ -158,6 +157,7 @@ function mod:LoadExperienceBar()
|
|||||||
self.expBar.rested:SetStatusBarTexture(E.media.normTex)
|
self.expBar.rested:SetStatusBarTexture(E.media.normTex)
|
||||||
E:RegisterStatusBar(self.expBar.rested)
|
E:RegisterStatusBar(self.expBar.rested)
|
||||||
self.expBar.rested:SetStatusBarColor(1, 0, 1, 0.2)
|
self.expBar.rested:SetStatusBarColor(1, 0, 1, 0.2)
|
||||||
|
E:Kill(ExhaustionTick)
|
||||||
|
|
||||||
self:UpdateExperienceDimensions()
|
self:UpdateExperienceDimensions()
|
||||||
|
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ function UF:CheckFilter(name, caster, spellID, isFriend, isPlayer, isUnit, allow
|
|||||||
end
|
end
|
||||||
|
|
||||||
function UF:AuraBarFilter(unit, name, _, _, _, debuffType, duration, _, unitCaster, isStealable, _, spellID)
|
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
|
local db = self.db.aurabar
|
||||||
|
|
||||||
if not name then return nil end
|
if not name then return nil end
|
||||||
|
|||||||
@@ -821,7 +821,7 @@ hiddenParent:Hide()
|
|||||||
|
|
||||||
local HandleFrame = function(baseName)
|
local HandleFrame = function(baseName)
|
||||||
local frame
|
local frame
|
||||||
if(type(baseName) == "string") then
|
if type(baseName) == "string" then
|
||||||
frame = _G[baseName]
|
frame = _G[baseName]
|
||||||
else
|
else
|
||||||
frame = baseName
|
frame = baseName
|
||||||
@@ -835,17 +835,17 @@ local HandleFrame = function(baseName)
|
|||||||
frame:SetParent(hiddenParent)
|
frame:SetParent(hiddenParent)
|
||||||
|
|
||||||
local health = frame.healthbar
|
local health = frame.healthbar
|
||||||
if(health) then
|
if health then
|
||||||
health:UnregisterAllEvents()
|
health:UnregisterAllEvents()
|
||||||
end
|
end
|
||||||
|
|
||||||
local power = frame.manabar
|
local power = frame.manabar
|
||||||
if(power) then
|
if power then
|
||||||
power:UnregisterAllEvents()
|
power:UnregisterAllEvents()
|
||||||
end
|
end
|
||||||
|
|
||||||
local spell = frame.spellbar
|
local spell = frame.spellbar
|
||||||
if(spell) then
|
if spell then
|
||||||
spell:UnregisterAllEvents()
|
spell:UnregisterAllEvents()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -868,7 +868,7 @@ function ElvUF:DisableBlizzard(unit)
|
|||||||
HandleFrame(TargetofTargetFrame)
|
HandleFrame(TargetofTargetFrame)
|
||||||
elseif string.match(unit, "(party)%d?$") == "party" and E.private["unitframe"]["disabledBlizzardFrames"].party then
|
elseif string.match(unit, "(party)%d?$") == "party" and E.private["unitframe"]["disabledBlizzardFrames"].party then
|
||||||
local id = string.match(unit, "party(%d)")
|
local id = string.match(unit, "party(%d)")
|
||||||
if(id) then
|
if id then
|
||||||
HandleFrame("PartyMemberFrame"..id)
|
HandleFrame("PartyMemberFrame"..id)
|
||||||
else
|
else
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ P["bags"] = {
|
|||||||
["showBackdrop"] = false,
|
["showBackdrop"] = false,
|
||||||
["mouseover"] = false
|
["mouseover"] = false
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
--UnitFrame
|
--UnitFrame
|
||||||
P["unitframe"] = {
|
P["unitframe"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user