diff options
3 files changed, 14 insertions, 4 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt index a5cb9538..778ef684 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt @@ -29,6 +29,16 @@ private class ChooseNameForm(props: ChooseNameFormProps): RComponent<ChooseNameF form { attrs.onSubmitFunction = { props.chooseUsername(state.username) } + // TODO <InputGroup + // className={Classes.LARGE} + // placeholder="Username" + // onChange={(e: ChangeEvent<HTMLInputElement>) => (this._username = e.target.value)} + // rightElement={this.renderSubmit()} + // /> + // Where: + // renderSubmit = () => ( + // <Button className={Classes.MINIMAL} onClick={this.play} intent={Intent.PRIMARY} icon="arrow-right" /> + // ); input(type = InputType.text) { attrs { value = state.username diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt index 360937ed..0858eff7 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt @@ -36,7 +36,7 @@ class LobbyPresenter(props: LobbyProps) : RComponent<LobbyProps, RState>(props) h2 { +"${currentGame.name} — Lobby" } radialPlayerList(props.players) if (currentPlayer.isGameOwner) { - // <Button text="START" + // TODO <Button text="START" // className={Classes.LARGE} // intent={Intent.PRIMARY} // icon='play' diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt index de6eabbd..3c98c3ce 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt @@ -94,9 +94,9 @@ private fun RBuilder.playerPlaceholder(): ReactElement = styledDiv { private fun RBuilder.userIcon(isUser: Boolean, isOwner: Boolean, title: String?): ReactElement { // TODO - // const icon: IconName = isOwner ? 'badge' : 'user'; - // const intent: Intent = isUser ? Intent.WARNING : Intent.NONE; - // return <Icon icon={icon} iconSize={50} intent={intent} title={title}/>; + // const icon: IconName = isOwner ? 'badge' : 'user'; + // const intent: Intent = isUser ? Intent.WARNING : Intent.NONE; + // return <Icon icon={icon} iconSize={50} intent={intent} title={title}/>; val owner = if (isOwner) "(owner)" else "" val user = if (isUser) "(me)" else "" val hint = listOf(owner, user).joinToString(" ") |