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 =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomacie
|
Diplomacy = Diplomacie
|
||||||
War = Válka
|
War = Válka
|
||||||
|
|
|
@ -468,6 +468,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomatiek
|
Diplomacy = Diplomatiek
|
||||||
War = Oorlog
|
War = Oorlog
|
||||||
|
|
|
@ -519,6 +519,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Diplomacy =
|
Diplomacy =
|
||||||
|
|
|
@ -307,6 +307,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomatie
|
Diplomacy = Diplomatie
|
||||||
War = Guerre
|
War = Guerre
|
||||||
|
|
|
@ -312,6 +312,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomatie
|
Diplomacy = Diplomatie
|
||||||
War = Krieg
|
War = Krieg
|
||||||
|
|
|
@ -321,6 +321,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomasi
|
Diplomacy = Diplomasi
|
||||||
War = Perang
|
War = Perang
|
||||||
|
|
|
@ -305,6 +305,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomazia
|
Diplomacy = Diplomazia
|
||||||
War = Guerra
|
War = Guerra
|
||||||
|
|
|
@ -321,6 +321,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = 외교
|
Diplomacy = 외교
|
||||||
War = 전쟁
|
War = 전쟁
|
||||||
|
|
|
@ -471,6 +471,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomasi
|
Diplomacy = Diplomasi
|
||||||
War = Perang
|
War = Perang
|
||||||
|
|
|
@ -307,6 +307,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Dyplomacja
|
Diplomacy = Dyplomacja
|
||||||
War = Wojna
|
War = Wojna
|
||||||
|
|
|
@ -309,6 +309,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomacia
|
Diplomacy = Diplomacia
|
||||||
War = Guerra
|
War = Guerra
|
||||||
|
|
|
@ -402,6 +402,23 @@ Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
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
|
Diplomacy = Diplomaţie
|
||||||
War = Război
|
War = Război
|
||||||
Peace = Pace
|
Peace = Pace
|
||||||
|
|
|
@ -307,6 +307,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Дипломатия
|
Diplomacy = Дипломатия
|
||||||
War = Война
|
War = Война
|
||||||
|
|
|
@ -308,6 +308,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = 外交
|
Diplomacy = 外交
|
||||||
War = 战争
|
War = 战争
|
||||||
|
|
|
@ -307,6 +307,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Diplomacia
|
Diplomacy = Diplomacia
|
||||||
War = Guerra
|
War = Guerra
|
||||||
|
|
|
@ -308,6 +308,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = 外交
|
Diplomacy = 外交
|
||||||
War = 戰爭
|
War = 戰爭
|
||||||
|
|
|
@ -307,6 +307,10 @@ Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
# Requires translation!
|
# Requires translation!
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
# Requires translation!
|
||||||
|
Show stats drilldown =
|
||||||
|
# Requires translation!
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy = Дипломатія
|
Diplomacy = Дипломатія
|
||||||
War = Війна
|
War = Війна
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Traditional_Chinese = 95
|
Traditional_Chinese = 95
|
||||||
Italian = 99
|
Italian = 99
|
||||||
Polish = 99
|
|
||||||
Russian = 99
|
Russian = 99
|
||||||
|
Polish = 98
|
||||||
Romanian = 48
|
Romanian = 48
|
||||||
Korean = 93
|
Korean = 93
|
||||||
Simplified_Chinese = 95
|
Simplified_Chinese = 95
|
||||||
|
@ -13,5 +13,5 @@ Portuguese = 82
|
||||||
Indonesian = 74
|
Indonesian = 74
|
||||||
Czech = 95
|
Czech = 95
|
||||||
Malay = 13
|
Malay = 13
|
||||||
Spanish = 98
|
Czech = 95
|
||||||
Dutch = 25
|
Dutch = 25
|
||||||
|
|
|
@ -298,6 +298,8 @@ Pick a construction =
|
||||||
Queue empty =
|
Queue empty =
|
||||||
Add to queue =
|
Add to queue =
|
||||||
Remove from queue =
|
Remove from queue =
|
||||||
|
Show stats drilldown =
|
||||||
|
Show construction queue =
|
||||||
|
|
||||||
Diplomacy =
|
Diplomacy =
|
||||||
War =
|
War =
|
||||||
|
|
|
@ -305,10 +305,6 @@ class CityConstructions {
|
||||||
ConstructionAutomation(this).chooseNextConstruction()
|
ConstructionAutomation(this).chooseNextConstruction()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun isEnqueuable(constructionName: String): Boolean {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
fun addToQueue(constructionName: String) {
|
fun addToQueue(constructionName: String) {
|
||||||
if (!isQueueFull()) {
|
if (!isQueueFull()) {
|
||||||
if (isQueueEmpty() && currentConstruction == "Nothing") {
|
if (isQueueEmpty() && currentConstruction == "Nothing") {
|
||||||
|
|
|
@ -18,8 +18,8 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
|
||||||
private val pad = 10f
|
private val pad = 10f
|
||||||
|
|
||||||
private val showConstructionsTableButton = TextButton("Show construction queue", skin)
|
private val showConstructionsTableButton = TextButton("Show construction queue", skin)
|
||||||
private val cityInfoScrollPane: ScrollPane
|
private val scrollPane: ScrollPane
|
||||||
private val cityInfoTable = Table(skin)
|
private val innerTable = Table(skin)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
showConstructionsTableButton.onClick {
|
showConstructionsTableButton.onClick {
|
||||||
|
@ -27,28 +27,27 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
|
||||||
cityScreen.update()
|
cityScreen.update()
|
||||||
}
|
}
|
||||||
|
|
||||||
cityInfoTable.width = cityScreen.stage.width/4
|
innerTable.width = cityScreen.stage.width/4
|
||||||
cityInfoTable.background = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK,0.5f))
|
innerTable.background = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK,0.5f))
|
||||||
cityInfoScrollPane = ScrollPane(cityInfoTable.addBorder(2f, Color.WHITE))
|
scrollPane = ScrollPane(innerTable.addBorder(2f, Color.WHITE))
|
||||||
cityInfoScrollPane.setOverscroll(false, false)
|
scrollPane.setOverscroll(false, false)
|
||||||
|
|
||||||
add(showConstructionsTableButton).left().padLeft(pad).padBottom(pad).row()
|
add(showConstructionsTableButton).left().padLeft(pad).padBottom(pad).row()
|
||||||
add(cityInfoScrollPane).left().row()
|
add(scrollPane).left().row()
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun update() {
|
internal fun update() {
|
||||||
val cityInfo = cityScreen.city
|
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
|
innerTable.apply {
|
||||||
cityInfoTable.apply {
|
|
||||||
addBuildingsInfo(cityInfo)
|
addBuildingsInfo(cityInfo)
|
||||||
addStatInfo()
|
addStatInfo()
|
||||||
addGreatPersonPointInfo(cityInfo)
|
addGreatPersonPointInfo(cityInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
getCell(cityInfoScrollPane).maxHeight(stage.height - showConstructionsTableButton.height - pad - 10f)
|
getCell(scrollPane).maxHeight(stage.height - showConstructionsTableButton.height - pad - 10f)
|
||||||
pack()
|
pack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue