From 27d68573279ee078ec574f7262513b91f5fe11b7 Mon Sep 17 00:00:00 2001 From: KameleonUK <42344512+KameleonUK@users.noreply.github.com> Date: Mon, 11 Aug 2025 23:45:34 +0100 Subject: [PATCH 01/12] Update atsw.xml Added button templates for up and down buttons as well as button tool tips --- AdvancedTradeSkillWindow/atsw.xml | 241 +++++++++++++++++++++++++++++- 1 file changed, 237 insertions(+), 4 deletions(-) diff --git a/AdvancedTradeSkillWindow/atsw.xml b/AdvancedTradeSkillWindow/atsw.xml index 4ed46f3..bce7973 100644 --- a/AdvancedTradeSkillWindow/atsw.xml +++ b/AdvancedTradeSkillWindow/atsw.xml @@ -1639,10 +1639,68 @@ - ATSW_DeleteJob(this.jobindex); + ATSW_MoveJobDown(this.jobindex); + + + GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); + GameTooltip:SetText("Remove craft from the queue"); + GameTooltip:Show(); + + + GameTooltip:Hide(); + + + + + @@ -1666,11 +1724,70 @@ - ATSW_DeleteJob(this.jobindex); + ATSW_MoveJobDown(this.jobindex); + + + GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); + GameTooltip:SetText("Remove craft from the queue"); + GameTooltip:Show(); + + + GameTooltip:Hide(); + + + + + + @@ -1695,8 +1812,66 @@ ATSW_DeleteJob(this.jobindex); + + GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); + GameTooltip:SetText("Remove craft from the queue"); + GameTooltip:Show(); + + + GameTooltip:Hide(); + + + + + @@ -1720,10 +1895,68 @@ - ATSW_DeleteJob(this.jobindex); + ATSW_MoveJobDown(this.jobindex); + + GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); + GameTooltip:SetText("Remove craft from the queue"); + GameTooltip:Show(); + + + GameTooltip:Hide(); + + + @@ -4132,4 +4365,4 @@ - ATSW_MoveJobDown(this.jobindex); + ATSW_DeleteJob(this.jobindex); GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); @@ -1724,7 +1724,7 @@ - ATSW_MoveJobDown(this.jobindex); + ATSW_DeleteJob(this.jobindex); GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); From 9a3d24b8df20cc379add554e5530f101447aa413 Mon Sep 17 00:00:00 2001 From: KameleonUK <42344512+KameleonUK@users.noreply.github.com> Date: Tue, 12 Aug 2025 13:01:00 +0100 Subject: [PATCH 09/12] Update atsw.xml Bug Fix: Delete button 4 was calling the wrong function --- AdvancedTradeSkillWindow/atsw.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdvancedTradeSkillWindow/atsw.xml b/AdvancedTradeSkillWindow/atsw.xml index 253f639..0eb0ab7 100644 --- a/AdvancedTradeSkillWindow/atsw.xml +++ b/AdvancedTradeSkillWindow/atsw.xml @@ -1895,7 +1895,7 @@ - ATSW_MoveJobDown(this.jobindex); + ATSW_DeleteJob(this.jobindex); GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); From 6bde5d618dd4ce2858d2d522dd3f49b71b5657bd Mon Sep 17 00:00:00 2001 From: KameleonUK <42344512+KameleonUK@users.noreply.github.com> Date: Tue, 12 Aug 2025 13:01:53 +0100 Subject: [PATCH 10/12] Update atsw.lua Up button for item 1 and down button for item 4 are now using the disabled texture instead of hidden to create a more visually consitent UI --- AdvancedTradeSkillWindow/atsw.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/AdvancedTradeSkillWindow/atsw.lua b/AdvancedTradeSkillWindow/atsw.lua index d54269e..3660cd0 100644 --- a/AdvancedTradeSkillWindow/atsw.lua +++ b/AdvancedTradeSkillWindow/atsw.lua @@ -1293,15 +1293,17 @@ function ATSWFrame_UpdateQueue() upButton.jobindex=jobindex; queueItem:Show(); queueButton:Show(); + downButton:Show(); + upButton:Show(); if(jobindex >= jobs) then - downButton:Hide(); + downButton:Disable(); else - downButton:Show(); + downButton:Enable(); end if(jobindex <= 1) then - upButton:Hide(); + upButton:Disable(); else - upButton:Show(); + upButton:Enable(); end else queueButton:Hide(); From 2dc75d07bb18796be6a2dc433a610532137bc66d Mon Sep 17 00:00:00 2001 From: KameleonUK <42344512+KameleonUK@users.noreply.github.com> Date: Tue, 12 Aug 2025 13:11:41 +0100 Subject: [PATCH 11/12] Update atsw.lua Added Alt+Click to queue 1x item craft. Updated tooltip to explain this. --- AdvancedTradeSkillWindow/atsw.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/AdvancedTradeSkillWindow/atsw.lua b/AdvancedTradeSkillWindow/atsw.lua index 3660cd0..1bfc857 100644 --- a/AdvancedTradeSkillWindow/atsw.lua +++ b/AdvancedTradeSkillWindow/atsw.lua @@ -828,6 +828,22 @@ function ATSWSkillButton_OnClick(button) if(button=="LeftButton") then ATSWFrame_SetSelection(this:GetID(),true); ATSWFrame_Update(); + + -- Alt+Click to add 1x to queue + if(IsAltKeyDown()) then + local skillName, skillType, numAvailable; + local listpos=ATSW_GetSkillListingPos(this:GetID()); + if(atsw_skilllisting[listpos]) then + skillName = atsw_skilllisting[listpos].name; + skillType = atsw_skilllisting[listpos].type; + end + + -- Only add to queue if it's not a header and has a valid skill name + if(skillName and skillType ~= "header") then + ATSW_AddJob(skillName, 1); + ATSWFrame_UpdateQueue(); + end + end end end @@ -2484,7 +2500,7 @@ function ATSW_DisplayTradeskillTooltip() skillType = atsw_skilllisting[listpos].type; else skillName=nil; - akillType=nil; + skillType=nil; end if(skillName and skillType ~= "header") then @@ -2515,6 +2531,8 @@ function ATSW_DisplayTradeskillTooltip() end end ATSWTradeskillTooltip:AddLine(ATSW_TOOLTIP_LEGEND); + ATSWTradeskillTooltip:AddLine(" "); + ATSWTradeskillTooltip:AddLine("Alt+Click to add craft to queue (x1)"); ATSWTradeskillTooltip:Show(); end From 5aa0e5a3c6791bb8c3c2d08f7518874e129cb6c7 Mon Sep 17 00:00:00 2001 From: KameleonUK <42344512+KameleonUK@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:33:33 +0100 Subject: [PATCH 12/12] Update README.md Added 0.5.8 info --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4203604..530560d 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,12 @@ of "green". ## Changelog: +v0.5.8 +- Added ability to move queued crafts up and down the list +- Alt left click will add x1 craft of that item to the queue +- Changed default search behavior to search recipe names and reagents +- added :craft predefined filter to replace original search functionality (searches crafted item names only) + v0.5.7 - Fix for scroll jumps - Added presets for easy filter select