seperate ammo/quiver
This commit is contained in:
@@ -192,7 +192,6 @@ function Utils:IsAmmoQuiverBag(bagID)
|
|||||||
tooltip:SetInventoryItem("player", invSlot)
|
tooltip:SetInventoryItem("player", invSlot)
|
||||||
|
|
||||||
-- Scan tooltip lines for "Quiver" or "Ammo Pouch"
|
-- Scan tooltip lines for "Quiver" or "Ammo Pouch"
|
||||||
-- In vanilla, the item type appears on the right side of line 2 or 3
|
|
||||||
for i = 1, tooltip:NumLines() do
|
for i = 1, tooltip:NumLines() do
|
||||||
local line = getglobal("GudaBagScanTooltipTextLeft" .. i)
|
local line = getglobal("GudaBagScanTooltipTextLeft" .. i)
|
||||||
if line then
|
if line then
|
||||||
@@ -200,7 +199,6 @@ function Utils:IsAmmoQuiverBag(bagID)
|
|||||||
if text then
|
if text then
|
||||||
-- Check if the line contains "Quiver" or "Ammo Pouch"
|
-- Check if the line contains "Quiver" or "Ammo Pouch"
|
||||||
if string.find(text, "Quiver") or string.find(text, "Ammo Pouch") then
|
if string.find(text, "Quiver") or string.find(text, "Ammo Pouch") then
|
||||||
addon:Print("Bag " .. bagID .. " detected as Quiver/Ammo: " .. text)
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+2
-7
@@ -202,9 +202,6 @@ function BagFrame:DisplayItems(bagData, isOtherChar, charName)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Debug output
|
|
||||||
addon:Print("Regular bags: " .. table.getn(regularBags) .. ", Ammo/Quiver bags: " .. table.getn(ammoQuiverBags))
|
|
||||||
|
|
||||||
-- Build display order: regular bags -> ammo/quiver bags -> keyring
|
-- Build display order: regular bags -> ammo/quiver bags -> keyring
|
||||||
local bagsToShow = {}
|
local bagsToShow = {}
|
||||||
for _, bagID in ipairs(regularBags) do
|
for _, bagID in ipairs(regularBags) do
|
||||||
@@ -213,10 +210,8 @@ function BagFrame:DisplayItems(bagData, isOtherChar, charName)
|
|||||||
|
|
||||||
-- Add ammo/quiver bags with spacing marker
|
-- Add ammo/quiver bags with spacing marker
|
||||||
if table.getn(ammoQuiverBags) > 0 then
|
if table.getn(ammoQuiverBags) > 0 then
|
||||||
addon:Print("Adding " .. table.getn(ammoQuiverBags) .. " ammo/quiver bags with spacing")
|
|
||||||
for i, bagID in ipairs(ammoQuiverBags) do
|
for i, bagID in ipairs(ammoQuiverBags) do
|
||||||
table.insert(bagsToShow, {bagID = bagID, needsSpacing = (i == 1)})
|
table.insert(bagsToShow, {bagID = bagID, needsSpacing = (i == 1)})
|
||||||
addon:Print(" Ammo/Quiver bag " .. bagID .. " - needsSpacing: " .. tostring(i == 1))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -236,8 +231,8 @@ function BagFrame:DisplayItems(bagData, isOtherChar, charName)
|
|||||||
col = 0
|
col = 0
|
||||||
row = row + 1
|
row = row + 1
|
||||||
end
|
end
|
||||||
-- Add extra spacing (1 row)
|
-- Add extra spacing (0.5 row for tighter spacing)
|
||||||
row = row + 1
|
row = row + 0.5
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get slot count for this bag
|
-- Get slot count for this bag
|
||||||
|
|||||||
Reference in New Issue
Block a user