mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Color lands by owner on max zoom out, for better overview
This commit is contained in:
parent
de9e9c9127
commit
d9c008206a
@ -907,6 +907,16 @@ class WorldMapHolder(
|
|||||||
override fun zoom(zoomScale: Float) {
|
override fun zoom(zoomScale: Float) {
|
||||||
super.zoom(zoomScale)
|
super.zoom(zoomScale)
|
||||||
|
|
||||||
|
if (scaleX == minZoom)
|
||||||
|
for (tileGroup in tileGroups.values){
|
||||||
|
if (!worldScreen.viewingCiv.hasExplored(tileGroup.tile)) continue
|
||||||
|
val owner = tileGroup.tile.getOwner()
|
||||||
|
if (owner != null) tileGroup.layerMisc.overlayTerrain(owner.nation.getOuterColor(), 0.7f)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
for (tileGroup in tileGroups.values)
|
||||||
|
tileGroup.layerMisc.hideTerrainOverlay()
|
||||||
|
|
||||||
clampCityButtonSize()
|
clampCityButtonSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user