Browse Source

add emote-assets; add hint for ready products;

master
Nero Ignis 3 years ago
parent
commit
f6ad5a942b
  1. BIN
      public/assets/emotes/_.png
  2. BIN
      public/assets/emotes/alert.png
  3. BIN
      public/assets/emotes/anger.png
  4. BIN
      public/assets/emotes/bars.png
  5. BIN
      public/assets/emotes/cash.png
  6. BIN
      public/assets/emotes/circle.png
  7. BIN
      public/assets/emotes/cloud.png
  8. BIN
      public/assets/emotes/cross.png
  9. BIN
      public/assets/emotes/dots1.png
  10. BIN
      public/assets/emotes/dots2.png
  11. BIN
      public/assets/emotes/dots3.png
  12. BIN
      public/assets/emotes/drop.png
  13. BIN
      public/assets/emotes/drops.png
  14. BIN
      public/assets/emotes/exclamation.png
  15. BIN
      public/assets/emotes/exclamations.png
  16. BIN
      public/assets/emotes/faceAngry.png
  17. BIN
      public/assets/emotes/faceHappy.png
  18. BIN
      public/assets/emotes/faceSad.png
  19. BIN
      public/assets/emotes/heart.png
  20. BIN
      public/assets/emotes/heartBroken.png
  21. BIN
      public/assets/emotes/hearts.png
  22. BIN
      public/assets/emotes/idea.png
  23. BIN
      public/assets/emotes/laugh.png
  24. BIN
      public/assets/emotes/music.png
  25. BIN
      public/assets/emotes/question.png
  26. BIN
      public/assets/emotes/sleep.png
  27. BIN
      public/assets/emotes/sleeps.png
  28. BIN
      public/assets/emotes/star.png
  29. BIN
      public/assets/emotes/stars.png
  30. BIN
      public/assets/emotes/swirl.png
  31. BIN
      src/assets/emotes/_.png
  32. BIN
      src/assets/emotes/alert.png
  33. BIN
      src/assets/emotes/anger.png
  34. BIN
      src/assets/emotes/bars.png
  35. BIN
      src/assets/emotes/cash.png
  36. BIN
      src/assets/emotes/circle.png
  37. BIN
      src/assets/emotes/cloud.png
  38. BIN
      src/assets/emotes/cross.png
  39. BIN
      src/assets/emotes/dots1.png
  40. BIN
      src/assets/emotes/dots2.png
  41. BIN
      src/assets/emotes/dots3.png
  42. BIN
      src/assets/emotes/drop.png
  43. BIN
      src/assets/emotes/drops.png
  44. BIN
      src/assets/emotes/exclamation.png
  45. BIN
      src/assets/emotes/exclamations.png
  46. BIN
      src/assets/emotes/faceAngry.png
  47. BIN
      src/assets/emotes/faceHappy.png
  48. BIN
      src/assets/emotes/faceSad.png
  49. BIN
      src/assets/emotes/heart.png
  50. BIN
      src/assets/emotes/heartBroken.png
  51. BIN
      src/assets/emotes/hearts.png
  52. BIN
      src/assets/emotes/idea.png
  53. BIN
      src/assets/emotes/laugh.png
  54. BIN
      src/assets/emotes/music.png
  55. BIN
      src/assets/emotes/question.png
  56. BIN
      src/assets/emotes/sleep.png
  57. BIN
      src/assets/emotes/sleeps.png
  58. BIN
      src/assets/emotes/star.png
  59. BIN
      src/assets/emotes/stars.png
  60. BIN
      src/assets/emotes/swirl.png
  61. 26
      src/components/BarnView.vue

BIN
public/assets/emotes/_.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
public/assets/emotes/alert.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

BIN
public/assets/emotes/anger.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

BIN
public/assets/emotes/bars.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

BIN
public/assets/emotes/cash.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
public/assets/emotes/circle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

BIN
public/assets/emotes/cloud.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
public/assets/emotes/cross.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

BIN
public/assets/emotes/dots1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
public/assets/emotes/dots2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

BIN
public/assets/emotes/dots3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

BIN
public/assets/emotes/drop.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
public/assets/emotes/drops.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
public/assets/emotes/exclamation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
public/assets/emotes/exclamations.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

BIN
public/assets/emotes/faceAngry.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
public/assets/emotes/faceHappy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

BIN
public/assets/emotes/faceSad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
public/assets/emotes/heart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
public/assets/emotes/heartBroken.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
public/assets/emotes/hearts.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
public/assets/emotes/idea.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

BIN
public/assets/emotes/laugh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

BIN
public/assets/emotes/music.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
public/assets/emotes/question.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

BIN
public/assets/emotes/sleep.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
public/assets/emotes/sleeps.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
public/assets/emotes/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
public/assets/emotes/stars.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
public/assets/emotes/swirl.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
src/assets/emotes/_.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
src/assets/emotes/alert.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

BIN
src/assets/emotes/anger.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

BIN
src/assets/emotes/bars.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

BIN
src/assets/emotes/cash.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
src/assets/emotes/circle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

BIN
src/assets/emotes/cloud.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
src/assets/emotes/cross.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

BIN
src/assets/emotes/dots1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
src/assets/emotes/dots2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

BIN
src/assets/emotes/dots3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

BIN
src/assets/emotes/drop.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
src/assets/emotes/drops.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
src/assets/emotes/exclamation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
src/assets/emotes/exclamations.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

BIN
src/assets/emotes/faceAngry.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
src/assets/emotes/faceHappy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

BIN
src/assets/emotes/faceSad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
src/assets/emotes/heart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
src/assets/emotes/heartBroken.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
src/assets/emotes/hearts.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
src/assets/emotes/idea.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

BIN
src/assets/emotes/laugh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

BIN
src/assets/emotes/music.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
src/assets/emotes/question.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

BIN
src/assets/emotes/sleep.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
src/assets/emotes/sleeps.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
src/assets/emotes/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
src/assets/emotes/stars.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

BIN
src/assets/emotes/swirl.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

26
src/components/BarnView.vue

@ -5,6 +5,9 @@
<div class="steel-border bordered-content" id="barn"> <div class="steel-border bordered-content" id="barn">
<div class="animal-wrapper" v-for="animal in $store.getters.getAnimalsWithAnimalData" v-bind:key="animal.data.id"> <div class="animal-wrapper" v-for="animal in $store.getters.getAnimalsWithAnimalData" v-bind:key="animal.data.id">
<div class="animal" :style="'top: '+animal.position.x+'vh; left: '+animal.position.y+'vw;'"> <div class="animal" :style="'top: '+animal.position.x+'vh; left: '+animal.position.y+'vw;'">
<div class="production-ready" v-if="animal.production && animal.production.canBeCollected" v-on:click="interactWithAnimal(animal)">
<img :src="getProductIconFromAnimal(animal)" alt="" class="product-icon">
</div>
<img :src="getSpriteForAnimal(animal)" alt="" v-on:click="interactWithAnimal(animal)"> <img :src="getSpriteForAnimal(animal)" alt="" v-on:click="interactWithAnimal(animal)">
<div class="animal-tag">{{ animal.name }}</div> <div class="animal-tag">{{ animal.name }}</div>
</div> </div>
@ -41,13 +44,17 @@ export default {
let productFromAnimal = AnimalService.getProductFromAnimalID(animal.id); let productFromAnimal = AnimalService.getProductFromAnimalID(animal.id);
iziToast.info({ iziToast.info({
title: productFromAnimal.name+' will be collectable '+ moment(animal.production.ready).fromNow(), title: productFromAnimal.name+' can be collected '+ moment(animal.production.ready).fromNow(),
image: productFromAnimal.icon, image: productFromAnimal.icon,
}); });
return false; return false;
} }
}, },
getProductIconFromAnimal(animal) {
let productFromAnimal = AnimalService.getProductFromAnimalID(animal.id);
return productFromAnimal.icon;
},
collectItem(animal) { collectItem(animal) {
let productFromAnimal = AnimalService.getProductFromAnimalID(animal.id); let productFromAnimal = AnimalService.getProductFromAnimalID(animal.id);
let animalData = AnimalService.getAnimalByID(animal.id); let animalData = AnimalService.getAnimalByID(animal.id);
@ -92,6 +99,8 @@ export default {
.animal-wrapper { .animal-wrapper {
position: relative; position: relative;
text-align: center;
align-content: center;
} }
.animal-tag { .animal-tag {
@ -103,4 +112,19 @@ export default {
text-align: center; text-align: center;
color: orangered; color: orangered;
} }
.production-ready {
margin-left: auto;
margin-right: auto;
background-image: url(@/assets/emotes/_.png);
background-repeat: no-repeat;
margin-bottom: 0;
width: 32px;
height: 32px;
}
.product-icon {
padding-top: 1px;
max-height: 20px;
}
</style> </style>
Loading…
Cancel
Save