From 76927e2621573a438a32e2e395bf936fff08a560 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 9 Aug 2016 18:47:13 +0300 Subject: [PATCH] Stuff --- ElvUI_SLE/defaults/profile.lua | 1 + ElvUI_SLE/locales/english.lua | 2 ++ ElvUI_SLE/locales/russian.lua | 3 ++- ElvUI_SLE/modules/minimap/locationbar.lua | 12 ++++++++---- ElvUI_SLE/options/minimap/locpanel_c.lua | 6 ++++++ 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua index bbb2af9..15b8511 100644 --- a/ElvUI_SLE/defaults/profile.lua +++ b/ElvUI_SLE/defaults/profile.lua @@ -491,6 +491,7 @@ P["sle"] = { ["customColor"] = {r = 1, g = 1, b = 1 }, ["portals"] = { ["enable"] = true, + ["HSplace"] = true, ["customWidth"] = false, ["customWidthValue"] = 200, ["justify"] = "LEFT", diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index e7d8fd8..20ac05a 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -558,6 +558,8 @@ L["Right click on the location panel will bring up a menu with available options L["Custom Width"] = true L["By default menu's width will be equal to the location panel width. Checking this option will allow you to set own width."] = true L["Justify Text"] = true +L["Hearthstone Location"] = true +L["Show the name on location your Heathstone is bound to."] = true --Miscs diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index 64033e5..4b547e2 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -550,7 +550,8 @@ L["Right click on the location panel will bring up a menu with available options L["Custom Width"] = "Своя ширина" L["By default menu's width will be equal to the location panel width. Checking this option will allow you to set own width."] = "По умолчанию ширина меню будет равна ширине панели. Включение данной опции позволит установить свою ширину." L["Justify Text"] = "Выравнивание тектса" - +L["Hearthstone Location"] = "Привязка камня" +L["Show the name on location your Heathstone is bound to."] = "Показывать имя локации, к которой привязан камень возвращения." --Miscs L["Error Frame"] = "Фрейм ошибок" diff --git a/ElvUI_SLE/modules/minimap/locationbar.lua b/ElvUI_SLE/modules/minimap/locationbar.lua index 0e1f6b5..ebbdcce 100644 --- a/ElvUI_SLE/modules/minimap/locationbar.lua +++ b/ElvUI_SLE/modules/minimap/locationbar.lua @@ -315,13 +315,17 @@ function LP:ItemList(check) else local tmp = {} local cd = DD:GetCooldown("Item", data.secure.ID) + local HSplace = "" + if LP.db.portals.HSplace and data.secure.ID == 6948 then + HSplace = " - "..GetBindLocation() + end + E:CopyTable(tmp, data) if cd then - E:CopyTable(tmp, data) - tmp.text = tmp.text..T.format(LP.CDformats[LP.db.portals.cdFormat], cd) - T.tinsert(LP.MainMenu, tmp) + tmp.text = tmp.text..HSplace..T.format(LP.CDformats[LP.db.portals.cdFormat], cd) else - T.tinsert(LP.MainMenu, data) + tmp.text = tmp.text..HSplace end + T.tinsert(LP.MainMenu, tmp) end end end diff --git a/ElvUI_SLE/options/minimap/locpanel_c.lua b/ElvUI_SLE/options/minimap/locpanel_c.lua index 6c4ecd1..1ce2363 100644 --- a/ElvUI_SLE/options/minimap/locpanel_c.lua +++ b/ElvUI_SLE/options/minimap/locpanel_c.lua @@ -159,6 +159,12 @@ local function configTable() ["DEFAULT_ICONFIRST"] = [[( |TInterface\FriendsFrame\StatusIcon-Away:16|t10m)]], }, }, + HSplace = { + type = "toggle", + order = 6, + name = L["Hearthstone Location"], + desc = L["Show the name on location your Heathstone is bound to."], + }, }, }, fontGroup = { -- 1.7.9.5