diff --git a/Guda.toc b/Guda.toc
index b93aa3f..f2930c5 100644
--- a/Guda.toc
+++ b/Guda.toc
@@ -2,7 +2,7 @@
## Title: Guda
## Notes: All-in-one bag and bank addon for Turtle WoW
## Author: Vati
-## Version: 1.5.1
+## Version: 1.5.2
## SavedVariables: Guda_DB
## SavedVariablesPerCharacter: Guda_CharDB
diff --git a/UI/BagFrame.lua b/UI/BagFrame.lua
index 6ba7d05..ae8779a 100644
--- a/UI/BagFrame.lua
+++ b/UI/BagFrame.lua
@@ -2002,6 +2002,18 @@ function Guda_BagSlot_OnEnter(button, bagID)
else
GameTooltip:AddLine("(Right-Click to hide)", 0.5, 0.8, 0.5)
end
+ Guda_BagFrame_HighlightBagSlots(0)
+ elseif bagID == -2 then
+ -- Keyring tooltip
+ GameTooltip:SetText("Keyring", 1.0, 1.0, 1.0)
+ local numSlots = GetContainerNumSlots(-2) or 0
+ GameTooltip:AddLine(string.format("%d Slots", numSlots), 0.8, 0.8, 0.8)
+ if hiddenBags[bagID] then
+ GameTooltip:AddLine("(Hidden - Right-Click to show)", 0.8, 0.5, 0.5)
+ else
+ GameTooltip:AddLine("(Right-Click to hide)", 0.5, 0.8, 0.5)
+ end
+ Guda_BagFrame_HighlightBagSlots(-2)
else
-- Bag slot tooltip
local invSlot = ContainerIDToInventoryID(bagID)
@@ -2015,6 +2027,7 @@ function Guda_BagSlot_OnEnter(button, bagID)
else
GameTooltip:AddLine("(Right-Click to hide)", 0.5, 0.8, 0.5)
end
+ Guda_BagFrame_HighlightBagSlots(bagID)
else
-- Empty slot
GameTooltip:SetText(string.format("Bag %d", bagID), 1.0, 1.0, 1.0)
@@ -2024,6 +2037,7 @@ function Guda_BagSlot_OnEnter(button, bagID)
else
GameTooltip:AddLine("(Right-Click to hide)", 0.5, 0.8, 0.5)
end
+ Guda_BagFrame_HighlightBagSlots(bagID)
end
end
diff --git a/UI/BagFrame.xml b/UI/BagFrame.xml
index 68f0e85..e13f8cf 100644
--- a/UI/BagFrame.xml
+++ b/UI/BagFrame.xml
@@ -338,7 +338,6 @@
Guda_BagSlot_OnEnter(this, 0)
- Guda_BagFrame_HighlightBagSlots(0)
GameTooltip:Hide()
@@ -373,7 +372,6 @@
Guda_BagSlot_OnEnter(this, 1)
- Guda_BagFrame_HighlightBagSlots(1)
Guda_BagSlot_OnDragStart(this, 1)
@@ -414,7 +412,6 @@
Guda_BagSlot_OnEnter(this, 2)
- Guda_BagFrame_HighlightBagSlots(2)
Guda_BagSlot_OnDragStart(this, 2)
@@ -455,7 +452,6 @@
Guda_BagSlot_OnEnter(this, 3)
- Guda_BagFrame_HighlightBagSlots(3)
Guda_BagSlot_OnDragStart(this, 3)
@@ -496,7 +492,6 @@
Guda_BagSlot_OnEnter(this, 4)
- Guda_BagFrame_HighlightBagSlots(4)
Guda_BagSlot_OnDragStart(this, 4)
@@ -552,13 +547,6 @@
Guda_BagFrame_ToggleKeyring()
- GameTooltip:SetOwner(this, "ANCHOR_TOP")
- GameTooltip:SetText("Keyring", 1.0, 1.0, 1.0)
- local numSlots = GetContainerNumSlots(-2) or 0
- GameTooltip:AddLine(string.format("%d Slots", numSlots), 0.8, 0.8, 0.8)
- GameTooltip:AddLine("(Right-click to toggle)", 0.5, 0.8, 0.5)
- GameTooltip:Show()
- Guda_BagFrame_HighlightBagSlots(-2)
Guda_BagSlot_OnEnter(this, -2)