Resolve #9262 - scale down unit overlays on zoom in to allow selecting bombard target above city

This commit is contained in:
Yair Morgenstern 2023-05-04 10:28:24 +03:00
parent a40e8c31b9
commit f6f0c7a050

View File

@ -508,8 +508,8 @@ class WorldMapHolder(
actor.toFront()
actor.y += actor.height
actor.setOrigin(Align.bottom)
unitActionOverlays.add(actor)
}
/** Returns true when the civ is a human player defeated in singleplayer game */
@ -775,6 +775,10 @@ class WorldMapHolder(
tileGroup.layerCityButton.isTransform = true
tileGroup.layerCityButton.setScale(clampedCityButtonZoom)
}
for (actor in unitActionOverlays) {
if (actor is Group) actor.isTransform = true
actor.setScale(clampedCityButtonZoom)
}
}
}