mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 04:55:15 +00:00
先行後攻を決められるように
This commit is contained in:
parent
da99d7e6cd
commit
ec176831bf
1 changed files with 13 additions and 0 deletions
|
@ -24,6 +24,11 @@
|
|||
|
||||
<div class="rules">
|
||||
<mk-switch v-model="game.settings.is_llotheo" @change="onIsLlotheoChange" text="石の少ない方が勝ち(ロセオ)"/>
|
||||
<div>
|
||||
<el-radio v-model="game.settings.bw" label="random" @change="onBwChange">ランダム</el-radio>
|
||||
<el-radio v-model="game.settings.bw" :label="1" @change="onBwChange">{{ game.user1.name }}が先行</el-radio>
|
||||
<el-radio v-model="game.settings.bw" :label="2" @change="onBwChange">{{ game.user2.name }}が先行</el-radio>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
|
@ -129,6 +134,14 @@ export default Vue.extend({
|
|||
settings: this.game.settings
|
||||
});
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
onBwChange(v) {
|
||||
this.connection.send({
|
||||
type: 'update-settings',
|
||||
settings: this.game.settings
|
||||
});
|
||||
this.$forceUpdate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue