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",
"version": "1.4.8",
"version": "1.5.0",
"description": "",
"main": "index.js",
"scripts": {

View File

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

View File

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

View File

@ -54,17 +54,28 @@ function GameCtrlBtns(args) {
game,
animating,
getInstanceState,
sendGameSkillClear,
sendReady,
quit,
} = args;
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 (
<div class="game-ctrl-btns">
<button disabled={true} >Chat</button>
<button disabled={animating} onClick={sendGameSkillClear}>Clear</button>
<button disabled={animating} class="ready" onClick={() => sendReady()}>Ready</button>
{finished ? quitBtn : readyBtn}
</div>
);
}

View File

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

View File

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