Commit 4630d5e2 authored by Azilroka's avatar Azilroka

Drop ElvUI/Tukui Optional Dependency so it won't break AddOn Load Order

parent e279fb29
## Interface: 80205
## Title: |cff1784d1AddOnSkins|r
## Version: 4.32
## Version: 4.33
## Author: Azilroka, NihilisticPandemonium
## SavedVariables: AddOnSkinsDB, AddOnSkinsDS
## OptionalDeps: ElvUI, Tukui
Load_AddOnSkins.xml
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('ElvUI') then return end
local E = unpack(ElvUI)
local E
-- Cache global variables
--Lua functions
......@@ -72,6 +72,11 @@ function AS:GetElvUIBlizzardSkinOption(skin)
end
function AS:UpdateMedia()
if not ElvUI then return end
if not E then
E = unpack(ElvUI)
end
AS.Blank = AS.LSM:Fetch('background', 'ElvUI Blank')
AS.Font = AS.LSM:Fetch('font', E.db.general.font)
AS.NormTex = AS.LSM:Fetch('statusbar', E.private.general.normTex)
......
local AS, ASL = unpack(AddOnSkins)
if not AS:CheckAddOn('Tukui') then return end
local T, C = Tukui:unpack()
local T, C
function AS:UpdateMedia()
if not Tukui then return end
if not T then
T, C = Tukui:unpack()
end
AS.HideShadows = C['General']['HideShadows']
AS.DataTextFontSize = 12 -- T['DataTexts']['Size']
......
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('ElvUI') then return end
local E, L = unpack(ElvUI)
local E, L
-- Cache global variables
--Lua functions
local _G = _G
......@@ -16,6 +15,10 @@ local EmbedSystem_MainWindow, EmbedSystem_LeftWindow, EmbedSystem_RightWindow
-- GLOBALS:
function AS:EmbedSystemHooks()
if not E then
E, L = unpack(ElvUI)
end
RightChatToggleButton, LeftChatToggleButton, RightChatPanel, LeftChatPanel, RightChatTab, LeftChatTab, RightChatDataPanel = _G.RightChatToggleButton, _G.LeftChatToggleButton, _G.RightChatPanel, _G.LeftChatPanel, _G.RightChatTab, _G.LeftChatTab, _G.RightChatDataPanel
EmbedSystem_MainWindow, EmbedSystem_LeftWindow, EmbedSystem_RightWindow = _G.EmbedSystem_MainWindow, _G.EmbedSystem_LeftWindow, _G.EmbedSystem_RightWindow
......
......@@ -4,12 +4,10 @@ local AS = unpack(AddOnSkins)
-- Cache global variables
--Lua functions
local _G = _G
local ipairs, pairs, select, type, unpack = ipairs, pairs, select, type, unpack
local pairs, select, unpack = pairs, select, unpack
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local PaperDollBgDesaturate = PaperDollBgDesaturate
local UnitSex = UnitSex
local HasPetUI = HasPetUI
local GetPetHappiness = GetPetHappiness
-- GLOBALS:
......
if AddOnSkins.Retail then return end
local AS = unpack(AddOnSkins)
if AS:CheckAddOn('Tukui') then
Tukui[1].Miscellaneous.DropDown.Skin = function() end
end
function AS:Blizzard_Others()
AS:SetTemplate(CinematicFrameCloseDialog)
CinematicFrameCloseDialog:SetScale(UIParent:GetScale())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment