Merge tag '1.5.0' into develop

1.5.0
This commit is contained in:
ntr 2019-09-22 20:29:03 +10:00
commit 7bfe40f3b9
7 changed files with 18 additions and 7 deletions

View File

@ -1 +1 @@
1.4.8 1.5.0

View File

@ -1,6 +1,6 @@
{ {
"name": "mnml-client", "name": "mnml-client",
"version": "1.4.8", "version": "1.5.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -116,7 +116,7 @@ aside {
flex: 0; flex: 0;
} }
.ready { .ready, .quit {
flex: 1; flex: 1;
font-size: 200%; font-size: 200%;
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "mnml-client", "name": "mnml-client",
"version": "1.4.8", "version": "1.5.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -54,17 +54,28 @@ function GameCtrlBtns(args) {
game, game,
animating, animating,
getInstanceState,
sendGameSkillClear, sendGameSkillClear,
sendReady, sendReady,
quit,
} = args; } = args;
if (!game) return false; if (!game) return false;
const finished = game.phase === 'Finish';
function quitClick() {
getInstanceState();
quit();
}
const readyBtn = <button disabled={animating} class="ready" onClick={() => sendReady()}>Ready</button>;
const quitBtn = <button disabled={animating} class="quit" onClick={quitClick}>Back</button>;
return ( return (
<div class="game-ctrl-btns"> <div class="game-ctrl-btns">
<button disabled={true} >Chat</button> <button disabled={true} >Chat</button>
<button disabled={animating} onClick={sendGameSkillClear}>Clear</button> <button disabled={animating} onClick={sendGameSkillClear}>Clear</button>
<button disabled={animating} class="ready" onClick={() => sendReady()}>Ready</button> {finished ? quitBtn : readyBtn}
</div> </div>
); );
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "mnml-ops", "name": "mnml-ops",
"version": "1.4.8", "version": "1.5.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
[package] [package]
name = "mnml" name = "mnml"
version = "1.4.8" version = "1.5.0"
authors = ["ntr <ntr@smokestack.io>"] authors = ["ntr <ntr@smokestack.io>"]
[dependencies] [dependencies]