time control
This commit is contained in:
@@ -57,7 +57,7 @@ function Instance(args) {
|
||||
}
|
||||
|
||||
function ScoreBoard() {
|
||||
if (instance.phase !== 'Lobby') return null;
|
||||
if (instance.phase === 'InProgress') return null;
|
||||
|
||||
const players = instance.players.map((p, i) => {
|
||||
const pText = playerText(p);
|
||||
|
||||
@@ -56,23 +56,26 @@ class InstanceCreateForm extends Component {
|
||||
return (
|
||||
<div class={classes}>
|
||||
<form>
|
||||
<label>instance name</label>
|
||||
<input
|
||||
class="login-input"
|
||||
type="text"
|
||||
disabled={disabled}
|
||||
value={this.state.name}
|
||||
placeholder="game name"
|
||||
onInput={this.nameInput}
|
||||
/>
|
||||
<label htmlFor="pveSelect">vs CPU</label>
|
||||
<input id="pveSelect"
|
||||
type="checkbox"
|
||||
disabled={disabled}
|
||||
checked={this.state.pve}
|
||||
onChange={this.pveChange}
|
||||
>
|
||||
</input>
|
||||
<fieldset>
|
||||
<legend>New Instance</legend>
|
||||
<label>instance name</label>
|
||||
<input
|
||||
class="login-input"
|
||||
type="text"
|
||||
disabled={disabled}
|
||||
value={this.state.name}
|
||||
placeholder="game name"
|
||||
onInput={this.nameInput}
|
||||
/>
|
||||
<label htmlFor="pveSelect">Practice Mode - Bo10, vs CPU, 2x turn time</label>
|
||||
<input id="pveSelect"
|
||||
type="checkbox"
|
||||
disabled={disabled}
|
||||
checked={this.state.pve}
|
||||
onChange={this.pveChange}
|
||||
>
|
||||
</input>
|
||||
</fieldset>
|
||||
</form>
|
||||
<button
|
||||
onClick={this.handleSubmit}
|
||||
|
||||
Reference in New Issue
Block a user