From 910ccf1804033a940a36273e21d4a586a26a6145 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 9 Mar 2018 18:11:10 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/common/views/components/othello.game.vue | 6 ++++-- src/web/app/common/views/components/othello.room.vue | 16 +++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'src/web') diff --git a/src/web/app/common/views/components/othello.game.vue b/src/web/app/common/views/components/othello.game.vue index ffda68c8db..248528ed41 100644 --- a/src/web/app/common/views/components/othello.game.vue +++ b/src/web/app/common/views/components/othello.game.vue @@ -10,9 +10,9 @@

-
+
@@ -106,6 +106,8 @@ export default Vue.extend({ this.o.put(log.color, log.pos); }); + console.log(this.o); + this.logs = this.game.logs; this.logPos = this.logs.length; }, diff --git a/src/web/app/common/views/components/othello.room.vue b/src/web/app/common/views/components/othello.room.vue index bcae37b227..0fcca85485 100644 --- a/src/web/app/common/views/components/othello.room.vue +++ b/src/web/app/common/views/components/othello.room.vue @@ -4,14 +4,17 @@

ゲームの設定

- + - + + {{ m.name }} + (by {{ m.author }}) + -
-
+
@@ -112,7 +115,7 @@ export default Vue.extend({ }, onMapChange(v) { - this.game.settings.map = Object.entries(maps).find(x => x[1].name == v)[1]; + this.game.settings.map = Object.entries(maps).find(x => x[1].name == v)[1].data; this.connection.send({ type: 'update-settings', settings: this.game.settings @@ -141,6 +144,9 @@ export default Vue.extend({ padding 8px border-bottom dashed 1px #c4cdd4 + > .map + width 300px + > .board display grid grid-gap 4px -- cgit v1.2.3-freya