mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-19 16:57:38 +07:00
Resolve #9262 - scale down unit overlays on zoom in to allow selecting bombard target above city
This commit is contained in:
parent
a40e8c31b9
commit
f6f0c7a050
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user