imp: lock icon

This commit is contained in:
Vati
2026-03-14 15:49:41 +04:00
parent 30b0c45224
commit 76b1091784
4 changed files with 14 additions and 3 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -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
+13 -2
View File
@@ -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)