diff --git a/www/dom.js b/www/dom.js index 0a22053..997730e 100644 --- a/www/dom.js +++ b/www/dom.js @@ -27,4 +27,5 @@ function Dom() { } return e; } + } diff --git a/www/game.js b/www/game.js index 3688ea1..18c2e75 100644 --- a/www/game.js +++ b/www/game.js @@ -40,10 +40,23 @@ function Game(modules) { deck.removeChild(deck.lastChild); } } - if(status.playing && status.step == "Scored") { - play({koiKoi: confirm( - "You scored ! Do you want to go on ? Press cancel to just get your points and end current month" - )}); + if(status.step == "Scored") { + if(status.playing) { + modules.screen.dialog({ + text: "You scored ! Do you want to get your points and end the round or KoiKoi ?", + answers: { + 'End the round': function() {play({koiKoi: false})}, + 'KoiKoi !': function() {play({koiKoi: true});} + } + }); + } else { + modules.screen.dialog({ + text: modules.room.name(o.game.playing) + " scored", + answers: { + 'Ok': function() {} + } + }); + } } }); diff --git a/www/index.html b/www/index.html index 64ecb11..394454c 100644 --- a/www/index.html +++ b/www/index.html @@ -61,6 +61,8 @@ +