From dcb7daaabd131daaf89915cba74c544ec83adbcd Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 12 May 2019 19:33:08 +0200 Subject: [PATCH] minor ui fixes --- core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt | 4 ++-- core/src/com/unciv/ui/worldscreen/WorldScreen.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt index 8248408eab..c78fa55a53 100644 --- a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt +++ b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt @@ -25,7 +25,7 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu minitable.add(ImageGetter.getCircle() .apply { color=notification.color }).size(10f).pad(5f) minitable.background(ImageGetter.getDrawable("OtherIcons/civTableBackground.png")) - minitable.add(label).pad(3f).padRight(10f) + minitable.add(label).pad(5f).padRight(10f) if (notification.location != null) { minitable.onClick { @@ -41,4 +41,4 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu height = min(notificationsTable.height,worldScreen.stage.height/3) } -} \ No newline at end of file +} diff --git a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt index c1931ed4d4..653e8df7da 100644 --- a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt +++ b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt @@ -263,7 +263,7 @@ class WorldScreen : CameraStageBaseScreen() { val gameInfoClone = gameInfo.clone() kotlin.concurrent.thread { - // the save takes a long time( up to a second!) and we can do it while the player continues his game. + // the save takes a long time (up to a second!) and we can do it while the player continues his game. // On the other hand if we alter the game data while it's being serialized we could get a concurrent modification exception. // So what we do is we clone all the game data and serialize the clone. if(gameInfo.turns % game.settings.turnsBetweenAutosaves == 0) @@ -278,6 +278,7 @@ class WorldScreen : CameraStageBaseScreen() { // That's why this needs to be after the game is saved. shouldUpdate=true + updateNextTurnButton() Gdx.input.inputProcessor = stage } }