Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions Core/MultiBotEngine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 --

Expand Down
19 changes: 17 additions & 2 deletions UI/MultiBotGameObjectResultsFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down