From b6e2b72b5cc3841494b5436e5e9c237911a3cc55 Mon Sep 17 00:00:00 2001 From: lishaoxia1985 <49801619+lishaoxia1985@users.noreply.github.com> Date: Thu, 13 Feb 2020 15:20:04 +0800 Subject: [PATCH] The size of minimap will change with resolution changing. (#1922) --- core/src/com/unciv/ui/worldscreen/Minimap.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/Minimap.kt b/core/src/com/unciv/ui/worldscreen/Minimap.kt index 6b0e797b88..9006dbc409 100644 --- a/core/src/com/unciv/ui/worldscreen/Minimap.kt +++ b/core/src/com/unciv/ui/worldscreen/Minimap.kt @@ -40,7 +40,7 @@ class Minimap(val mapHolder: WorldMapHolder) : ScrollPane(null){ val hex = ImageGetter.getImage("OtherIcons/Hexagon") val positionalVector = HexMath.hex2WorldCoords(tileInfo.position) - val groupSize = mapHolder.worldScreen.stage.height / 8f / mapHolder.tileMap.mapParameters.size.radius + val groupSize = mapHolder.worldScreen.stage.height / 8f / mapHolder.tileMap.mapParameters.size.radius * (mapHolder.worldScreen.stage.height / 600f) hex.setSize(groupSize,groupSize) hex.setPosition(positionalVector.x * 0.5f * groupSize, positionalVector.y * 0.5f * groupSize)