mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 00:44:45 +00:00
cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local A = E:NewModule("Auras", "AceEvent-3.0");
|
||||
local LSM = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
@@ -485,7 +485,7 @@ function A:Initialize()
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
self.BuffFrame:SetScript("OnUpdate", function()
|
||||
if this:GetUpdateWeaponEnchant() then A:UpdateHeader(this) end
|
||||
end)
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local B = E:GetModule("Bags")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Bags");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local tinsert = table.insert
|
||||
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local NUM_BAG_FRAMES = NUM_BAG_FRAMES
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local B = E:NewModule("Bags", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0")
|
||||
local Search = LibStub("LibItemSearch-1.2", true)
|
||||
local LIP = LibStub("ItemPrice-1.1", true)
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:NewModule("Bags", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0");
|
||||
local Search = LibStub("LibItemSearch-1.2", true);
|
||||
local LIP = LibStub("ItemPrice-1.1", true);
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local type, ipairs, pairs, unpack, select, assert = type, ipairs, pairs, unpack, select, assert
|
||||
local tinsert = table.insert
|
||||
local floor, ceil, mod = math.floor, math.ceil, math.mod
|
||||
local len, sub, gsub, find = string.len, string.sub, string.gsub, string.find
|
||||
|
||||
--WoW API / Variables
|
||||
local BankFrameItemButton_Update = BankFrameItemButton_Update
|
||||
local BankFrameItemButton_UpdateLocked = BankFrameItemButton_UpdateLocked
|
||||
local CloseBag, CloseBackpack, CloseBankFrame = CloseBag, CloseBackpack, CloseBankFrame
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local B = E:GetModule("Bags")
|
||||
|
||||
local Search = LibStub("LibItemSearch-1.2")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Bags");
|
||||
local Search = LibStub("LibItemSearch-1.2");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local ipairs, pairs, tonumber, select, unpack = ipairs, pairs, tonumber, select, unpack
|
||||
local tinsert, tremove, tsort, twipe = table.insert, table.remove, table.sort, table.wipe
|
||||
local floor = math.floor
|
||||
local band = bit.band
|
||||
local match, gmatch, find = string.match, string.gmatch, string.find
|
||||
|
||||
--WoW API / Variables
|
||||
local GetTime = GetTime
|
||||
local InCombatLockdown = InCombatLockdown
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local CH = E:NewModule("Chat", "AceTimer-3.0", "AceHook-3.0", "AceEvent-3.0")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local CH = E:NewModule("Chat", "AceTimer-3.0", "AceHook-3.0", "AceEvent-3.0");
|
||||
--local CC = E:GetModule("ClassCache")
|
||||
local LSM = LibStub("LibSharedMedia-3.0")
|
||||
local LSM = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local time, difftime = time, difftime
|
||||
local pairs, unpack, select, tostring, next, tonumber, type, assert = pairs, unpack, select, tostring, next, tonumber, type, assert
|
||||
@@ -10,7 +12,7 @@ local tinsert, tremove, tsort, twipe, tconcat = table.insert, table.remove, tabl
|
||||
local strmatch = strmatch
|
||||
local gsub, find, gmatch, format, split = string.gsub, string.find, string.gmatch, string.format, string.split
|
||||
local strlower, strsub, strlen, strupper = strlower, strsub, strlen, strupper
|
||||
|
||||
--WoW API / Variables
|
||||
local BetterDate = BetterDate
|
||||
local ChatEdit_SetLastTellTarget = ChatEdit_SetLastTellTarget
|
||||
local ChatFrameEditBox = ChatFrameEditBox
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local DT = E:NewModule("DataTexts", "AceTimer-3.0", "AceHook-3.0", "AceEvent-3.0")
|
||||
local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
|
||||
local LSM = LibStub("LibSharedMedia-3.0")
|
||||
local TT = E:GetModule("Tooltip")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local DT = E:NewModule("DataTexts", "AceTimer-3.0", "AceHook-3.0", "AceEvent-3.0");
|
||||
local LDB = LibStub:GetLibrary("LibDataBroker-1.1");
|
||||
local LSM = LibStub("LibSharedMedia-3.0");
|
||||
local TT = E:GetModule("Tooltip");
|
||||
|
||||
local pairs, type, error = pairs, type, error
|
||||
local len = string.len
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local DT = E:GetModule("DataTexts")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local DT = E:GetModule("DataTexts");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local type, pairs, select = type, pairs, select
|
||||
local sort, wipe = table.sort, wipe
|
||||
local format, find, join, gsub = string.format, string.find, string.join, string.gsub
|
||||
|
||||
--WoW API / Variables
|
||||
local UnitIsAFK = UnitIsAFK
|
||||
local UnitIsDND = UnitIsDND
|
||||
local SendChatMessage = SendChatMessage
|
||||
|
||||
@@ -163,7 +163,7 @@ local function OnClick(_, btn)
|
||||
end
|
||||
end
|
||||
|
||||
EasyMenu(menuList, menuFrame, "cursor", 0, 0, "MENU", 2)
|
||||
L_EasyMenu(menuList, menuFrame, "cursor", 0, 0, "MENU", 2)
|
||||
else
|
||||
ToggleFriendsFrame(3)
|
||||
end
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local M = E:NewModule("Minimap", "AceEvent-3.0")
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local M = E:NewModule("Minimap", "AceEvent-3.0");
|
||||
E.Minimap = M
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local strsub = strsub
|
||||
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local ToggleCharacter = ToggleCharacter
|
||||
local ToggleFrame = ToggleFrame
|
||||
|
||||
Reference in New Issue
Block a user