small minimap fix

This commit is contained in:
Yair Morgenstern 2020-04-19 22:55:48 +03:00
parent c449e68ba7
commit 122b815fc0
2 changed files with 3 additions and 3 deletions

View file

@ -480,7 +480,7 @@ class CityStats {
if (cityInfo.cityConstructions.currentConstructionFromQueue == Constants.settler && totalFood > 0) {
newFinalStatList["Excess food to production"] =
Stats().apply { production=totalFood; food=-totalFood }
Stats().apply { production = totalFood; food = -totalFood }
}
if (cityInfo.isInResistance())

View file

@ -135,8 +135,8 @@ class MinimapHolder(mapHolder: WorldMapHolder): Table(){
}
toggleIconTable.add(populationImage).row()
val resourceImage = ImageGetter.getImage("ResourceImages/Cattle").surroundWithCircle(40f)
resourceImage.circle.color = Color.BLACK
val resourceImage = ImageGetter.getImage("ResourceIcons/Cattle").surroundWithCircle(40f)
// resourceImage.circle.color = Color.BLACK
resourceImage.actor.color.a = if(settings.showResourcesAndImprovements) 1f else 0.5f
resourceImage.onClick {
settings.showResourcesAndImprovements = !settings.showResourcesAndImprovements