Merge branch 'enhancement/animal-customization-purchase-dialog'

This commit is contained in:
Hafiz 2025-07-18 12:57:39 -05:00
commit c9bddd96ba
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 {