Minimap reverted to previous "see constant size" - "see everything" is of no use at al on large maps

Feature graphic updated
This commit is contained in:
Yair Morgenstern 2020-04-19 14:11:09 +03:00
parent aefe5ec9b0
commit 14d526605f
3 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,6 @@ class Minimap(val mapHolder: WorldMapHolder) : ScrollPane(null){
}
init{
setScrollingDisabled(true,true)
var topX = 0f
var topY = 0f
var bottomX = 0f
@ -39,7 +38,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 * (mapHolder.worldScreen.stage.height / 600f)
val groupSize = 10f
hex.setSize(groupSize,groupSize)
hex.setPosition(positionalVector.x * 0.5f * groupSize,
positionalVector.y * 0.5f * groupSize)
@ -110,7 +109,7 @@ class MinimapHolder(mapHolder: WorldMapHolder): Table(){
fun getWrappedMinimap(): Table {
val internalMinimapWrapper = Table()
internalMinimapWrapper.add(minimap)
internalMinimapWrapper.add(minimap).size(worldScreen.stage.width/5,worldScreen.stage.height/5)
internalMinimapWrapper.background=ImageGetter.getBackground(Color.GRAY)
internalMinimapWrapper.pack()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -1,5 +1,6 @@
#Sun Apr 19 13:05:52 IDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip