summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-16 23:25:10 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-16 23:25:10 +0100
commitad37999905c3009341c614a5a867aa419d747302 (patch)
tree255d4ed3b827b03e79897359300ae7b502de2b64
parentEnsure disconnected players are removed (diff)
downloadseven-wonders-ad37999905c3009341c614a5a867aa419d747302.tar.gz
seven-wonders-ad37999905c3009341c614a5a867aa419d747302.tar.bz2
seven-wonders-ad37999905c3009341c614a5a867aa419d747302.zip
Remove unused receiver
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt
index 001c862d..79e003cf 100644
--- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt
+++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt
@@ -57,7 +57,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta
styledDiv {
css {
height = 100.pct
- if (turnInfo.everyoneIsWaitingForMe()) {
+ if (everyoneIsWaitingForMe()) {
+GameStyles.pulsatingRed
}
}
@@ -93,7 +93,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta
}
}
- private fun PlayerTurnInfo.everyoneIsWaitingForMe(): Boolean {
+ private fun everyoneIsWaitingForMe(): Boolean {
val onlyMeInTheGame = props.players.count { it.isHuman } == 1
if (onlyMeInTheGame || props.preparedMove != null) {
return false
bgstack15