if (!!lm) {
if (!Array.isArray(lm)) lm = [lm];
lm.forEach(m => {
- lmHighlights[m.start.x + sizeX * m.start.y] = true;
- lmHighlights[m.end.x + sizeX * m.end.y] = true;
+ if (V.OnBoard(m.start.x, m.start.y))
+ lmHighlights[m.start.x + sizeX * m.start.y] = true;
+ if (V.OnBoard(m.end.x, m.end.y))
+ lmHighlights[m.end.x + sizeX * m.end.y] = true;
});
}
const showLight = (
attrs: {
src:
"/images/pieces/" +
- this.vr.getReservePpath(i, playingColor) +
+ this.vr.getReservePpath(i, playingColor, orientation) +
".svg"
}
}),
attrs: {
src:
"/images/pieces/" +
- this.vr.getReservePpath(i, oppCol) +
+ this.vr.getReservePpath(i, oppCol, orientation) +
".svg"
}
}),
</script>
<style lang="sass" scoped>
+@import "@/styles/_board_squares_img.sass";
+
// NOTE: no variants with reserve of size != 8
.game.reserve-div
margin-bottom: 18px
background-color: #9f9fff
.dark-square.chesstempo.highlight-dark
background-color: #557fff
-
</style>