mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Added a label displaying religion is off when it is off (#5412)
This commit is contained in:
parent
dc2ab6135c
commit
7752e1834d
@ -1104,6 +1104,7 @@ Founding Civ: =
|
|||||||
Holy City: =
|
Holy City: =
|
||||||
Cities following this religion: =
|
Cities following this religion: =
|
||||||
Click an icon to see the stats of this religion =
|
Click an icon to see the stats of this religion =
|
||||||
|
Religion: Off =
|
||||||
|
|
||||||
# Terrains
|
# Terrains
|
||||||
|
|
||||||
|
@ -150,8 +150,7 @@ class GameOptionsTable(
|
|||||||
|
|
||||||
private fun Table.addEraSelectBox() {
|
private fun Table.addEraSelectBox() {
|
||||||
if (ruleset.technologies.isEmpty()) return // mod with no techs
|
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.eras.keys
|
||||||
val eras = ruleset.technologies.values.filter { !it.uniques.contains("Starting tech") }.map { it.era() }.distinct()
|
|
||||||
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
|
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
|
||||||
{ gameParameters.startingEra = it }
|
{ gameParameters.startingEra = it }
|
||||||
}
|
}
|
||||||
|
@ -136,6 +136,8 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
|
|||||||
|
|
||||||
faithLabel.onClick(invokeFaithOverview)
|
faithLabel.onClick(invokeFaithOverview)
|
||||||
faithImage.onClick(invokeFaithOverview)
|
faithImage.onClick(invokeFaithOverview)
|
||||||
|
} else {
|
||||||
|
statsTable.add("Religion: Off".toLabel()).padLeft(20f)
|
||||||
}
|
}
|
||||||
|
|
||||||
statsTable.pack()
|
statsTable.pack()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user