From 7ddb42daa48f129225d1b07bec9b0623d0a73884 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 21 Jul 2016 14:45:47 +0300 Subject: [PATCH] Little bit of Install tweaking --- ElvUI_SLE/core/install.lua | 38 ++++++++++++++++++++++++++------------ ElvUI_SLE/locales/english.lua | 6 ++++++ ElvUI_SLE/locales/russian.lua | 6 ++++++ 3 files changed, 38 insertions(+), 12 deletions(-) diff --git a/ElvUI_SLE/core/install.lua b/ElvUI_SLE/core/install.lua index 712a7da..056eab5 100644 --- a/ElvUI_SLE/core/install.lua +++ b/ElvUI_SLE/core/install.lua @@ -4,6 +4,7 @@ PI.SLE_Auth = "" PI.SLE_Word = "" local locale = GetLocale() +--GLOBALS: SkadaDB, Skada, xCTSavedDB, xCT_Plus local _G = _G local ENABLE, DISABLE, NONE = ENABLE, DISABLE, NONE local SetCVar = SetCVar @@ -136,20 +137,21 @@ local function DarthSetup() end --Bags do - E.db["bags"]["junkIcon"] = true - E.db["bags"]["countFont"] = "Univers" + E.db["bags"]["yOffsetBank"] = 175 E.db["bags"]["itemLevelFont"] = "PT Sans Narrow" - E.db["bags"]["bagSize"] = 33 - E.db["bags"]["bankWidth"] = 505 - E.db["bags"]["itemLevelThreshold"] = 650 - E.db["bags"]["bankSize"] = 33 - E.db["bags"]["countFontOutline"] = "OUTLINE" + E.db["bags"]["currencyFormat"] = "ICON" + E.db["bags"]["yOffset"] = 175 E.db["bags"]["itemLevelFontSize"] = 11 - E.db["bags"]["itemLevelFontOutline"] = "OUTLINE" - E.db["bags"]["bagWidth"] = 505 - E.db["bags"]["yOffsetBank"] = 175 E.db["bags"]["alignToChat"] = false - E.db["bags"]["yOffset"] = 175 + E.db["bags"]["bagWidth"] = 505 + E.db["bags"]["countFont"] = "Univers" + E.db["bags"]["countFontOutline"] = "OUTLINE" + E.db["bags"]["bankSize"] = 33 + E.db["bags"]["bankWidth"] = 505 + E.db["bags"]["itemLevelFontOutline"] = "OUTLINE" + E.db["bags"]["bagSize"] = 33 + E.db["bags"]["junkIcon"] = true + E.db["bags"]["itemLevelThreshold"] = 650 end --Chat do @@ -821,9 +823,21 @@ local function SetupCVars() _G["PluginInstallStepComplete"]:Show() end +E.PopupDialogs['SLE_INSTALL_SETTINGS_LAYOUT'] = { + text = L["SLE_INSTALL_SETTINGS_LAYOUT_TEXT"], + button1 = YES, + button2 = NO, + OnAccept = function() + if PI.SLE_Auth == "DARTH" then + DarthSetup() + end + end, + OnCancel = E.noop; +} + local function StartSetup() if PI.SLE_Auth == "DARTH" then - DarthSetup() + E:StaticPopup_Show("SLE_INSTALL_SETTINGS_LAYOUT") elseif PI.SLE_Auth == "REPOOC" then end diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 2c4badc..2cb607b 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -29,6 +29,8 @@ If you choose to not setup any options through this config, click Skip Process b Note that steps to the right marked with * are optional steps unavailable without selecting something in previous steps.]] L["This will enable S&L Armory mode components that will show more detailed information at a quick glance on the toons you inspect or your own character."] = true L["SLE_ARMORY_INSTALL"] = "Enable S&L Armory\n(Detailed Character & Inspect frames)." +L["AFK Mode in |cff9482c9Shadow & Light|r is additional settings/elements for standard |cff1784d1ElvUI|r AFK screen."] = true +L["This option is bound to character and requires a UI reload to take effect."] = true L["Shadow & Light Imports"] = true L["You can now choose if you want to use one of the authors' set of options. This will change the positioning of some elements as well of other various options."] = true L["SLE_Install_Text_AUTHOR"] = [=[This step is optional and only to be used if you are wanting to use one of our configurations. In some cases settings may differ depending on layout options you chose in ElvUI installation. @@ -53,6 +55,8 @@ L["Moving Frames"] = true L["Import Profile"] = true L["AFK Mode"] = true L["You have selected to use %s and role %s."] = true +L["SLE_INSTALL_SETTINGS_LAYOUT_TEXT"] = [[This action can cause you to loose some of your settings. +Continue?]] --Config replacements L["This option have been disabled by Shadow & Light. To return it you need to disable S&L's option. Click here to see it's location."] = true @@ -100,6 +104,8 @@ L["SLE_CYR_DEVCOM_DESC"] = [[Allows the usage of these commands with ru input: - /enableblizzard These are usually used for developing and testing purposes or are extremely rare used by general user.]] +L["Modules"] = true +L["Options for different S&L modules."] = true --Config groups L["S&L: All"] = true diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index 62f395b..94c36d1 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -28,6 +28,8 @@ L["SLE_INSTALL_WELCOME"] = [[Этот установщик позволит ва Заметьте, что шаги отмеченные * являются опциональными и не будут отображены без соблюдения определенных условий в предыдущих шагах.]] L["This will enable S&L Armory mode components that will show more detailed information at a quick glance on the toons you inspect or your own character."] = "Активирует компоненты оружейной Shadow & Light, которые покажут вам более детальную информацию о вашем персонаже или игроке, которого вы осматриваете." L["SLE_ARMORY_INSTALL"] = "Включить режим оружейной S&L\n(Детализированные окна персонажа и осмотра)." +L["AFK Mode in |cff9482c9Shadow & Light|r is additional settings/elements for standard |cff1784d1ElvUI|r AFK screen."] = "Режим АФК в |cff9482c9Shadow & Light|r это дополнительные настройки/элементы стандартного экрана отсутствия |cff1784d1ElvUI|r." +L["This option is bound to character and requires a UI reload to take effect."] = "Эта опция привязана к персонажу и требует перезагрузки для активации." L["Shadow & Light Imports"] = "Импорт Shadow & Light" L["You can now choose if you want to use one of the authors' set of options. This will change the positioning of some elements as well of other various options."] = "Вы можете использовать набор настроек, используемый одним из представленных людей. Будут изменены положения элементов и другие настройки." L["SLE_Install_Text_AUTHOR"] = [=[Этот шаг опционален и должен использоваться только в случае, если вы собираетесь использовать одну из наших конфигурацй. В зависимости от выбланного расположения в установке ElvUI результат может отличться. @@ -50,6 +52,8 @@ L["|cff1784d1%s|r role was chosen"] = 'Была выбрана роль |cff1784 L["Import Profile"] = "Импорт профиля" L["AFK Mode"] = "Режим АФК" L["You have selected to use %s and role %s."] = "Вы выбрали %s для роли %s." +L["SLE_INSTALL_SETTINGS_LAYOUT_TEXT"] = [[Это действие может привести к потере некоторых ваших настроек. +Продолжить?]] --Config replacements L["This option have been disabled by Shadow & Light. To return it you need to disable S&L's option. Click here to see it's location."] = "Shadow & Light отключил эту опцию. Для ее возвращения нужно отключить соответственную опцию в S&L. Нажмите для перехода к ней." @@ -97,6 +101,8 @@ L["SLE_CYR_DEVCOM_DESC"] = [[Позволяет использование сл - /enableblizzard Они обычно используются с целью тестирования или разработки и крайне редко применяются среднестатистическим игроком.]] +L["Modules"] = "Модули" +L["Options for different S&L modules."] = "Опции различных модулей S&L." --Config groups L["S&L: All"] = "S&L: Все" -- 1.7.9.5