Added ElvUI's version check
Darthpred [07-04-12 - 11:53]
Added ElvUI's version check
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"