mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-05 23:20:48 +07:00
Lines go behind the techs in the tech screen, and are colored so you can trace the path of the current research queue
This commit is contained in:
parent
5553be0d67
commit
256eedc7c0
@ -192,11 +192,13 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec
|
||||
val lineColor = when {
|
||||
civTech.isResearched(tech.name) && !tech.isContinuallyResearchable() -> researchedTechColor
|
||||
civTech.isResearched(prerequisite) -> researchableTechColor
|
||||
tempTechsToResearch.contains(tech.name) -> queuedTechColor
|
||||
else -> Color.GRAY
|
||||
}
|
||||
line.color = lineColor
|
||||
|
||||
techTable.addActor(line)
|
||||
line.toBack()
|
||||
lines.add(line)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user