mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
Merge branch 'enhancement/animal-customization-purchase-dialog'
This commit is contained in:
commit
c9bddd96ba
2 changed files with 6 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue