From dac6c106177e1e48d35d7ac9fffbb5d2af17abbb Mon Sep 17 00:00:00 2001 From: Michael Tindal Date: Mon, 1 Aug 2016 12:10:29 -0700 Subject: [PATCH] Tsk tsk. --- ElvUI_SLE/core/core.lua | 1 + ElvUI_SLE/modules/enhancedshdows.lua | 1 + ElvUI_SLE/modules/vehicle.lua | 4 +++- ElvUI_SLE/options/enhancedshadows_c.lua | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/core/core.lua b/ElvUI_SLE/core/core.lua index 28de8f2..e7761c8 100644 --- a/ElvUI_SLE/core/core.lua +++ b/ElvUI_SLE/core/core.lua @@ -103,6 +103,7 @@ local _CompList = { "ElvUI_Enhanced", "DejaCharacterStats", "ElvUI_ExtraActionBars", + "ElvUI_KitUI", } for i = 1, #_CompList do if GetAddOnEnableState(E.myname, _CompList[i]) == 0 then SLE._Compatibility[_CompList[i]] = nil else SLE._Compatibility[_CompList[i]] = true end diff --git a/ElvUI_SLE/modules/enhancedshdows.lua b/ElvUI_SLE/modules/enhancedshdows.lua index a4d9b3b..4193e7b 100644 --- a/ElvUI_SLE/modules/enhancedshdows.lua +++ b/ElvUI_SLE/modules/enhancedshdows.lua @@ -1,4 +1,5 @@ local SLE, T, E, L, V, P, G = unpack(select(2, ...)) +if SLE._Compatibility["ElvUI_KitUI"] then return end local ES = SLE:NewModule('EnhancedShadows', 'AceEvent-3.0') local AB, UF = SLE:GetElvModules("ActionBars", "UnitFrames") local ClassColor = RAID_CLASS_COLORS[E.myclass] diff --git a/ElvUI_SLE/modules/vehicle.lua b/ElvUI_SLE/modules/vehicle.lua index aeca141..0fae8ce 100644 --- a/ElvUI_SLE/modules/vehicle.lua +++ b/ElvUI_SLE/modules/vehicle.lua @@ -2,7 +2,7 @@ local SLE, T, E, L, V, P, G = unpack(select(2, ...)) local EVB = SLE:NewModule("EnhancedVehicleBar") local AB = E:GetModule("ActionBars"); local LAB = LibStub("LibActionButton-1.0-ElvUI") -local ES = SLE:GetModule("EnhancedShadows") +local ES --GLOBALS: CreateFrame, hooksecurefunc, UIParent local _G = _G local RegisterStateDriver = RegisterStateDriver @@ -112,6 +112,8 @@ function EVB:Initialize() if not SLE.initialized then return end if not E.private.sle.vehicle.enable or not E.private.actionbar.enable then return end; + ES = SLE._Compatibility["ElvUI_KitUI"] and E:GetModule("EnhancedShadows") or SLE:GetModule("EnhancedShadows") + local visibility = "[petbattle] hide; [vehicleui][overridebar][shapeshift][possessbar] hide;" local page = T.format("[vehicleui] %d; [possessbar] %d; [overridebar] %d; [shapeshift] 13;", GetVehicleBarIndex(), GetVehicleBarIndex(), GetOverrideBarIndex()); local bindButtons = "ACTIONBUTTON"; diff --git a/ElvUI_SLE/options/enhancedshadows_c.lua b/ElvUI_SLE/options/enhancedshadows_c.lua index ab58ff6..517f98e 100644 --- a/ElvUI_SLE/options/enhancedshadows_c.lua +++ b/ElvUI_SLE/options/enhancedshadows_c.lua @@ -1,4 +1,5 @@ local SLE, T, E, L, V, P, G = unpack(select(2, ...)) +if SLE._Compatibility["ElvUI_KitUI"] then return end local ES = SLE:GetModule("EnhancedShadows") local function configTable() -- 1.7.9.5