fix: sell cursor on hover
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
## Interface: 11200
|
## Interface: 11200
|
||||||
## 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: Claude
|
## Author: Moomao
|
||||||
## Version: 1.0.0
|
## Version: 1.0.0
|
||||||
## SavedVariables: Guda_DB
|
## SavedVariables: Guda_DB
|
||||||
## SavedVariablesPerCharacter: Guda_CharDB
|
## SavedVariablesPerCharacter: Guda_CharDB
|
||||||
|
|||||||
@@ -279,11 +279,19 @@ function Guda_ItemButton_OnEnter(self)
|
|||||||
end
|
end
|
||||||
|
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
|
|
||||||
|
-- Handle merchant sell cursor (same approach as BagShui)
|
||||||
|
if MerchantFrame:IsShown() and not self.isBank and not self.otherChar and self.hasItem then
|
||||||
|
ShowContainerSellCursor(self.bagID, self.slotID)
|
||||||
|
else
|
||||||
|
ResetCursor()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- OnLeave handler
|
-- OnLeave handler
|
||||||
function Guda_ItemButton_OnLeave(self)
|
function Guda_ItemButton_OnLeave(self)
|
||||||
GameTooltip:Hide()
|
GameTooltip:Hide()
|
||||||
|
ResetCursor()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- OnDragStart handler
|
-- OnDragStart handler
|
||||||
|
|||||||
Reference in New Issue
Block a user