From 07eb155fe94f0db7b03dab4c510d973c945f8b8a Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 7 Aug 2016 14:54:40 +0300 Subject: [PATCH] This should work? --- ElvUI_SLE/defaults/profile.lua | 7 ++++++ ElvUI_SLE/modules/garrison.lua | 5 +++++ ElvUI_SLE/modules/load_modules.xml | 1 + ElvUI_SLE/modules/orderhall.lua | 39 ++++++++++++++++++++++++++++++++ ElvUI_SLE/options/load_options.xml | 1 + ElvUI_SLE/options/orderhall_c.lua | 43 ++++++++++++++++++++++++++++++++++++ 6 files changed, 96 insertions(+) create mode 100644 ElvUI_SLE/modules/orderhall.lua create mode 100644 ElvUI_SLE/options/orderhall_c.lua diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua index 166cf8a..bbb2af9 100644 --- a/ElvUI_SLE/defaults/profile.lua +++ b/ElvUI_SLE/defaults/profile.lua @@ -517,6 +517,13 @@ P["sle"] = { ["targetcount"] = false, ["visibleRange"] = 60, }, + --Order Halls + ["orderhall"] = { + ["autoOrder"] = { + ["enable"] = false, + ["autoEquip"] = false, + }, + }, --Quests ["quests"] = { ["visibility"] = { diff --git a/ElvUI_SLE/modules/garrison.lua b/ElvUI_SLE/modules/garrison.lua index ec71d6a..c2a7610 100644 --- a/ElvUI_SLE/modules/garrison.lua +++ b/ElvUI_SLE/modules/garrison.lua @@ -12,10 +12,15 @@ local buildID = { [206] = "Ship", [207] = "Ship", } +local zones = { + [971] = true, + [976] = true, +} local C_Garrison = C_Garrison function Gar:SHIPMENT_CRAFTER_INFO(event, success, _, maxShipments, plotID) if not _G["GarrisonCapacitiveDisplayFrame"] then return end --Just in case + if not zones[T.GetCurrentMapAreaID()] then return end local n = _G["GarrisonCapacitiveDisplayFrame"].available or 0 if Gar.clicked or n == 0 or not Gar.db.autoOrder.enable then return end Gar.clicked = true diff --git a/ElvUI_SLE/modules/load_modules.xml b/ElvUI_SLE/modules/load_modules.xml index e551a50..e6e7ce8 100644 --- a/ElvUI_SLE/modules/load_modules.xml +++ b/ElvUI_SLE/modules/load_modules.xml @@ -15,6 +15,7 @@