From 299ac63c20d5e2cf3e4518c00397ec38e0b8c224 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 4 Jul 2012 15:53:27 +0400 Subject: [PATCH] Added ElvUI's version check --- ElvUI_SLE/ElvUI_SLE.lua | 13 +++++++++++++ ElvUI_SLE/locales/english.lua | 1 + ElvUI_SLE/locales/russian.lua | 1 + 3 files changed, 15 insertions(+) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 2aab872..8d20cd2 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -18,6 +18,19 @@ function SLE:UpdateThings() E:GetModule('UnitFrames'):Update_CombatIndicator() end +StaticPopupDialogs["VERSION_MISMATCH"] = { + text = L["Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org."], + button1 = CLOSE, + timeout = 0, + whileDead = 1, + preferredIndex = 3, +} + +--Showing warning message about too old versions of ElvUI + if tonumber(E.version) < 3.86 then + StaticPopup_Show("VERSION_MISMATCH") + end + E.UpdateAllSLE = E.UpdateAll function E:UpdateAll() E.UpdateAllSLE(self) diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 902e9a3..5fe4809 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -184,4 +184,5 @@ L["X Position"] = "X Position" L["Xp-Rep Text"] = "Xp-Rep Text" L["XP-Rep Text mod by Benik"] = "XP-Rep Text mod by Benik" L["You can now choose if you what to use one of authors' set of options. This will change not only the positioning of some elements but also change a bunch of other options."] = "You can now choose if you what to use one of authors' set of options. This will change not only the positioning of some elements but also change a bunch of other options." +L["Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org."] = "Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org." L["Y Position"] = "Y Position" diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index 16252dd..219de21 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -179,4 +179,5 @@ L["X Position"] = "Позиция X" L["Xp-Rep Text"] = "Текст Опыта/Репутации" L["XP-Rep Text mod by Benik"] = "Мод текста опыта/репутации от Benik'а" L["You can now choose if you what to use one of authors' set of options. This will change not only the positioning of some elements but also change a bunch of other options."] = "Вы можете выбрать использование одного из набора конфигурации от авторов. Это изменит не только расположение ваших рамок и панелей, но и некоторого количества других опций." +L["Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org."] = "Ваша версия ElvUI старее, чем рекомендованная для использования с редакцией Тень и Свет. Пожалуйста, скачайте последнюю версию с tukui.org." L["Y Position"] = "Позиция Y" -- 1.7.9.5