mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -9,7 +9,7 @@ local _G = _G
|
||||
local unpack, select, pairs, ipairs = unpack, select, pairs, ipairs
|
||||
local floor, min, max, huge = math.floor, math.min, math.max, math.huge
|
||||
local format = string.format
|
||||
local wipe, tinsert, tsort, tremove = table.wipe, table.insert, table.sort, table.remove
|
||||
local getn, wipe, tinsert, tsort, tremove = table.getn, table.wipe, table.insert, table.sort, table.remove
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetInventoryItemQuality = GetInventoryItemQuality
|
||||
|
||||
@@ -5,7 +5,7 @@ local Search = LibStub("LibItemSearch-1.2");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local ipairs, pairs, pcall, tonumber, select, unpack = ipairs, pairs, pcall, tonumber, select, unpack
|
||||
local tinsert, tremove, tsort, twipe = table.insert, table.remove, table.sort, table.wipe
|
||||
local getn, tinsert, tremove, tsort, twipe = table.getn, table.insert, table.remove, table.sort, table.wipe
|
||||
local floor, mod = math.floor, math.mod
|
||||
local band = bit.band
|
||||
local match, gmatch, find = string.match, string.gmatch, string.find
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
local E, L, V, P, G = unpack(ElvUI) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
local E, L, V, P, G = unpack(ElvUI) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
|
||||
@@ -535,7 +535,7 @@ function S:AddCallbackForAddon(addonName, eventName, loadFunc, forceLoad, bypass
|
||||
else
|
||||
--Insert eventName in this addons' registry
|
||||
self.addonCallbacks[addonName][eventName] = true
|
||||
self.addonCallbacks[addonName]["CallPriority"][getn(self.addonCallbacks[addonName]["CallPriority"]) + 1] = eventName
|
||||
tinsert(self.addonCallbacks[addonName]["CallPriority"], eventName)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -558,7 +558,7 @@ function S:AddCallback(eventName, loadFunc)
|
||||
|
||||
--Add event name to registry
|
||||
self.nonAddonCallbacks[eventName] = true
|
||||
self.nonAddonCallbacks["CallPriority"][getn(self.nonAddonCallbacks["CallPriority"]) + 1] = eventName
|
||||
tinsert(self.nonAddonCallbacks["CallPriority"], eventName)
|
||||
|
||||
--Register loadFunc to be called when event is fired
|
||||
E.RegisterCallback(E, eventName, loadFunc)
|
||||
|
||||
@@ -5,7 +5,7 @@ local TT = E:NewModule("Tooltip", "AceHook-3.0", "AceEvent-3.0");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local twipe, tinsert, tconcat = table.wipe, table.insert, table.concat
|
||||
local getn, twipe, tinsert, tconcat = table.getn, table.wipe, table.insert, table.concat
|
||||
local floor = math.floor
|
||||
local find, format, match = string.find, string.format, string.match
|
||||
--WoW API / Variables
|
||||
|
||||
Reference in New Issue
Block a user