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 |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = 전쟁
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = Война
|
||||
|
|
|
@ -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 = 战争
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = 戰爭
|
||||
|
|
|
@ -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 = Війна
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -298,6 +298,8 @@ Pick a construction =
|
|||
Queue empty =
|
||||
Add to queue =
|
||||
Remove from queue =
|
||||
Show stats drilldown =
|
||||
Show construction queue =
|
||||
|
||||
Diplomacy =
|
||||
War =
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue