mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-19 12:18:53 +07:00
minor ui fixes
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user