Add basic deck builder #12
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 6 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 7 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
|
@ -41,7 +41,7 @@
|
||||||
</section>
|
</section>
|
||||||
<section class="cards">
|
<section class="cards">
|
||||||
<div @click="prevPage" :class="canGoPrev ? 'prev' : 'prev unavailable'">
|
<div @click="prevPage" :class="canGoPrev ? 'prev' : 'prev unavailable'">
|
||||||
<img src="/images/deckbuilder/navarrow.svg" />
|
<img src="../assets/images/deckbuilder/navarrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
<CardPicker
|
<CardPicker
|
||||||
@picked="cardPicked"
|
@picked="cardPicked"
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
:cards="currentPage"
|
:cards="currentPage"
|
||||||
/>
|
/>
|
||||||
<div @click="nextPage" :class="canGoNext ? 'next' : 'next unavailable'">
|
<div @click="nextPage" :class="canGoNext ? 'next' : 'next unavailable'">
|
||||||
<img src="/images/deckbuilder/navarrow.svg" />
|
<img src="../assets/images/deckbuilder/navarrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.deckbuilder {
|
.deckbuilder {
|
||||||
background: url("/images/backgrounds/deckbuilderbg.webp") center;
|
background: url("../assets/images/backgrounds/deckbuilderbg.webp") center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -375,11 +375,11 @@ export default class DeckBuilder extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
private elementIconURL(element: string): string {
|
private elementIconURL(element: string): string {
|
||||||
return `/images/elements/${element.toLowerCase()}.webp`;
|
return require(`../assets/images/elements/${element.toLowerCase()}.webp`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private setIconURL(set: string): string {
|
private setIconURL(set: string): string {
|
||||||
return `/images/sets/${set.toUpperCase()}.webp`;
|
return require(`../assets/images/sets/${set.toUpperCase()}.webp`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private typeIconURL(type: string): string {
|
private typeIconURL(type: string): string {
|
||||||
|
@ -387,7 +387,7 @@ export default class DeckBuilder extends Vue {
|
||||||
if (urltype == "mane character") {
|
if (urltype == "mane character") {
|
||||||
urltype = "mane-char";
|
urltype = "mane-char";
|
||||||
}
|
}
|
||||||
return `/images/cardtypes/${urltype}.webp`;
|
return require(`../assets/images/cardtypes/${urltype}.webp`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private elementIconClass(element: string) {
|
private elementIconClass(element: string) {
|
||||||
|
|