mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
fixed zoom buttons not toggling without reloading the worldscreen (#7378)
* feature * readablity
This commit is contained in:
parent
f3e043cd8f
commit
aadec7e211
@ -155,9 +155,8 @@ class WorldScreen(
|
|||||||
stage.addActor(techPolicyAndDiplomacy)
|
stage.addActor(techPolicyAndDiplomacy)
|
||||||
stage.addActor(tutorialTaskTable)
|
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(fogOfWarButton)
|
||||||
stage.addActor(bottomUnitTable)
|
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
|
// 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 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)
|
// it causes a bug when we move a unit to an unexplored tile (for instance a cavalry unit which can move far)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user