fix hatched dialog

This commit is contained in:
Phillip Thelen
2024-07-23 17:59:56 +02:00
parent 53242ad96c
commit 8ed95731cb
2 changed files with 7 additions and 4 deletions
@@ -20,7 +20,7 @@
</div>
<div class="inner-content">
<div class="pet-background d-flex align-items-center">
<Sprite :image-name="pet.class" />
<Sprite :image-name="pet.imageName" />
</div>
<h4 class="title">
{{ pet.name }}
@@ -76,10 +76,11 @@
height: 112px;
border-radius: 4px;
background-color: $gray-700;
}
.Pet {
margin: auto;
img {
transform: scale(1.5);
margin: auto;
}
}
.dialog-header {
@@ -134,6 +135,7 @@ export default {
methods: {
openDialog (item) {
this.pet = item;
console.log(this.pet);
this.$root.$emit('bv::show::modal', 'hatchedPet-modal');
},
close () {
+1
View File
@@ -37,6 +37,7 @@ export function createAnimal (egg, potion, type, _content, userItems) {
return {
key: animalKey,
class: type === 'pet' ? `Pet Pet-${animalKey}` : `Mount_Icon_${animalKey}`,
imageName: type === 'pet' ? `stable_Pet-${animalKey}` : `stable_Mount_Icon_${animalKey}`,
eggKey: egg.key,
eggName: getText(egg.text),
potionKey: potion.key,