This commit is contained in:
Crum
2018-11-07 11:28:31 -06:00
parent e3c1aba974
commit 4ca55c3b2b
+16 -16
View File
@@ -6,7 +6,7 @@ local LSM = LibStub("LibSharedMedia-3.0");
local _G = _G local _G = _G
local tonumber, pairs, ipairs, error, unpack, select, tostring = tonumber, pairs, ipairs, error, unpack, select, tostring local tonumber, pairs, ipairs, error, unpack, select, tostring = tonumber, pairs, ipairs, error, unpack, select, tostring
local assert, print, type, collectgarbage, pcall, date = assert, print, type, collectgarbage, pcall, date local assert, print, type, collectgarbage, pcall, date = assert, print, type, collectgarbage, pcall, date
local twipe, tinsert, tremove, next = table.wipe, tinsert, tremove, next local getn, twipe, tinsert, tremove, next = table.getn, table.wipe, tinsert, tremove, next
local floor = floor local floor = floor
local format, find, match, strrep, len, sub, gsub = string.format, string.find, string.match, strrep, string.len, string.sub, string.gsub local format, find, match, strrep, len, sub, gsub = string.format, string.find, string.match, strrep, string.len, string.sub, string.gsub
--WoW API / Variables --WoW API / Variables
@@ -15,6 +15,7 @@ local GetCVar = GetCVar
local GetFunctionCPUUsage = GetFunctionCPUUsage local GetFunctionCPUUsage = GetFunctionCPUUsage
local GetTalentTabInfo = GetTalentTabInfo local GetTalentTabInfo = GetTalentTabInfo
local IsAddOnLoaded = IsAddOnLoaded local IsAddOnLoaded = IsAddOnLoaded
local IsInGuild = IsInGuild
local IsInInstance, GetNumPartyMembers, GetNumRaidMembers = IsInInstance, GetNumPartyMembers, GetNumRaidMembers local IsInInstance, GetNumPartyMembers, GetNumRaidMembers = IsInInstance, GetNumPartyMembers, GetNumRaidMembers
local RequestBattlefieldScoreData = RequestBattlefieldScoreData local RequestBattlefieldScoreData = RequestBattlefieldScoreData
local SendAddonMessage = SendAddonMessage local SendAddonMessage = SendAddonMessage
@@ -414,8 +415,8 @@ end
E.UIParent = CreateFrame("Frame", "ElvUIParent", UIParent) E.UIParent = CreateFrame("Frame", "ElvUIParent", UIParent)
E.UIParent:SetFrameLevel(UIParent:GetFrameLevel()) E.UIParent:SetFrameLevel(UIParent:GetFrameLevel())
E.UIParent:SetPoint("CENTER", UIParent, "CENTER") E.UIParent:SetPoint("CENTER", UIParent, "CENTER")
E.UIParent:SetHeight(GetScreenHeight())
E.UIParent:SetWidth(GetScreenWidth()) E.UIParent:SetWidth(GetScreenWidth())
E.UIParent:SetHeight(GetScreenHeight())
E["snapBars"][getn(E["snapBars"]) + 1] = E.UIParent E["snapBars"][getn(E["snapBars"]) + 1] = E.UIParent
E.HiddenFrame = CreateFrame("Frame") E.HiddenFrame = CreateFrame("Frame")
@@ -850,7 +851,6 @@ function E:UpdateAll(ignoreInstall)
AB.db = self.db.actionbar AB.db = self.db.actionbar
AB:UpdateButtonSettings() AB:UpdateButtonSettings()
AB:UpdateMicroPositionDimensions() AB:UpdateMicroPositionDimensions()
AB:ToggleDesaturation()
local bags = E:GetModule("Bags") local bags = E:GetModule("Bags")
bags.db = self.db.bags bags.db = self.db.bags
@@ -860,10 +860,10 @@ function E:UpdateAll(ignoreInstall)
bags:UpdateItemLevelDisplay() bags:UpdateItemLevelDisplay()
bags:UpdateCountDisplay() bags:UpdateCountDisplay()
local totems = E:GetModule("Totems") -- local totems = E:GetModule("Totems")
totems.db = self.db.general.totems -- totems.db = self.db.general.totems
totems:PositionAndSize() -- totems:PositionAndSize()
totems:ToggleEnable() -- totems:ToggleEnable()
self:GetModule("Layout"):ToggleChatPanels() self:GetModule("Layout"):ToggleChatPanels()
@@ -871,10 +871,10 @@ function E:UpdateAll(ignoreInstall)
DT.db = self.db.datatexts DT.db = self.db.datatexts
DT:LoadDataTexts() DT:LoadDataTexts()
local NP = self:GetModule("NamePlates") -- local NP = self:GetModule("NamePlates")
NP.db = self.db.nameplates -- NP.db = self.db.nameplates
NP:StyleFilterInitializeAllFilters() -- NP:StyleFilterInitializeAllFilters()
NP:ConfigureAll() -- NP:ConfigureAll()
local DataBars = self:GetModule("DataBars") local DataBars = self:GetModule("DataBars")
DataBars.db = E.db.databars DataBars.db = E.db.databars
@@ -882,10 +882,10 @@ function E:UpdateAll(ignoreInstall)
DataBars:EnableDisable_ExperienceBar() DataBars:EnableDisable_ExperienceBar()
DataBars:EnableDisable_ReputationBar() DataBars:EnableDisable_ReputationBar()
local T = self:GetModule("Threat") -- local T = self:GetModule("Threat")
T.db = self.db.general.threat -- T.db = self.db.general.threat
T:UpdatePosition() -- T:UpdatePosition()
T:ToggleEnable() -- T:ToggleEnable()
self:GetModule("Auras").db = self.db.auras self:GetModule("Auras").db = self.db.auras
self:GetModule("Tooltip").db = self.db.tooltip self:GetModule("Tooltip").db = self.db.tooltip
@@ -917,7 +917,7 @@ function E:UpdateAll(ignoreInstall)
LO:TopPanelVisibility() LO:TopPanelVisibility()
LO:SetDataPanelStyle() LO:SetDataPanelStyle()
collectgarbage("collect") collectgarbage()
end end
function E:ResetAllUI() function E:ResetAllUI()