Button for current civilopedia entry is now marked

This commit is contained in:
Yair Morgenstern 2021-03-28 22:07:05 +03:00
parent 63e10dde71
commit b7d07ca2da

View File

@ -45,6 +45,8 @@ class CivilopediaScreen(ruleset: Ruleset) : CameraStageBaseScreen() {
entryButton.add(entry.name.toLabel())
entryButton.onClick {
description.setText(entry.description)
entrySelectTable.children.forEach { it.color = Color.WHITE }
entryButton.color = Color.BLUE
}
entrySelectTable.add(entryButton).left().row()
}