fixed zoom buttons not toggling without reloading the worldscreen (#7378)

* feature

* readablity
This commit is contained in:
alexban011
2022-07-05 22:06:38 +03:00
committed by GitHub
parent f3e043cd8f
commit aadec7e211

View File

@ -155,9 +155,8 @@ class WorldScreen(
stage.addActor(techPolicyAndDiplomacy)
stage.addActor(tutorialTaskTable)
if (UncivGame.Current.settings.showZoomButtons) {
stage.addActor(zoomController)
}
stage.addActor(zoomController)
zoomController.isVisible = UncivGame.Current.settings.showZoomButtons
stage.addActor(fogOfWarButton)
stage.addActor(bottomUnitTable)
@ -394,6 +393,8 @@ class WorldScreen(
)
}
zoomController.isVisible = UncivGame.Current.settings.showZoomButtons
// if we use the clone, then when we update viewable tiles
// it doesn't update the explored tiles of the civ... need to think about that harder
// it causes a bug when we move a unit to an unexplored tile (for instance a cavalry unit which can move far)