mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update tables
This commit is contained in:
@@ -24,7 +24,7 @@ function UF:Construct_AuraBars()
|
||||
E:SetTemplate(self, "Default", nil, nil, UF.thinBorders, true)
|
||||
local inset = UF.thinBorders and E.mult or nil
|
||||
E:SetInside(bar, self, inset, inset)
|
||||
UF["statusbars"][bar] = true
|
||||
UF.statusbars[bar] = true
|
||||
UF:Update_StatusBar(bar)
|
||||
|
||||
UF:Configure_FontString(bar.spelltime)
|
||||
|
||||
@@ -79,7 +79,7 @@ function UF:Construct_AuraIcon(button)
|
||||
|
||||
if auraName then
|
||||
E:Print(format(L["The spell '%s' has been added to the Blacklist unitframe aura filter."], auraName))
|
||||
E.global["unitframe"]["aurafilters"]["Blacklist"]["spells"][auraName] = {
|
||||
E.global.unitframe.aurafilters.Blacklist.spells[auraName] = {
|
||||
["enable"] = true,
|
||||
["priority"] = 0,
|
||||
}
|
||||
@@ -319,8 +319,8 @@ function UF:UpdateAuraIconSettings(auras, noCycle)
|
||||
if not frame.db then return end
|
||||
|
||||
local db = frame.db[type]
|
||||
local unitframeFont = LSM:Fetch("font", E.db["unitframe"].font)
|
||||
local unitframeFontOutline = E.db["unitframe"].fontOutline
|
||||
local unitframeFont = LSM:Fetch("font", E.db.unitframe.font)
|
||||
local unitframeFontOutline = E.db.unitframe.fontOutline
|
||||
local index = 1
|
||||
auras.db = db
|
||||
if db then
|
||||
@@ -421,7 +421,7 @@ function UF:UpdateAuraTimer(elapsed)
|
||||
if self.text:GetFont() then
|
||||
self.text:SetText(format("%s%s|r", E.TimeColors[formatid], E.TimeFormats[formatid][2]), timervalue)
|
||||
elseif self:GetParent():GetParent().db then
|
||||
E:FontTemplate(self.text, LSM:Fetch("font", E.db["unitframe"].font), self:GetParent():GetParent().db[self:GetParent().type].fontSize, E.db["unitframe"].fontOutline)
|
||||
E:FontTemplate(self.text, LSM:Fetch("font", E.db.unitframe.font), self:GetParent():GetParent().db[self:GetParent().type].fontSize, E.db.unitframe.fontOutline)
|
||||
self.text:SetText(format("%s%s|r", E.TimeColors[formatid], E.TimeFormats[formatid][2]), timervalue)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,7 +30,7 @@ local INVERT_ANCHORPOINT = {
|
||||
function UF:Construct_Castbar(frame, moverName)
|
||||
local castbar = CreateFrame("StatusBar", nil, frame)
|
||||
castbar:SetFrameLevel(frame.RaisedElementParent:GetFrameLevel() + 30) --Make it appear above everything else
|
||||
self["statusbars"][castbar] = true
|
||||
self.statusbars[castbar] = true
|
||||
castbar.CustomDelayText = self.CustomCastDelayText
|
||||
castbar.CustomTimeText = self.CustomTimeText
|
||||
castbar.PostCastStart = self.PostCastStart
|
||||
|
||||
@@ -13,7 +13,7 @@ assert(ElvUF, "ElvUI was unable to locate oUF.")
|
||||
|
||||
function UF:Construct_PowerBar(frame, bg, text, textPos)
|
||||
local power = CreateFrame("StatusBar", nil, frame)
|
||||
UF["statusbars"][power] = true
|
||||
UF.statusbars[power] = true
|
||||
|
||||
power.PostUpdate = self.PostUpdatePower
|
||||
|
||||
@@ -22,7 +22,7 @@ function UF:Construct_PowerBar(frame, bg, text, textPos)
|
||||
if bg then
|
||||
power.bg = power:CreateTexture(nil, "BORDER")
|
||||
power.bg:SetAllPoints()
|
||||
power.bg:SetTexture(E["media"].blankTex)
|
||||
power.bg:SetTexture(E.media.blankTex)
|
||||
power.bg.multiplier = 0.2
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user