diff --git a/Assets/lock.blp b/Assets/lock.blp index cf2834b..deb2357 100644 Binary files a/Assets/lock.blp and b/Assets/lock.blp differ diff --git a/Assets/lock_glow.blp b/Assets/lock_glow.blp new file mode 100644 index 0000000..f7f4eea Binary files /dev/null and b/Assets/lock_glow.blp differ diff --git a/Guda.toc b/Guda.toc index 84c3d0d..de8c00b 100644 --- a/Guda.toc +++ b/Guda.toc @@ -2,7 +2,7 @@ ## Title: Guda ## Notes: All-in-one bag and bank addon for World of Warcraft 1.12.1 (Turtle WoW) ## Author: Vati -## Version: 2.1.2 +## Version: 2.1.3 ## SavedVariables: Guda_DB ## SavedVariablesPerCharacter: Guda_CharDB diff --git a/UI/ItemButton.lua b/UI/ItemButton.lua index edbb936..c79f5a9 100644 --- a/UI/ItemButton.lua +++ b/UI/ItemButton.lua @@ -497,14 +497,14 @@ local function AcquireLockIcon() shadow:SetWidth(13) shadow:SetHeight(13) shadow:SetPoint("CENTER", icon, "CENTER", 1, -1) - shadow:SetTexture("Interface\\AddOns\\Guda\\Assets\\lock") + shadow:SetTexture("Interface\\AddOns\\Guda\\Assets\\lock_glow") shadow:SetVertexColor(0, 0, 0, 1) icon.shadow = shadow -- Icon (front) local texture = icon:CreateTexture(nil, "OVERLAY") texture:SetAllPoints(icon) - texture:SetTexture("Interface\\AddOns\\Guda\\Assets\\lock") + texture:SetTexture("Interface\\AddOns\\Guda\\Assets\\lock_glow") icon.texture = texture end return icon @@ -989,6 +989,17 @@ function Guda_ItemButton_OnLoad(self) end end + -- Shift-click to link cached items to chat (remote bank, read-only, or closed bank) + if IsShiftKeyDown() and arg1 == "LeftButton" and this.hasItem then + if this.otherChar or this.isReadOnly or (this.isBank and this.bagID == -1 and not (getglobal("BankFrame") and getglobal("BankFrame"):IsVisible())) then + local link = this.itemData and this.itemData.link + if link and ChatFrameEditBox and ChatFrameEditBox:IsVisible() then + ChatFrameEditBox:Insert(link) + return + end + end + end + -- Default behavior if ContainerFrameItemButton_OnClick then -- Mailbox clicks should be ignored except for Ctrl+Click (preview)