Added a label displaying religion is off when it is off (#5412)

This commit is contained in:
Xander Lenstra
2021-10-06 16:06:49 +02:00
committed by GitHub
parent dc2ab6135c
commit 7752e1834d
3 changed files with 4 additions and 2 deletions

View File

@ -1104,6 +1104,7 @@ Founding Civ: =
Holy City: =
Cities following this religion: =
Click an icon to see the stats of this religion =
Religion: Off =
# Terrains

View File

@ -150,8 +150,7 @@ class GameOptionsTable(
private fun Table.addEraSelectBox() {
if (ruleset.technologies.isEmpty()) return // mod with no techs
// Should eventually be changed to use eras.json, but we'll keep it like this for now for mod compatibility
val eras = ruleset.technologies.values.filter { !it.uniques.contains("Starting tech") }.map { it.era() }.distinct()
val eras = ruleset.eras.keys
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
{ gameParameters.startingEra = it }
}

View File

@ -136,6 +136,8 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
faithLabel.onClick(invokeFaithOverview)
faithImage.onClick(invokeFaithOverview)
} else {
statsTable.add("Religion: Off".toLabel()).padLeft(20f)
}
statsTable.pack()