Add customization shop support for animal tails/ears

handle animal ears and tails on purchase dialog.

Adds a new AvatarView layer type for back and head accessories.
This commit is contained in:
Hafiz 2025-07-01 12:56:22 -05:00
parent 2f7df36d98
commit fff6e76052
2 changed files with 6 additions and 0 deletions

View file

@ -123,6 +123,10 @@ class PurchaseDialog(
}
}
}
shopItem.isTypeGear && (shopItem.categoryIdentifier == "animalTails" || shopItem.categoryIdentifier == "animalEars" ) -> {
contentView = PurchaseDialogCustomizationContent(context)
contentView.setItem(shopItem)
}
shopItem.isTypeGear -> {
contentView = PurchaseDialogGearContent(context)
if (shopItem.purchaseType == "mystery_set") {

View file

@ -54,6 +54,8 @@ class PurchaseDialogCustomizationContent(context: Context) : PurchaseDialogConte
path.contains("bangs") -> AvatarView.LayerType.HAIR_BANGS
path.contains("beard") -> AvatarView.LayerType.HAIR_BEARD
path.contains("mustache") -> AvatarView.LayerType.HAIR_MUSTACHE
path.contains("back") -> AvatarView.LayerType.BACK
path.contains("headAccessory") -> AvatarView.LayerType.HEAD
else -> null
}
layerName?.let {