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=27821c3af07a847114a89d192c862ca2f94bce3d;hpb=cf94b843f223b34fd2f3680112a183f6d5cd409c;p=vchess.git
diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue
index 27821c3a..dd8c5c86 100644
--- a/client/src/components/BaseGame.vue
+++ b/client/src/components/BaseGame.vue
@@ -1,7 +1,8 @@
-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 }}
@@ -10,6 +11,8 @@ div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys")
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,14 +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"] }}
+ button(@click="showRules") {{ st.tr["Rules"] }}
#movesList
MoveList(v-if="showMoves" :score="game.score" :message="game.scoreMsg"
:firstNum="firstMoveNumber" :moves="moves" :cursor="cursor"
@goto-move="gotoMove")
- // TODO: clearer required ?!
- .clearer
+ .clearer
-