Fix city screen (#1657)

* Last CityScreen fix

* Atlas & Translations
This commit is contained in:
r3versi 2020-01-11 21:46:17 +01:00 committed by Yair Morgenstern
parent c37ea14df5
commit a1b03849ec
26 changed files with 569 additions and 505 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 B

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 885 KiB

After

Width:  |  Height:  |  Size: 884 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 KiB

After

Width:  |  Height:  |  Size: 309 KiB

View file

@ -309,6 +309,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomacie
War = Válka

View file

@ -468,6 +468,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomatiek
War = Oorlog

View file

@ -519,6 +519,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
# Requires translation!
Diplomacy =

View file

@ -307,6 +307,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomatie
War = Guerre

View file

@ -312,6 +312,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomatie
War = Krieg

View file

@ -321,6 +321,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomasi
War = Perang

View file

@ -305,6 +305,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomazia
War = Guerra

View file

@ -321,6 +321,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = 외교
War = 전쟁

View file

@ -471,6 +471,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomasi
War = Perang

View file

@ -307,6 +307,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Dyplomacja
War = Wojna

View file

@ -309,6 +309,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomacia
War = Guerra

View file

@ -402,6 +402,23 @@ Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Current construction =
# Requires translation!
Construction queue =
# Requires translation!
Pick a construction =
# Requires translation!
Queue empty =
# Requires translation!
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomaţie
War = Război
Peace = Pace

View file

@ -307,6 +307,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Дипломатия
War = Война

View file

@ -308,6 +308,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = 外交
War = 战争

View file

@ -307,6 +307,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Diplomacia
War = Guerra

View file

@ -308,6 +308,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = 外交
War = 戰爭

View file

@ -307,6 +307,10 @@ Queue empty =
Add to queue =
# Requires translation!
Remove from queue =
# Requires translation!
Show stats drilldown =
# Requires translation!
Show construction queue =
Diplomacy = Дипломатія
War = Війна

View file

@ -1,7 +1,7 @@
Traditional_Chinese = 95
Italian = 99
Polish = 99
Russian = 99
Polish = 98
Romanian = 48
Korean = 93
Simplified_Chinese = 95
@ -13,5 +13,5 @@ Portuguese = 82
Indonesian = 74
Czech = 95
Malay = 13
Spanish = 98
Czech = 95
Dutch = 25

View file

@ -298,6 +298,8 @@ Pick a construction =
Queue empty =
Add to queue =
Remove from queue =
Show stats drilldown =
Show construction queue =
Diplomacy =
War =

View file

@ -305,10 +305,6 @@ class CityConstructions {
ConstructionAutomation(this).chooseNextConstruction()
}
fun isEnqueuable(constructionName: String): Boolean {
return true
}
fun addToQueue(constructionName: String) {
if (!isQueueFull()) {
if (isQueueEmpty() && currentConstruction == "Nothing") {

View file

@ -18,8 +18,8 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
private val pad = 10f
private val showConstructionsTableButton = TextButton("Show construction queue", skin)
private val cityInfoScrollPane: ScrollPane
private val cityInfoTable = Table(skin)
private val scrollPane: ScrollPane
private val innerTable = Table(skin)
init {
showConstructionsTableButton.onClick {
@ -27,28 +27,27 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
cityScreen.update()
}
cityInfoTable.width = cityScreen.stage.width/4
cityInfoTable.background = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK,0.5f))
cityInfoScrollPane = ScrollPane(cityInfoTable.addBorder(2f, Color.WHITE))
cityInfoScrollPane.setOverscroll(false, false)
innerTable.width = cityScreen.stage.width/4
innerTable.background = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK,0.5f))
scrollPane = ScrollPane(innerTable.addBorder(2f, Color.WHITE))
scrollPane.setOverscroll(false, false)
add(showConstructionsTableButton).left().padLeft(pad).padBottom(pad).row()
add(cityInfoScrollPane).left().row()
add(scrollPane).left().row()
}
internal fun update() {
val cityInfo = cityScreen.city
cityInfoTable.clear()
innerTable.clear()
//TODO: Sorry, this is a hack, i'm getting tired and needed some content to test the idea
cityInfoTable.apply {
innerTable.apply {
addBuildingsInfo(cityInfo)
addStatInfo()
addGreatPersonPointInfo(cityInfo)
}
getCell(cityInfoScrollPane).maxHeight(stage.height - showConstructionsTableButton.height - pad - 10f)
getCell(scrollPane).maxHeight(stage.height - showConstructionsTableButton.height - pad - 10f)
pack()
}