CityScreen resize (#4117)

This commit is contained in:
SomeTroglodyte 2021-06-12 22:20:34 +02:00 committed by GitHub
parent eda6dece9c
commit 1bf6253d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,4 +252,9 @@ class CityScreen(internal val city: CityInfo): CameraStageBaseScreen() {
game.setScreen(newCityScreen)
}
override fun resize(width: Int, height: Int) {
if (stage.viewport.screenWidth != width || stage.viewport.screenHeight != height) {
game.setScreen(CityScreen(city))
}
}
}