X-Git-Url: https://git.auder.net/variants/Checkered/style.css?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=dd8c5c86fee436bc02a4cbb25b3d84089382bc41;hb=0e16cb26f6380f57f1079ece9bdb654243073bde;hp=608a98d464ebff3410336c9b7ff3dc66f6176d4d;hpb=3837d4f7885a3c3cdb468da2f3fa3fa1e5a1415a;p=vchess.git
diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue
index 608a98d4..dd8c5c86 100644
--- a/client/src/components/BaseGame.vue
+++ b/client/src/components/BaseGame.vue
@@ -1,15 +1,18 @@
-div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys")
+div#baseGame(tabindex=-1 @click="() => focusBg()"
+ @keydown="handleKeys" @wheel="handleScroll")
input#modalEog.modal(type="checkbox")
- div(role="dialog" aria-labelledby="eogMessage")
+ div(role="dialog" data-checkbox="modalEog" aria-labelledby="eogMessage")
.card.smallpad.small-modal.text-center
label.modal-close(for="modalEog")
h3#eogMessage.section {{ endgameMessage }}
- .row
- #boardContainer.col-sm-12.col-md-9
+ #gameContainer
+ #boardContainer
Board(:vr="vr" :last-move="lastMove" :analyze="game.mode=='analyze'"
:user-color="game.mycolor" :orientation="orientation"
:vname="game.vname" @play-move="play")
+ #turnIndicator(v-if="game.vname=='Dark' && game.mode!='analyze'")
+ | {{ turn }}
#controls
button(@click="gotoBegin") <<
button(@click="() => undo()") <
@@ -19,11 +22,15 @@ div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys")
#pgnDiv
a#download(href="#")
button(@click="download") {{ st.tr["Download PGN"] }}
- button(v-if="game.mode!='analyze'" @click="analyzePosition")
+ button(v-if="game.vname!='Dark' && game.mode!='analyze'"
+ @click="analyzePosition")
| {{ st.tr["Analyze"] }}
- .col-sm-12.col-md-3
+ button(@click="showRules") {{ st.tr["Rules"] }}
+ #movesList
MoveList(v-if="showMoves" :score="game.score" :message="game.scoreMsg"
- :moves="moves" :cursor="cursor" @goto-move="gotoMove")
+ :firstNum="firstMoveNumber" :moves="moves" :cursor="cursor"
+ @goto-move="gotoMove")
+ .clearer
-