Quantcast

Inspect message option and missing locales

Darth Predator [08-03-17 - 23:16]
Inspect message option and missing locales
Filename
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/german.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/modules/Armory/Config.lua
ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
ElvUI_SLE/modules/Armory/InspectArmory/Profile.lua
ElvUI_SLE/modules/backgrounds.lua
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index cc24fbe..fbc6be7 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -168,6 +168,10 @@ L["Only Relevant Stats"] = true
 L["Show only those primary stats relevant to your spec."] = true
 L["SLE_ARMORY_POINTS_AVAILABLE"] = "%s Point(s) Available!!"
 L["Show ElvUI skin's backdrop overlay"] = true
+L["Try inspecting %s. Sometimes this work will take few second for waiting server's response."] = true
+L['Inspect is canceled because target was changed or lost.'] = true
+L["You can't inspect while dead."] = true
+L["Show Inspection message in chat"] = true

 --AFK
 L["You Are Away From Keyboard for"] = true
diff --git a/ElvUI_SLE/locales/german.lua b/ElvUI_SLE/locales/german.lua
index 4c3b258..2e1ae77 100644
--- a/ElvUI_SLE/locales/german.lua
+++ b/ElvUI_SLE/locales/german.lua
@@ -168,6 +168,10 @@ L["Only Relevant Stats"] = "Nur relevante Werte"
 L["Show only those primary stats relevant to your spec."] = "Zeigt nur primäre Werte die relevant für deinen Spec sind."
 L["SLE_ARMORY_POINTS_AVAILABLE"] = "%s Punkt(e) verfügbar!!"
 L["Show ElvUI skin's backdrop overlay"] = "Zeigt ElvUI-Skin Hintergrund Overlay"
+L["Try inspecting %s. Sometimes this work will take few second for waiting server's response."] = true
+L['Inspect is canceled because target was changed or lost.'] = true
+L["You can't inspect while dead."] = true
+L["Show Inspection message in chat"] = true

 --AFK
 L["You Are Away From Keyboard for"] = "Du bist nicht an der Tastatur für"
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index b43b8a6..56a2893 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -167,6 +167,10 @@ L["Only Relevant Stats"] = "Только подходящие"
 L["Show only those primary stats relevant to your spec."] = "Отображает только те основные характеристики, что подходят вашей текущей специализации."
 L["SLE_ARMORY_POINTS_AVAILABLE"] = "Очков доступно: %s"
 L["Show ElvUI skin's backdrop overlay"] = "Отображать фон скина ElvUI"
+L["Try inspecting %s. Sometimes this work will take few second for waiting server's response."] = "Осматриваю %s. Можеть занять несколько секунд ожидания ответа сервера."
+L['Inspect is canceled because target was changed or lost.'] = "Осмотр отменет, т.к. цель была изменена или потеряна."
+L["You can't inspect while dead."] = "Мертвые не осматривают."
+L["Show Inspection message in chat"] = "Отображать сообщение об осмотре в чате."

 --AFK
 L["You Are Away From Keyboard for"] = "Вы отошли на"
diff --git a/ElvUI_SLE/modules/Armory/Config.lua b/ElvUI_SLE/modules/Armory/Config.lua
index e9c939b..842d502 100644
--- a/ElvUI_SLE/modules/Armory/Config.lua
+++ b/ElvUI_SLE/modules/Armory/Config.lua
@@ -725,10 +725,18 @@ local function LoadArmoryConfigTable()
 					end,
 					disabled = function() return not E.db.sle.Armory.Inspect.Enable or not E.db.sle.Armory.Inspect.NoticeMissing end,
 				},
+				InspectMessage = {
+					type = 'toggle',
+					name = L["Show Inspection message in chat"],
+					order = 3,
+					disabled = function() return not E.db.sle.Armory.Inspect.Enable end,
+					get = function() return E.db.sle.Armory.Inspect.InspectMessage end,
+					set = function(_, value) E.db.sle.Armory.Inspect.InspectMessage = value end,
+				},
 				Backdrop = {
 					type = 'group',
 					name = L["Backdrop"],
-					order = 3,
+					order = 4,
 					args = {
 						SelectedBG = {
 							type = 'select',
diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
index 54cdfe8..38a55d4 100644
--- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
+++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
@@ -1724,7 +1724,7 @@ IA.InspectUnit = function(UnitID)
 		IA:RegisterEvent('INSPECT_READY')
 		IA:RegisterEvent('INSPECT_HONOR_UPDATE')

-		SLE:Print(format(L["Try inspecting %s. Sometimes this work will take few second for waiting server's response."], '|c'..RAID_CLASS_COLORS[IA.CurrentInspectData.Class].colorStr..IA.CurrentInspectData.Name..(IA.CurrentInspectData.Realm and '-'..IA.CurrentInspectData.Realm or '')..'|r')..(UnitID == 'mouseover' and ' '..L['Mouseover Inspect must hold your mouse position until inspect is over.'] or ''))
+		if E.db.sle.Armory.Inspect.InspectMessage then SLE:Print(format(L["Try inspecting %s. Sometimes this work will take few second for waiting server's response."], '|c'..RAID_CLASS_COLORS[IA.CurrentInspectData.Class].colorStr..IA.CurrentInspectData.Name..(IA.CurrentInspectData.Realm and '-'..IA.CurrentInspectData.Realm or '')..'|r')..(UnitID == 'mouseover' and ' '..L['Mouseover Inspect must hold your mouse position until inspect is over.'] or '')) end
 		IA.Inspector:Show()

 		return true
diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/Profile.lua b/ElvUI_SLE/modules/Armory/InspectArmory/Profile.lua
index 4c7b84b..4a5336f 100644
--- a/ElvUI_SLE/modules/Armory/InspectArmory/Profile.lua
+++ b/ElvUI_SLE/modules/Armory/InspectArmory/Profile.lua
@@ -10,6 +10,7 @@ P.sle.Armory.Inspect = {

 	NoticeMissing = true,
 	MissingIcon = true,
+	InspectMessage = true,

 	Backdrop = {
 		SelectedBG = 'Space',
diff --git a/ElvUI_SLE/modules/backgrounds.lua b/ElvUI_SLE/modules/backgrounds.lua
index c9d1f89..cbe9392 100644
--- a/ElvUI_SLE/modules/backgrounds.lua
+++ b/ElvUI_SLE/modules/backgrounds.lua
@@ -68,7 +68,7 @@ end
 function BG:CreateAndUpdateFrames()
 	for i = 1, 4 do
 		if not BG["Frame_"..i] then BG["Frame_"..i] = self:CreateFrame(i) BG:Positions(i) end
-				BG:FramesSize(i)
+		BG:FramesSize(i)
 		BG:FrameTemplate(i)
 		BG:Alpha(i)
 		if not E.CreatedMovers["SLE_BG_"..i.."_Mover"] then E:CreateMover(BG["Frame_"..i], "SLE_BG_"..i.."_Mover", L["SLE_BG_"..i], nil, nil, nil, "S&L,S&L BG") end