Quantcast

Another auto work orders options

Darthpred [06-24-15 - 11:25]
Another auto work orders options
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/modules/garrison.lua
ElvUI_SLE/options/garrison_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index e141c33..88d8106 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -440,6 +440,7 @@ P['sle'] = {
 		['autoOrder'] = false,
 		['autoWar'] = false,
 		['autoTrade'] = false,
+		['autoShip'] = false,
 	},

 	['errorframe'] = {
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index d84885e..97e6153 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -40,7 +40,6 @@ L["Reset All"] = "Сбросить все"
 L["Resets all movers & options for S&L."] = "Сбросить все фиксаторы и опции S&L"
 L['Oh lord, you have got ElvUI Enhanced and Shadow & Light both enabled at the same time. Select an addon to disable.'] = "Ешкин конь, одновременно включены ElvUI Enhanced и Shadow & Light. Выберите что отключить."
 L['You have got Loot Confirm and Shadow & Light both enabled at the same time. Select an addon to disable.'] = "Одновременно активны Loot Confirm и Shadow & Light. Выберите что из них отключить."
-L['You have got oRA3 and Shadow & Light both enabled at the same time. Select an addon to disable.'] = "Одновременно активны oRA3 и Shadow & Light. Выберите что из них отключить."
 L["Enabling mouse over will make ElvUI's raid utility show on mouse over instead of always showing."] = "Отображать кнопку управления рейдом только при наведении мыши."
 L['Adjust the position of the threat bar to any of the datatext panels in ElvUI & S&L.'] = "Позволяет поместить полосу угрозы на любой панели инфо-текстов."
 L["This option have been moved by Shadow & Light. Click to access it's new place."] = "Shadow & Light переместил эту опцию. Кликните для перехода к ее новому расположению."
@@ -490,6 +489,8 @@ L["Auto Work Orders for Warmill"] = "Авто. заказы на фабрике"
 L["Automatically queue maximum number of work orders available for Warmill/Dwarven Bunker."] = "Автоматически делать максимальное количество заказов для военной фабрики/дворфийского бункера."
 L["Auto Work Orders for Trading Post"] = "Авто. заказы в торговой лавке"
 L["Automatically queue maximum number of work orders available for Trading Post."] = "Автоматически делать максимальное количество заказов для торговой лавки."
+L["Auto Work Orders for Shipyard"] = "Авто. заказы на верфи"
+L["Automatically queue maximum number of work orders available for Shipyard."] = "Автоматически делать максимальное количество заказов для верфи."

 --Error Frame--
 L["Error Frame"] = "Фрейм ошибок"
diff --git a/ElvUI_SLE/modules/garrison.lua b/ElvUI_SLE/modules/garrison.lua
index aebba06..ca25bf5 100644
--- a/ElvUI_SLE/modules/garrison.lua
+++ b/ElvUI_SLE/modules/garrison.lua
@@ -9,6 +9,7 @@ local buildID = {
     [111] = "Trade",
     [144] = "Trade",
     [145] = "Trade",
+	[205] = "Ship",
 }

 function G:SHIPMENT_CRAFTER_INFO(event, success, _, maxShipments, plotID)
diff --git a/ElvUI_SLE/options/garrison_c.lua b/ElvUI_SLE/options/garrison_c.lua
index 6e96126..9486606 100644
--- a/ElvUI_SLE/options/garrison_c.lua
+++ b/ElvUI_SLE/options/garrison_c.lua
@@ -37,6 +37,15 @@ local function configTable()
 				get = function(info) return E.db.sle.garrison.autoTrade end,
 				set = function(info, value) E.db.sle.garrison.autoTrade = value end
 			},
+			autoShip = {
+				order = 6,
+				type = "toggle",
+				name = L["Auto Work Orders for Shipyard"],
+				desc = L["Automatically queue maximum number of work orders available for Shipyard."],
+				disabled = function() return not E.db.sle.garrison.autoOrder end,
+				get = function(info) return E.db.sle.garrison.autoShip end,
+				set = function(info, value) E.db.sle.garrison.autoShip = value end
+			},
 		},
 	}
 end