diff --git a/Crafter.lua b/Crafter.lua
index a0fa646..d3506a4 100644
--- a/Crafter.lua
+++ b/Crafter.lua
@@ -183,18 +183,18 @@ local validityFunctions = --stuff that's not here will automatically recieve a v
-- uses the info in validityFunctions to recheck and see if attributes are an impediment to crafting.
local function applyValidityFunctions(requestTable)
- for attribute, t in pairs(validityFunctions) do
+ for attribute, validationInfo in pairs(validityFunctions) do
if requestTable["Station"] == 7 and attribute == "Style" then
else
local params = {}
- for i = 1, #t[2] do
+ for i = 1, #validationInfo[2] do
- params[#params + 1] = requestTable["CraftRequestTable"][t[2][i]]
+ params[#params + 1] = requestTable["CraftRequestTable"][validationInfo[2][i]]
end
--d("one application for: "..attribute)
- requestTable[attribute].isKnown = t[1](unpack(params) )
+ requestTable[attribute].isKnown = validationInfo[1](unpack(params) )
end
end
end
@@ -661,6 +661,11 @@ local function addByItemLinkToQueue(itemLink)
local styleIndex = GetItemLinkItemStyle(itemLink)
requestTable["Style"] = findMatchingSelected(DolgubonSetCrafter.styleNames, styleIndex)
+ if requestTable["Style"] == nil then
+ d("The item link is missing a style, and could not be added to the queue")
+ ZO_Alert(ERROR, SOUNDS.GENERAL_ALERT_ERROR ,"The item link is missing a style, and could not be added to the queue")
+ return
+ end
local traitIndex = GetItemLinkTraitInfo(itemLink)+1
diff --git a/DolgubonsLazySetCrafter.txt b/DolgubonsLazySetCrafter.txt
index bb42e3e..ec016ba 100644
--- a/DolgubonsLazySetCrafter.txt
+++ b/DolgubonsLazySetCrafter.txt
@@ -4,10 +4,10 @@
; States and/or other countries. All rights reserved.
; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms
-## Title: Dolgubon's Lazy Set Crafter v3.0.4.1
-## APIVersion: 101042
+## Title: Dolgubon's Lazy Set Crafter v3.0.4.2
+## APIVersion: 101043
## Author: Dolgubon
-## Version: 3.0.4.1
+## Version: 3.0.4.2
## SavedVariables: dolgubonslazysetcraftersavedvars
## DependsOn: LibLazyCrafting>=4005 LibAddonMenu-2.0 LibStub
## OptionalDependsOn: pChat LibFeedback LibCustomMenu LibPrice
diff --git a/SetCrafter.lua b/SetCrafter.lua
index 469cfe9..a30376d 100644
--- a/SetCrafter.lua
+++ b/SetCrafter.lua
@@ -193,7 +193,7 @@ function DolgubonSetCrafter:Initialize()
"If you found a bug, have a request or a suggestion, or wish to donate, you can send me a mail here.")
window:SetHidden(true)
- local currentAPIVersionOfAddon = 101042
+ local currentAPIVersionOfAddon = 101043
if GetAPIVersion() > currentAPIVersionOfAddon and GetWorldName()~="PTS" then
d("Update your addons!")
diff --git a/SetCrafterXMLUI.xml b/SetCrafterXMLUI.xml
index c089215..5f10cf2 100644
--- a/SetCrafterXMLUI.xml
+++ b/SetCrafterXMLUI.xml
@@ -6,11 +6,11 @@ Last Modified: December 2016
Created by Dolgubon (Joseph Heinzle)
-->
-
+
-
+
-
+
DolgubonSetCrafter.savedvars.toggleXPos = self:GetLeft()
@@ -20,44 +20,44 @@ Created by Dolgubon (Joseph Heinzle)
DolgubonSetCrafter.close()
-
-
+
-
+
-
-
+
-
-
-
+
+
+
self:GetOwningWindow():SetHidden(true)
-
+
-
+
-
+
DolgubonSetCrafter.onWindowResizeStart(self)
@@ -65,79 +65,79 @@ Created by Dolgubon (Joseph Heinzle)
DolgubonSetCrafter.onWindowResizeStop(self)
DolgubonSetCrafter.onWindowMove(self)
-
-
-
+
+
+
DolgubonSetCrafter.toggleFurnitureUI(self)
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
ClearMenu()
AddMenuItem(DolgubonSetCrafter.localizedStrings.UIStrings.addSelectionFavourite, DolgubonSetCrafter.addFavourite )
AddMenuItem(DolgubonSetCrafter.localizedStrings.UIStrings.addQueueFavourite, DolgubonSetCrafter.addFavouriteQueue )
ShowMenu(dscont)
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
+
DolgubonSetCrafter.close()
-
-
-
-
+
@@ -145,27 +145,27 @@ Created by Dolgubon (Joseph Heinzle)
self.GetName = function() return DolgubonSetCrafterWindow:GetName() end
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
DolgubonSetCrafter.portToCraftingHouse()
@@ -176,157 +176,156 @@ Created by Dolgubon (Joseph Heinzle)
ClearTooltip(InformationTooltip)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
DolgubonSetCrafter.resetPatterns()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
DolgubonSetCrafter.resetChoices()
-
-
-
-
-
+
+
+
+
+
DolgubonSetCrafter.craft()
-
-
-
-
-
-
+
+
+
+
+
+
DolgubonSetCrafter.clearQueue()
-
-
-
-
-
-
+
+
+
+
+
+
DolgubonSetCrafter.LazyCrafter:CraftAllItems()
DolgubonSetCrafter.LazyCrafter:craftInteract()
--DolgubonSetCrafter.craft()
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
-
-
-
+
+
+
-
+
-
+
-
+
ZO_EditDefaultText_Initialize(self, "")
@@ -338,28 +337,28 @@ Created by Dolgubon (Joseph Heinzle)
-
-
-
-
+
+
+
+
self:toggle()
-
-
-
-
+
+
+
+
-
- 5
-
+
+
+
-
+
-
+
DolgubonSetCrafter = DolgubonSetCrafter or {}
@@ -370,7 +369,7 @@ Created by Dolgubon (Joseph Heinzle)
-
+
@@ -385,9 +384,9 @@ Created by Dolgubon (Joseph Heinzle)
-
+
-
+
@@ -398,46 +397,46 @@ Created by Dolgubon (Joseph Heinzle)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
-
+
-
+
@@ -450,44 +449,44 @@ Created by Dolgubon (Joseph Heinzle)
-
+
-
-
+
+
self.GetName = function() return DolgubonSetCrafterWindow:GetName() end
-
-
+
-
-
+
+
DolgubonSetCrafter.materialManager:RefreshData()
-
-
-
+
+
+
-
+
-
+
-
+
InitializeTooltip(InformationTooltip, self, TOP, 0, 0)
@@ -504,52 +503,52 @@ Created by Dolgubon (Joseph Heinzle)
-
-
-
-
+
+
+
+
self:SetText(DolgubonSetCrafter.localizedStrings.UIStrings.showFavourites)
DolgubonSetCrafter:GetSettings().showFavourites = not DolgubonSetCrafter:GetSettings().showFavourites
DolgubonSetCrafterWindowFavourites:SetHidden(not DolgubonSetCrafter:GetSettings().showFavourites)
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
local text = DolgubonSetCrafter.mailAllMats()
--StartChatInput("Requires: "..text)
-
-
-
-
+
+
+
+
DolgubonSetCrafter.MailAsRequest()
-
-
-
+
+
+
-
+
@@ -578,30 +577,29 @@ Created by Dolgubon (Joseph Heinzle)
-
-
-
+
+
+
local text = DolgubonSetCrafter.outputAllMats()
--StartChatInput("Requires: "..text)
-
-
-
-
+
+
+
+
local text = DolgubonSetCrafter.outputRequest()
--StartChatInput("Requires: "..text)
-
-
+
+
-
-
+
-
+
\ No newline at end of file
diff --git a/Templates.xml b/Templates.xml
index 4348544..5a43279 100644
--- a/Templates.xml
+++ b/Templates.xml
@@ -1,11 +1,11 @@
-
+
-
-
+
+
-
+
InitializeTooltip(InformationTooltip, self, BOTTOM, 0, -5)
SetTooltipText(InformationTooltip, self.tooltip)
@@ -18,8 +18,8 @@
self:toggle()
-
-
+
+
InitializeTooltip(ItemTooltip, self , TOP, 0, 20)
ItemTooltip:SetLink(self.itemLink)
@@ -28,20 +28,20 @@
ClearTooltip(ItemTooltip)
-
-
+
+
-
+
-
-
+
+
self:toggle()
-
-
+
+
--d("1")
--d(self:GetParent():GetHandler("OnMouseEnter"))
@@ -57,15 +57,15 @@
-
+
-
+
-
+
@@ -77,11 +77,11 @@
-
+
-
+
@@ -167,21 +167,21 @@
-
+
+
-
-
-
+
+
-
+
-
+
-
+
@@ -204,7 +204,7 @@
-
+
@@ -215,8 +215,8 @@
DolgubonSetCrafter.deleteFavourite(self:GetParent():getCurrent())
-
-
+
+
@@ -227,7 +227,7 @@
self:GetParent():GetNamedChild("Name"):SetHidden(true)
-
+
ZO_EditDefaultText_Initialize(self, "")
@@ -240,11 +240,11 @@
-
+
-
+
DolgubonSetCrafter.scroll:Row_OnMouseEnter(self)
local added = false
@@ -305,13 +305,13 @@
DolgubonSetCrafter.scroll:Row_OnMouseExit(self:GetParent())
self:GetParent():GetHandler("OnMouseExit")(self:GetParent(), true)
-
+
-
+
-
+
self.tooltip = DolgubonSetCrafter.localizedStrings.UIStrings.usesMimicStone
@@ -333,15 +333,15 @@
-
+
-
+
-
+
@@ -364,10 +364,10 @@
self:GetParent():GetHandler("OnMouseExit")(self:GetParent(), true)
-
+
-
+
DolgubonSetCrafter.scroll:Row_OnMouseEnter(self)
local added = false
@@ -423,7 +423,7 @@
DolgubonSetCrafter.scroll:Row_OnMouseExit(self:GetParent())
self:GetParent():GetHandler("OnMouseExit")(self:GetParent(), true)
-
+
@@ -453,10 +453,10 @@
self:GetParent():GetHandler("OnMouseExit")(self:GetParent(), true)
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file