mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
cleanup
This commit is contained in:
@@ -5,7 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local find, match = string.find, string.match
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -6,8 +6,6 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.debug ~= true then return end
|
||||
@@ -54,7 +52,6 @@ local function LoadSkin()
|
||||
E:Point(ScriptErrorsFrame.next, "BOTTOM", ScriptErrorsFrame, "BOTTOM", 50, 7)
|
||||
E:Point(ScriptErrorsFrame.close, "BOTTOMRIGHT", -12, 8)
|
||||
|
||||
local noscalemult = E.mult * GetCVar("uiScale")
|
||||
HookScript(FrameStackTooltip, "OnShow", function()
|
||||
E:SetTemplate(this, "Transparent")
|
||||
this:SetBackdropColor(unpack(E["media"].backdropfadecolor))
|
||||
|
||||
@@ -5,7 +5,6 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local upper = string.upper
|
||||
--WoW API / Variables
|
||||
local GetWhoInfo = GetWhoInfo
|
||||
local GetGuildRosterInfo = GetGuildRosterInfo
|
||||
|
||||
@@ -6,7 +6,7 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local pairs = pairs
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local match = string.match
|
||||
--WoW API / Variables
|
||||
local GetInventoryItemLink = GetInventoryItemLink
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -60,7 +60,6 @@ local function LoadSkin()
|
||||
for i = 1, LOOTFRAME_NUMBUTTONS do
|
||||
local slot = (((LootFrame.page - 1) * numLootToShow) + i)
|
||||
local lootButton = _G["LootButton"..i]
|
||||
local lootButtonIcon = _G["LootButton"..i.."IconTexture"]
|
||||
|
||||
S:HandleItemButton(lootButton, true)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ local ipairs, unpack = ipairs, unpack
|
||||
local GetInboxHeaderInfo = GetInboxHeaderInfo
|
||||
local GetInboxItem = GetInboxItem
|
||||
local GetInboxNumItems = GetInboxNumItems
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemInfoByName = GetItemInfoByName
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
local GetSendMailItem = GetSendMailItem
|
||||
|
||||
@@ -5,13 +5,12 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local match, split = string.match, string.split
|
||||
local match = string.match
|
||||
--WoW API / Variables
|
||||
local GetBuybackItemInfo = GetBuybackItemInfo
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
local GetMerchantItemLink = GetMerchantItemLink
|
||||
local GetItemLinkByName = GetItemLinkByName
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
@@ -41,8 +40,6 @@ local function LoadSkin()
|
||||
local item = _G["MerchantItem"..i]
|
||||
local itemButton = _G["MerchantItem"..i.."ItemButton"]
|
||||
local iconTexture = _G["MerchantItem"..i.."ItemButtonIconTexture"]
|
||||
local altCurrencyTex1 = _G["MerchantItem"..i.."AltCurrencyFrameItem1Texture"]
|
||||
local altCurrencyTex2 = _G["MerchantItem"..i.."AltCurrencyFrameItem2Texture"]
|
||||
|
||||
E:StripTextures(item, true)
|
||||
E:CreateBackdrop(item, "Default")
|
||||
|
||||
@@ -5,10 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find = string.find
|
||||
--WoW API / Variables
|
||||
local IsAddOnLoaded = IsAddOnLoaded
|
||||
local UnitIsUnit = UnitIsUnit
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
@@ -370,7 +367,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Interface Options Checkboxes
|
||||
for index, value in UIOptionsFrameCheckButtons do
|
||||
for _, value in UIOptionsFrameCheckButtons do
|
||||
local UIOptionsFrameCheckBox = _G["UIOptionsFrameCheckButton"..value.index]
|
||||
if UIOptionsFrameCheckBox then
|
||||
S:HandleCheckBox(UIOptionsFrameCheckBox)
|
||||
@@ -378,7 +375,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Video Options Checkboxes
|
||||
for index, value in OptionsFrameCheckButtons do
|
||||
for _, value in OptionsFrameCheckButtons do
|
||||
local OptionsFrameCheckButton = _G["OptionsFrameCheckButton"..value.index]
|
||||
if OptionsFrameCheckButton then
|
||||
S:HandleCheckBox(OptionsFrameCheckButton)
|
||||
@@ -386,7 +383,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Sound Options Checkboxes
|
||||
for index, value in SoundOptionsFrameCheckButtons do
|
||||
for _, value in SoundOptionsFrameCheckButtons do
|
||||
local SoundOptionsFrameCheckButton = _G["SoundOptionsFrameCheckButton"..value.index]
|
||||
if SoundOptionsFrameCheckButton then
|
||||
S:HandleCheckBox(SoundOptionsFrameCheckButton)
|
||||
@@ -394,17 +391,17 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Interface Options Sliders
|
||||
for i, v in UIOptionsFrameSliders do
|
||||
for i in UIOptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["UIOptionsFrameSlider"..i])
|
||||
end
|
||||
|
||||
-- Video Options Sliders
|
||||
for i, v in OptionsFrameSliders do
|
||||
for i in OptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["OptionsFrameSlider"..i])
|
||||
end
|
||||
|
||||
-- Sound Options Sliders
|
||||
for i, v in SoundOptionsFrameSliders do
|
||||
for i in SoundOptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["SoundOptionsFrameSlider"..i])
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local pairs = pairs
|
||||
local unpack = unpack
|
||||
local find, format, match, split = string.find, string.format, string.match, string.split
|
||||
local find, format, match = string.find, string.format, string.match
|
||||
--WoW API / Variables
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
|
||||
@@ -4,7 +4,6 @@ local S = E:GetModule("Skins");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local pairs = pairs
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
@@ -5,7 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local find, match = string.find, string.match
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
Reference in New Issue
Block a user