mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
CityScreen resize (#4117)
This commit is contained in:
parent
eda6dece9c
commit
1bf6253d87
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user