version: 1.5.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
## Title: Guda
|
## Title: Guda
|
||||||
## Notes: All-in-one bag and bank addon for Turtle WoW
|
## Notes: All-in-one bag and bank addon for Turtle WoW
|
||||||
## Author: Vati
|
## Author: Vati
|
||||||
## Version: 1.4.8
|
## Version: 1.5.0
|
||||||
## SavedVariables: Guda_DB
|
## SavedVariables: Guda_DB
|
||||||
## SavedVariablesPerCharacter: Guda_CharDB
|
## SavedVariablesPerCharacter: Guda_CharDB
|
||||||
|
|
||||||
|
|||||||
@@ -381,6 +381,15 @@ function Guda_ItemButton_OnLoad(self)
|
|||||||
|
|
||||||
-- Default behavior
|
-- Default behavior
|
||||||
if ContainerFrameItemButton_OnClick then
|
if ContainerFrameItemButton_OnClick then
|
||||||
|
-- Mailbox clicks should be ignored except for Ctrl+Click (preview)
|
||||||
|
-- OR if it's a live mail item for the current player and Shift+Click (loot)
|
||||||
|
if this.isMail then
|
||||||
|
if IsControlKeyDown() then
|
||||||
|
ContainerFrameItemButton_OnClick(arg1)
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
ContainerFrameItemButton_OnClick(arg1)
|
ContainerFrameItemButton_OnClick(arg1)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@@ -1000,6 +1009,9 @@ function Guda_ItemButton_OnEnter(self)
|
|||||||
elseif self.itemData and self.itemData.name then
|
elseif self.itemData and self.itemData.name then
|
||||||
-- Money or generic mail
|
-- Money or generic mail
|
||||||
GameTooltip:AddLine(self.itemData.name, 1, 1, 1)
|
GameTooltip:AddLine(self.itemData.name, 1, 1, 1)
|
||||||
|
elseif self.mailData and self.mailData.money and self.mailData.money > 0 then
|
||||||
|
-- Fallback for money only mail
|
||||||
|
GameTooltip:AddLine("Money", 1, 1, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add mailbox metadata if available
|
-- Add mailbox metadata if available
|
||||||
|
|||||||
Reference in New Issue
Block a user