This commit is contained in:
Pinya
2018-07-18 15:06:20 +03:00
parent de74893739
commit c60324af12
52 changed files with 48 additions and 190 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ function CC:GetCacheSize(global)
if global then
for realm in pairs(self.cache) do
for name in pairs(self.cache[realm]) do
for _ in pairs(self.cache[realm]) do
size = size + 1
end
end
@@ -204,7 +204,7 @@ function CC:GetCacheSize(global)
self.cacheDBCalculationTime = GetTime()
else
for realm in pairs(self.tempCache) do
for name in pairs(self.tempCache[realm]) do
for _ in pairs(self.tempCache[realm]) do
size = size + 1
end
end
+1 -1
View File
@@ -3,7 +3,7 @@ local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, Profi
--Cache global variables
--Lua functions
local _G = _G
local pairs, type, unpack, assert = pairs, type, unpack, assert
local pairs, assert = pairs, assert
local getn, tremove, tContains, tinsert, wipe = table.getn, tremove, tContains, tinsert, table.wipe
local lower = string.lower
--WoW API / Variables
-3
View File
@@ -11,7 +11,6 @@ local floor = floor
local format, find, match, strrep, len, sub, gsub = string.format, string.find, string.match, strrep, string.len, string.sub, string.gsub
--WoW API / Variables
local CreateFrame = CreateFrame
local GetActiveTalentGroup = GetActiveTalentGroup
local GetCVar = GetCVar
local GetFunctionCPUUsage = GetFunctionCPUUsage
local GetTalentTabInfo = GetTalentTabInfo
@@ -20,8 +19,6 @@ local IsInInstance, GetNumPartyMembers, GetNumRaidMembers = IsInInstance, GetNum
local RequestBattlefieldScoreData = RequestBattlefieldScoreData
local SendAddonMessage = SendAddonMessage
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
local ERR_NOT_IN_COMBAT = ERR_NOT_IN_COMBAT
local MAX_TALENT_TABS = MAX_TALENT_TABS
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
_, E.myclass = UnitClass("player") -- Constants
-1
View File
@@ -67,7 +67,6 @@ function E:UIScale(event)
if E.Round and E:Round(UIParent:GetScale(), 5) ~= E:Round(scale, 5) and (event == "PLAYER_LOGIN") then
SetCVar("UseUIScale", 1)
SetCVar("UIScale", scale)
WorldMapFrame.hasTaint = true;
end
if (event == "PLAYER_LOGIN" or event == "UPDATE_FLOATING_CHAT_WINDOWS") then