X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=984a66bff76c7fd8ecc65e92a2205fefe82847ae;hb=dc284d90d4f9228fc99e0b39394cbfded23657e5;hp=5eeb7fd5a6b472b38abd87fd7e42ff7ba2bc64a7;hpb=2cc10cdbc230f82202bdddb7a244c903c05ab351;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 5eeb7fd5..984a66bf 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -8,48 +8,32 @@
h3#abortBoxTitle.section {{ st.tr["Terminate game?"] }}
button(@click="abortGame") {{ st.tr["Sorry I have to go"] }}
button(@click="abortGame") {{ st.tr["Game seems over"] }}
- button(@click="abortGame") {{ st.tr["Game is too boring"] }}
BaseGame(:game="game" :vr="vr" ref="basegame"
@newmove="processMove" @gameover="gameOver")
- // TODO: also show players names
- div Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
+ div Names: {{ game.players[0].name }} - {{ game.players[1].name }}
+ div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
.button-group(v-if="game.mode!='analyze' && game.score=='*'")
button(@click="offerDraw") Draw
button(@click="() => abortGame()") Abort
button(@click="resign") Resign
- div(v-if="game.mode=='corr'")
- textarea(v-show="score=='*' && vr.turn==game.mycolor" v-model="corrMsg")
- div(v-show="cursor>=0") {{ moves[cursor].message }}
+ textarea(v-if="game.score=='*'" v-model="corrMsg")
+ Chat(:players="game.players")
-
-
+
+