Verified Commit 34e9e3dd authored by Repooc's avatar Repooc
Browse files

remove old stuff

parent 93325203
......@@ -84,8 +84,6 @@ function SLE:Initialize()
self.initialized = true
self:InitializeModules(); --Load Modules
SLE:CreateSplashScreen()
hooksecurefunc(E, "UpdateAll", SLE.UpdateAll)
hooksecurefunc(E, "UpdateMedia", SLE.UpdateMedia)
--Here goes installation script
......@@ -112,16 +110,6 @@ function SLE:Initialize()
if not E.private.sle.characterGoldsSorting[E.myrealm] then E.private.sle.characterGoldsSorting[E.myrealm] = {} end
EP:RegisterPlugin(AddOnName, GetOptions) --Registering as plugin
if SLE:IsFoolsDay() then
if IsAddOnLoaded('ElvUI_BenikUI') and E.db.benikui.general.splashScreen then
_G["BenikUISplashScreen"]:HookScript("OnHide", function() SLE:ShowSplashScreen() end)
elseif IsAddOnLoaded('ElvUI_BenikUI') and not E.db.benikui.general.splashScreen then
SLE:ShowSplashScreen()
else
SLE:ShowSplashScreen()
end
end
end
E.Libs.EP:HookInitialize(SLE, SLE.Initialize)
\ No newline at end of file
......@@ -534,40 +534,3 @@ function SLE:IsFoolsDay()
return false
end
end
function SLE:CreateSplashScreen()
local f = CreateFrame("Frame", "SLE_SplashScreen", E.UIParent)
f:Size(400, 200)
f:SetPoint("CENTER")
f:SetFrameStrata("TOOLTIP")
f:LevelUpBG()
f:SetAlpha(0)
f.logo = f:CreateTexture(nil, "OVERLAY")
f.logo:Size(240, 60)
f.logo:SetTexture([[Interface\AddOns\ElvUI_SLE\media\textures\SLE_Banner]])
f.logo:Point("TOP", f, "TOP", 0. - 80)
f.version = f:CreateFontString(nil, "OVERLAY")
f.version:FontTemplate(nil, 14, nil)
f.version:Point("TOP", f.logo, "BOTTOM", 0, -20)
f.version:SetText(L["SLE_BENIK_AF"])
end
local function HideSplashScreen()
SLE_SplashScreen:Hide()
E:Delay(0.5, function() assert(false, L["SLE_ERRORS_AF"][random(#L["SLE_ERRORS_AF"])]) end)
E.global.aprilFoolsSLE = true
end
local function FadeSplashScreen()
E:Delay(10, function()
E:UIFrameFadeOut(SLE_SplashScreen, 1, 1, 0)
SLE_SplashScreen.fadeInfo.finishedFunc = HideSplashScreen
end)
end
function SLE:ShowSplashScreen()
E:UIFrameFadeIn(SLE_SplashScreen, 2, 0, 1)
SLE_SplashScreen.fadeInfo.finishedFunc = FadeSplashScreen
end
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