From 53e658986108b76b631e873dda840d858091d9d3 Mon Sep 17 00:00:00 2001 From: Jellypowered Date: Sun, 27 Sep 2026 12:52:28 -0500 Subject: [PATCH 1/2] Buttons might not have textures, fix an error thrown by the wow client. --- Core/MultiBotEngine.lua | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Core/MultiBotEngine.lua b/Core/MultiBotEngine.lua index aa1953c..2daaf06 100644 --- a/Core/MultiBotEngine.lua +++ b/Core/MultiBotEngine.lua @@ -1898,16 +1898,24 @@ MultiBot.wowButton = function(pParent, pName, pX, pY, pWidth, pHeight, pSize) -- SET -- button.setDisable = function() - button:GetNormalTexture():SetDesaturated(1) - button.state = false - return button - end + local texture = button:GetNormalTexture() + if texture then + texture:SetDesaturated(1) + end - button.setEnable = function() - button:GetNormalTexture():SetDesaturated(nil) - button.state = true - return button - end + button.state = false + return button +end + +button.setEnable = function() + local texture = button:GetNormalTexture() + if texture then + texture:SetDesaturated(nil) + end + + button.state = true + return button +end -- DO -- From 390af39cb698917224b92406388c6c6cee37fa38 Mon Sep 17 00:00:00 2001 From: Jellypowered Date: Sun, 27 Sep 2026 13:30:53 -0500 Subject: [PATCH 2/2] Fix the GameObject Found window to actually allow shift clicking an Item link into an open chat. --- UI/MultiBotGameObjectResultsFrame.lua | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/UI/MultiBotGameObjectResultsFrame.lua b/UI/MultiBotGameObjectResultsFrame.lua index e14085c..13f1a82 100644 --- a/UI/MultiBotGameObjectResultsFrame.lua +++ b/UI/MultiBotGameObjectResultsFrame.lua @@ -28,9 +28,24 @@ local function clearResults(frame) end local function addLabel(aceGUI, parent, text) - local label = aceGUI:Create("Label") + text = text or "" + local linkColor, link, linkText = text:match("|c(%x%x%x%x%x%x%x%x)|H([^|]+)|h(.-)|h|r") + local label = aceGUI:Create(link and "InteractiveLabel" or "Label") label:SetFullWidth(true) - label:SetText(text or "") + label:SetText(text) + if link then + label:SetCallback("OnClick", function(_, _, button) + if button ~= "LeftButton" or not IsShiftKeyDown or not IsShiftKeyDown() then + return + end + local fullLink = ("|c%s|H%s|h%s|h|r"):format(linkColor, link, linkText) + if ChatFrame_OnHyperlinkShow then + ChatFrame_OnHyperlinkShow(DEFAULT_CHAT_FRAME, link, fullLink, button) + elseif ChatEdit_InsertLink then + ChatEdit_InsertLink(fullLink) + end + end) + end parent:AddChild(label) return label end