Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <script>
  2. export default {
  3. data(){
  4. return {
  5. // Inverse pokemon type
  6. opponent: this.type == 'player' ? 'opponent' : 'player',
  7. // Pokemon image id (handy if needed in the future for applying effects)
  8. pokemonImageId: this.type + '-pokemon',
  9. // The main box's class, based on the position
  10. boxClass: {
  11. 'box-top-left': this.position == 'top',
  12. 'box-bottom-right': this.position == 'bottom',
  13. },
  14. // The HP box's class, based on the position
  15. hpBoxClass: {
  16. 'box-top-right': this.position == 'top',
  17. 'box-bottom-left': this.position == 'bottom',
  18. },
  19. // The HP bar's class, based on the position
  20. hpBarClass: {
  21. 'hp-bar-top': this.position == 'top',
  22. 'hp-bar-bottom': this.position == 'bottom',
  23. }
  24. };
  25. },
  26. }
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement