Add basic deck builder #12

Merged
hamcha merged 42 commits from feature/deckbuilder into master 2019-09-12 09:11:32 +00:00
57 changed files with 6 additions and 6 deletions
Showing only changes of commit b8c5195347 - Show all commits

View File

After

Width:  |  Height:  |  Size: 46 KiB

View File

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

After

Width:  |  Height:  |  Size: 264 B

View File

After

Width:  |  Height:  |  Size: 26 KiB

View File

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

After

Width:  |  Height:  |  Size: 24 KiB

View File

After

Width:  |  Height:  |  Size: 23 KiB

View File

After

Width:  |  Height:  |  Size: 22 KiB

View File

After

Width:  |  Height:  |  Size: 28 KiB

View File

After

Width:  |  Height:  |  Size: 27 KiB

View File

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -41,7 +41,7 @@
</section>
<section class="cards">
<div @click="prevPage" :class="canGoPrev ? 'prev' : 'prev unavailable'">
<img src="/images/deckbuilder/navarrow.svg" />
<img src="../assets/images/deckbuilder/navarrow.svg" />
</div>
<CardPicker
@picked="cardPicked"
@ -50,7 +50,7 @@
:cards="currentPage"
/>
<div @click="nextPage" :class="canGoNext ? 'next' : 'next unavailable'">
<img src="/images/deckbuilder/navarrow.svg" />
<img src="../assets/images/deckbuilder/navarrow.svg" />
</div>
</section>
</section>
@ -62,7 +62,7 @@
<style lang="scss" scoped>
.deckbuilder {
background: url("/images/backgrounds/deckbuilderbg.webp") center;
background: url("../assets/images/backgrounds/deckbuilderbg.webp") center;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
@ -375,11 +375,11 @@ export default class DeckBuilder extends Vue {
}
private elementIconURL(element: string): string {
return `/images/elements/${element.toLowerCase()}.webp`;
return require(`../assets/images/elements/${element.toLowerCase()}.webp`);
}
private setIconURL(set: string): string {
return `/images/sets/${set.toUpperCase()}.webp`;
return require(`../assets/images/sets/${set.toUpperCase()}.webp`);
}
private typeIconURL(type: string): string {
@ -387,7 +387,7 @@ export default class DeckBuilder extends Vue {
if (urltype == "mane character") {
urltype = "mane-char";
}
return `/images/cardtypes/${urltype}.webp`;
return require(`../assets/images/cardtypes/${urltype}.webp`);
}
private elementIconClass(element: string) {