From 5f870d2e12ab92decc9214549a3ff9449b4cbdf1 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 30 Jun 2012 16:51:43 +0400 Subject: [PATCH] Moved options for energy text under unitframes part --- ElvUI_SLE/locales/english.lua | 13 ++++--------- ElvUI_SLE/locales/russian.lua | 12 ++++-------- ElvUI_SLE/modules/unitframes/options.lua | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index 7fc73ff..0644b52 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -64,11 +64,14 @@ L["PvP Position"] = true L["Set the point to show pvp text"] = true L["Combat Position"] = true - --Classbar offset L["Classbar Offset"] = true L["This options will allow you to detach your classbar from player's frame and move it in other location."] = true +--Balance Power Text +L["Balance Power Text"] = true +L["Show/hide the text with exact number of your Solar/Lunar energy on your Classbar."] = true + ---------------- --Exp/Rep Text-- ---------------- @@ -254,14 +257,6 @@ L["Sets X position of Raid Utility button."] = true L["Y Position"] = true L["Sets Y position of Raid Utility button."] = true ------------------------ ---Balance Power Frame-- ------------------------ -L["Druid"] = true -L["Druid spesific options"] = true -L["Balance Power Frame"] = true -L["Show/Hide the frame with exact number of your Solar/Lunar energy."] = true - ----------- --Credits-- ----------- diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index cdb4245..fbb2364 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -60,6 +60,10 @@ L['Set the point to show combat icon'] = "Устанавливает позиц L["Classbar Offset"] = "Отступ полосы класса" L["This options will allow you to detach your classbar from player's frame and move it in other location."] = "Эти опции позволят вам открепить полосу класса от рамки игрока и передвинуть ее в другое место." +--Balance Power Text +L["Balance Power Text"] = "Текст энергии баланса" +L["Show/hide the text with exact number of your Solar/Lunar energy on your Classbar."] = "Показать/скрыть текст с точным значением Лунной/Солнечной энергии на полосе класса." + ---------------- --Exp/Rep Text-- ---------------- @@ -236,14 +240,6 @@ L['Sets X position of Raid Utility button.'] = "Задает координат L['Y Position'] = "Позиция Y" L['Sets Y position of Raid Utility button.'] = "Задает координаты Управления рейдом по оси Y." ------------------------ ---Balance Power Frame-- ------------------------ -L["Druid"] = "Друид" -L["Druid spesific options"] = "Настройки для друидов" -L["Balance Power Frame"] = "Фрейм Энергии Баланса" -L["Show/hide the frame with exact number of your Solar/Lunar energy."] = "Показать/скрыть фрейм с точным значением Лунной/Солнечной энергии." - ----------- --Credits-- ----------- diff --git a/ElvUI_SLE/modules/unitframes/options.lua b/ElvUI_SLE/modules/unitframes/options.lua index 48dcebe..269bc59 100644 --- a/ElvUI_SLE/modules/unitframes/options.lua +++ b/ElvUI_SLE/modules/unitframes/options.lua @@ -113,6 +113,25 @@ E.Options.args.sle.args.unitframes = { }, } +if E.myclass == "DRUID" then +E.Options.args.sle.args.unitframes.args.druid = { + order = 7, + type = 'group', + name = L["Balance Power Text"], + guiInline = true, + args = { + bpenable = { + order = 1, + type = "toggle", + name = L["Enable"], + desc = L["Show/hide the tetx with exact number of your Solar/Lunar energy on your Classbar."], + get = function(info) return E.db.sle.bpenable end, + set = function(info, value) E.db.sle.bpenable = value; E:GetModule('SLE'):BPUpdate() end + }, + }, +} +end + if E.myclass == "PALADIN" or E.myclass == "WARLOCK" or E.myclass == "DEATHKNIGHT" or E.myclass == "SHAMAN" or E.myclass == "DRUID" then E.Options.args.sle.args.unitframes.args.classbar = { order = 6, -- 1.7.9.5