Better civilopedia icons for buildings and units

This commit is contained in:
Yair Morgenstern 2020-07-10 16:40:20 +03:00
parent 1020dd217e
commit bc6ce6e54d

View file

@ -50,7 +50,7 @@ class CivilopediaScreen(ruleset: Ruleset) : CameraStageBaseScreen() {
categoryToEntries["Buildings"] = ruleset.buildings.values
.map { CivilopediaEntry(it.name,it.getDescription(false, null,ruleset),
ImageGetter.getConstructionImage(it.name)) }
ImageGetter.getConstructionImage(it.name).surroundWithCircle(50f)) }
categoryToEntries["Resources"] = ruleset.tileResources.values
.map { CivilopediaEntry(it.name,it.getDescription(ruleset),
ImageGetter.getResourceImage(it.name,50f)) }
@ -62,7 +62,7 @@ class CivilopediaScreen(ruleset: Ruleset) : CameraStageBaseScreen() {
ImageGetter.getImprovementIcon(it.name,50f)) }
categoryToEntries["Units"] = ruleset.units.values
.map { CivilopediaEntry(it.name,it.getDescription(false),
ImageGetter.getConstructionImage(it.name)) }
ImageGetter.getConstructionImage(it.name).surroundWithCircle(50f)) }
categoryToEntries["Nations"] = ruleset.nations.values
.filter { it.isMajorCiv() }
.map { CivilopediaEntry(it.name,it.getUniqueString(ruleset,false),