BetterBags

BetterBags

1M Downloads

Caged pets should show Pet image not cage

woodrikj opened this issue ยท 4 comments

commented

When you have a caged pet, adibags used to show the image of what pet it was not the cage image. Currently better bags only shows the cage.
image
image

commented

Additional, pet names cannot be searched for (probably because of same bug why cage is shown?)

commented

Battle pet will always return 'Pet Cage' for name using GetItemInfo(id) you have to get the details from the tooltip

local tooltipData = C_TooltipInfo.GetBagItem(bag, slot) -- or C_TooltipInfo.GetGuildBankItem( tab, slot )
if tooltipData then
	TooltipUtil.SurfaceArgs( tooltipData )
	if tooltipData.battlePetSpeciesID then
		-- tooltipData.battlePetSpeciesID
		-- tooltipData.battlePetLevel
		-- tooltipData.battlePetBreedQuality
		-- tooltipData.battlePetMaxHealth
		-- tooltipData.battlePetPower
		-- tooltipData.battlePetSpeed
		-- tooltipData.battlePetName
	end
end

This is a deal breaker for me.

commented

This is on the list of things to get done. There is a more elegant way of getting the information needed than the tooltip -- it'll get done in the near future.

commented

fixed in #316