mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
fixed zoom buttons not toggling without reloading the worldscreen (#7378)
* feature * readablity
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user