Commit 4a872542 authored by Darth Predator's avatar Darth Predator
Browse files

Clear some stuff + locales

parent 12030a2c
......@@ -54,10 +54,8 @@ function SLE:ConfigCats() --Additional mover groups
E.ConfigModeLocalizedStrings["S&L"] = L["S&L: All"]
Toolkit.tinsert(E.ConfigModeLayouts, #(E.ConfigModeLayouts)+1, "S&L DT");
E.ConfigModeLocalizedStrings["S&L DT"] = L["S&L: Datatexts"]
-- if E.private.sle.backgrounds then
Toolkit.tinsert(E.ConfigModeLayouts, #(E.ConfigModeLayouts)+1, "S&L BG");
E.ConfigModeLocalizedStrings["S&L BG"] = L["S&L: Backgrounds"]
-- end
Toolkit.tinsert(E.ConfigModeLayouts, #(E.ConfigModeLayouts)+1, "S&L MISC");
E.ConfigModeLocalizedStrings["S&L MISC"] = L["S&L: Misc"]
end
......@@ -125,6 +123,8 @@ function SLE:Initialize()
self.initialized = true
self:InitializeModules(); --Load Modules
SLE:CreateSplashScreen()
hooksecurefunc(E, "UpdateAll", SLE.UpdateAll)
--Here goes installation script
......@@ -133,9 +133,6 @@ function SLE:Initialize()
Toolkit.print(Toolkit.format(L["SLE_LOGIN_MSG"], E["media"].hexvaluecolor, SLE.version))
end
--Remove this variable, will not give the option to disable this warning.
E.global.ignoreEnhancedIncompatible = nil
SLE:BuildGameMenu()
SLE:CyrillicsInit()
......@@ -145,4 +142,14 @@ function SLE:Initialize()
if not E.private.sle.characterGoldsSorting[E.myrealm] then E.private.sle.characterGoldsSorting[E.myrealm] = {} end
LibStub("LibElvUIPlugin-1.0"):RegisterPlugin(AddOnName, GetOptions) --Registering as plugin
if SLE:IsFoolsDay() then
if Toolkit.IsAddOnLoaded('ElvUI_BenikUI') and E.db.benikui.general.splashScreen then
_G["BenikUISplashScreen"]:HookScript("OnHide", function() SLE:ShowSplashScreen() end)
elseif Toolkit.IsAddOnLoaded('ElvUI_BenikUI') and not E.db.benikui.general.splashScreen then
SLE:ShowSplashScreen()
else
SLE:ShowSplashScreen()
end
end
end
\ No newline at end of file
......@@ -481,9 +481,12 @@ end
--New API
local function LevelUpBG(frame, topcolor, bottomcolor)
if not frame then return end
frame.bg = frame:CreateTexture(nil, 'BACKGROUND')
frame.bg:SetTexture([[Interface\LevelUp\LevelUpTex]])
frame.bg:SetPoint('CENTER')
local w, h = frame:GetSize()
frame.bg:SetSize(w,h)
frame.bg:SetTexCoord(0.00195313, 0.63867188, 0.03710938, 0.23828125)
frame.bg:SetVertexColor(1, 1, 1, 0.7)
......@@ -561,4 +564,50 @@ while object do
end
object = EnumerateFrames(object)
end
--AF stuff
function SLE:IsFoolsDay()
if T.find(date(), '03/15/') and not E.global.aprilFoolsSLE and not T.IsAddOnLoaded("ElvUI_SLE_Dev") then
return true;
else
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, 120)
f.logo:SetTexture([[Interface\AddOns\ElvUI_SLE\media\textures\SLE_Banner]])
f.logo:Point('TOP', f, 'TOP', 0. -60)
f.version = f:CreateFontString(nil, 'OVERLAY')
f.version:FontTemplate(nil, 14, nil)
f.version:Point('TOP', f.logo, 'BOTTOM')
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
\ No newline at end of file
......@@ -975,3 +975,23 @@ L["ELVUI_SLE_MISC"] = [=[BuG - for always hilariously breaking stuff
TheSamaKutra
The rest of TukUI community
]=]
L["SLE_BENIK_AF"] = [[Due to a high amount of stuff IRL, |cff9482c9Shadow & Light|r team took a vacation.
While we are away |cfffe7b2cBenik|r was so kind to take care of our work and provide support for |cff9482c9S&L|r!
If you encounter any problems or errors with |cff9482c9S&L|r please post on tukui.org in BenikUI section.
And remember: if anything breaks it's all Benik's fault! Use hashtag |cfffe7b2c#IBlameBenik|r when posting about errors!]]
L["SLE_ERRORS_AF"] = {
"Apparently Merathilis drank too much and managed to moonfire spam our power conduit! You need to fix it immediately!",
"We are happy to announce that our #IBlameBenik campaign is getting more successful each minute! Don't forget to blame Benik as well!",
"WARNING! Darth stole a nuke button and now demands the ransom of 500 million gold and several draenei maids. Hide in the closest bomb shelter and prepare to play Fallout IRL!",
"There is something wrong with your interface. Standby, we are attempting to fix this! We don't take any responsibility in case the things get even worse.",
"The Holy Order of Imperial Inquisition found heretical materials on your PC! Thus your house and the planet will be subjected to Exterminatus in The Name Of The Emperor!",
"BEARS! The heck are bears doing in your UI?!",
"Benik changed the locales around a little bit. We hope you can speak Turkish!",
"The ice stone has melted! Our servers are flooded, sorry for the inconvenience",
"YOU ARE NOT PREPARED!!!",
"ElvUI encountered an expected amount of unreasonable responses from Blizzard servers and will be closed soon. Please contact your closest goblin engineer for additional info.",
"You no take candle! Or we’ll tell Benik!",
"1 error, 1 prayer, help raise funds for drunk coding",
}
\ No newline at end of file
......@@ -963,3 +963,23 @@ L["ELVUI_SLE_MISC"] = [=[BuG - for always hilariously breaking stuff
TheSamaKutra
The rest of TukUI community
]=]
L["SLE_BENIK_AF"] = [[Due to a high amount of stuff IRL, |cff9482c9Shadow & Light|r team took a vacation.
While we are away |cfffe7b2cBenik|r was so kind to take care of our work and provide support for |cff9482c9S&L|r!
If you encounter any problems or errors with |cff9482c9S&L|r please post on tukui.org in BenikUI section.
And remember: if anything breaks it's all Benik's fault! Use hashtag |cfffe7b2c#IBlameBenik|r when posting about errors!]]
L["SLE_ERRORS_AF"] = {
"Apparently Merathilis drank too much and managed to moonfire spam our power conduit! You need to fix it immediately!",
"We are happy to announce that our #IBlameBenik campaign is getting more successful each minute! Don't forget to blame Benik as well!",
"WARNING! Darth stole a nuke button and now demands the ransom of 500 million gold and several draenei maids. Hide in the closest bomb shelter and prepare to play Fallout IRL!",
"There is something wrong with your interface. Standby, we are attempting to fix this! We don't take any responsibility in case the things get even worse.",
"The Holy Order of Imperial Inquisition found heretical materials on your PC! Thus your house and the planet will be subjected to Exterminatus in The Name Of The Emperor!",
"BEARS! The heck are bears doing in your UI?!",
"Benik changed the locales around a little bit. We hope you can speak Turkish!",
"The ice stone has melted! Our servers are flooded, sorry for the inconvenience",
"YOU ARE NOT PREPARED!!!",
"ElvUI encountered an expected amount of unreasonable responses from Blizzard servers and will be closed soon. Please contact your closest goblin engineer for additional info.",
"You no take candle! Or we’ll tell Benik!",
"1 error, 1 prayer, help raise funds for drunk coding",
}
\ No newline at end of file
......@@ -948,3 +948,22 @@ L["ELVUI_SLE_MISC"] = [=[BuG - за постоянные и ржачные ме
TheSamaKutra
Сообщество Tukui
]=]
L["SLE_BENIK_AF"] = [[В связи с большим количеством дел ИРЛ, команда |cff9482c9Shadow & Light|r ушла в отпуск.
Но пока нас нет, |cfffe7b2cBenik|r был настолько добр, что согласился заняться поддержкой |cff9482c9S&L|r!
Если вы столкнетесь с какими-либо ошибками или проблемами в |cff9482c9S&L|r, оставьте сообщение на форуме tukui.org в секции BenikUI.
И помните: если что-то сломалось, то виноват в этом Benik! Используйте хэштэг |cfffe7b2c#IBlameBenik|r, когда постите об ошибках!]]
L["SLE_ERRORS_AF"] = {
"Очевидно Merathilis перепил и ухитрпился заспамить мунфаером нашу силовую линию! Вы должны немедленно ее починить!",
"Мы рады сообщить, что наша кампания #IBlameBenik продвигается успешно! И не забудьте тоже обвинить Benik'а во всем!",
"АХТУНГ! Дарт спер ядерную нопку и требует выкуп в размере 500 миллионов золотых и нескольких гоничных-дренеек. Спрячьтесь в ближайшем бомбоубежище и приготовьтесь играть в Fallout в реале!",
"С вашим интерфейсом что-то не так. Ожидайте, мы пытаемся все починить! Мы не несем ответственности, если все станет еще хуже.",
"Священный Орден Имперской Инквизиции обнаружил еретические материалы на вашем ПК! Ваш дом и вся планета будет подвергнута Экстерминатусу во имя Императора!",
"МЕДВЕДИ! Какого черта в твоем интерфейсе делают медведи?!",
"Benik немного поправил локализацию. Надеемся, что вы умеете говорить по турецки!",
"Камень льда растаял! Наши сервера затопило. Приносим извинения за неудобства.",
"ВЫ НЕ ГОТОВЫ!!!",
"ElvUI обнаружил обычное количество фиговых ответов от сервера Blizzard и будет закрыт. Свяжитесь с ближайшим гоблином инженером для получения дополнительной информации.",
"Не трогай свечу! Или мы пожалуемся Benik'у!",
}
\ No newline at end of file
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