X-Git-Url: https://git.auder.net/variants/Baroque/style.css?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=ea07a6dcdada778e0c2b2cea54b0a9a4fa480337;hb=f51c37cf24a7d695cdd51a3b0298a8ff64c3963a;hp=5c82b0b1573975e88df06dd4cf0089fb5d1e7a3d;hpb=72ccbd6730241771e6ba86b6a5b62597b4c7e2f4;p=vchess.git
diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue
index 5c82b0b1..ea07a6dc 100644
--- a/client/src/components/BaseGame.vue
+++ b/client/src/components/BaseGame.vue
@@ -1,29 +1,47 @@
-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#eogDiv(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
+ input#modalAdjust.modal(type="checkbox")
+ div#adjuster(role="dialog" data-checkbox="modalAdjust" aria-labelledby="labelAdjust")
+ .card.smallpad.small-modal.text-center
+ label.modal-close(for="modalAdjust")
+ label#labelAdjust(for="boardSize") {{ st.tr["Board size"] }}
+ input#boardSize.slider(type="range" min="0" max="100" value="50"
+ @input="adjustBoard")
+ #gameContainer
+ #boardContainer
Board(:vr="vr" :last-move="lastMove" :analyze="analyze"
:user-color="game.mycolor" :orientation="orientation"
- :vname="game.vname" @play-move="play")
+ :vname="game.vname" :incheck="incheck" @play-move="play")
+ #turnIndicator(v-if="game.vname=='Dark' && game.score=='*'")
+ | {{ turn }}
#controls
button(@click="gotoBegin") <<
button(@click="() => undo()") <
button(@click="flip") ⇅
button(@click="() => play()") >
button(@click="gotoEnd") >>
- #fenDiv(v-if="showFen && !!vr")
- p(@click="gotoFenContent") {{ vr.getFen() }}
#pgnDiv
- a#download(href="#")
- button(@click="download") {{ st.tr["Download PGN"] }}
- .col-sm-12.col-md-3
- MoveList(v-if="showMoves"
- :moves="moves" :cursor="cursor" @goto-move="gotoMove")
+ #downloadDiv(v-if="game.vname!='Dark' || game.score!='*'")
+ a#download(href="#")
+ button(@click="download") {{ st.tr["Download PGN"] }}
+ button(onClick="doClick('modalAdjust')") ⤢
+ button(v-if="game.vname!='Dark' && game.mode!='analyze'"
+ @click="analyzePosition")
+ | {{ st.tr["Analyze"] }}
+ // NOTE: rather ugly hack to avoid showing twice "rules" link...
+ button(v-if="!$route.path.match('/variants/')" @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")
+ .clearer
-