money position fixed
This commit is contained in:
+5
-4
@@ -218,6 +218,8 @@ function Tooltip:AddInventoryInfo(tooltip, link)
|
|||||||
local totalCount = totalBags + totalBank + totalEquipped
|
local totalCount = totalBags + totalBank + totalEquipped
|
||||||
|
|
||||||
if hasAnyItems then
|
if hasAnyItems then
|
||||||
|
|
||||||
|
-- Top padding above the Inventory block (~10-12px visually)
|
||||||
tooltip:AddLine(" ")
|
tooltip:AddLine(" ")
|
||||||
|
|
||||||
-- Inventory label in exact bag frame title color
|
-- Inventory label in exact bag frame title color
|
||||||
@@ -263,7 +265,7 @@ function Tooltip:AddInventoryInfo(tooltip, link)
|
|||||||
tooltip:AddDoubleLine(displayName, countText, r, g, b, 1.0, 1.0, 1.0)
|
tooltip:AddDoubleLine(displayName, countText, r, g, b, 1.0, 1.0, 1.0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add small gap between inventory data and vendor sell price
|
-- Bottom padding below the Inventory block (~10-12px visually)
|
||||||
tooltip:AddLine(" ")
|
tooltip:AddLine(" ")
|
||||||
|
|
||||||
tooltip:Show()
|
tooltip:Show()
|
||||||
@@ -322,9 +324,8 @@ function Tooltip:Initialize()
|
|||||||
Orig_SetTooltipMoney(q[1], q[2], q[3], q[4], q[5], q[6], q[7])
|
Orig_SetTooltipMoney(q[1], q[2], q[3], q[4], q[5], q[6], q[7])
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Nudge the vendor price upward a bit so it's visually closer to the item info
|
-- Add ~5px more space below the Inventory block by reducing the upward nudge from 15px to 10px
|
||||||
-- In WoW UI coordinates, positive Y moves up; increase by 15px (adjust if you prefer)
|
AdjustMoneyFrames(tooltip, 12)
|
||||||
AdjustMoneyFrames(tooltip, 15)
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user