1.update translation 2. delete population number back the city name of city screen because there is a detail table in the screen. 3. now when you touch "X" you can close unit table. (#1184)

This commit is contained in:
lishaoxia1985 2019-10-13 02:39:58 +08:00 committed by Yair Morgenstern
parent 27dfae18de
commit 7d14c0924b
7 changed files with 19 additions and 7 deletions

View File

@ -275,15 +275,17 @@
"Remove":{
Italian:"Rimuovi"
Simplified_Chinese:"删除"
}
"Random":{
Italian:"Casuale"
Simplified_Chinese:"随机"
}
"Human":{
Italian:"Umano"
Simplified_Chinese:"人类玩家"
Simplified_Chinese:"玩家"
Russian:"Человек"
}
@ -386,6 +388,10 @@
Simplified_Chinese:"游戏速度"
}
"Starting Era":{
Simplified_Chinese:"开始时代"
}
"Quick":{
Italian:"Rapida"
Russian:"Быстрая"
@ -415,15 +421,18 @@
"It looks like we can't make a map with the parameters you requested!":{
Italian:"Sembra che i parametri da te impostati siano eccessivi per questa mappa!"
Russian:"Похоже, что мы не можем создать карту с нужными вам параметрами!"
Simplified_Chinese:"无法根据你的设置创建地图!"
}
"Maybe you put too many players into too small a map?":{
Italian:"Forse hai inserito troppi giocatori o altri parametri?"
Russian:"Может, у вас слишком много игроков для такой небольшой карты?"
Simplified_Chinese:"或许你放置了太多玩家在如此小的地图上?"
}
"No human players selected!":{
Italian:"È necessario almeno un giocatore umano!"
Simplified_Chinese:"未选择玩家!"
}

View File

@ -103,7 +103,7 @@
German:"[cityName] wurde gegründet!"
Dutch:"[cityName] is gesticht!"
Spanish:"¡[cityName] ha sido fundada!"
Simplified_Chinese:"已经建立了城市--[cityName]!"
Simplified_Chinese:"已经建立了城市[cityName]!"
Portuguese:"[cityName] foi fundada!"
Japanese:"[cityName]が設立されました!"
}

View File

@ -1379,6 +1379,7 @@
"Your citizens have been happy with your rule for so long that the empire enters a Golden Age!":{
Italian:"I tuoi cittadini sono da tempo contenti del tuo governo! Il tuo impero è entrato in un'Età dell'Oro!"
Simplified_Chinese:"人民为您英明领导下取得的丰功伟绩欢欣鼓舞,您的帝国进入了黄金时代!"
}
////// Policy picker screen

View File

@ -49,7 +49,7 @@ class CityScreenCityPickerTable(val cityScreen: CityScreen) : Table(){
cityNameTable.add(resistanceImage).size(20f).padRight(5f)
}
val currentCityLabel = Label(city.name + " (" + city.population.population + ")", CameraStageBaseScreen.skin)
val currentCityLabel = Label(city.name, CameraStageBaseScreen.skin)
currentCityLabel.setFontSize(30)
currentCityLabel.onClick {
val editCityNamePopup = PopupTable(cityScreen)

View File

@ -88,7 +88,7 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera
clearSelection()
selectedImprovement=TileImprovement().apply { name="StartingLocation "+nation.name }
val nationIcon = getHex(Color.WHITE,ImageGetter.getNationIndicator(nation,40f))
setCurrentHex(nationIcon, nation.name+" starting location")
setCurrentHex(nationIcon, "[${nation.name}] starting location")
}
nationsTable.add(nationImage).row()
}

View File

@ -143,10 +143,10 @@ class NewGameScreenOptionsTable(val newGameParameters: GameParameters, val onMul
private fun addEraSelectBox() {
add("{Starting Era}:".tr())
val eraSelectBox = TranslatedSelectBox(TechEra.values().map { it.name }, newGameParameters.startingEra.name, CameraStageBaseScreen.skin)
val eraSelectBox = TranslatedSelectBox(TechEra.values().map { it.name+" era" }, newGameParameters.startingEra.name, CameraStageBaseScreen.skin)
eraSelectBox.addListener(object : ChangeListener() {
override fun changed(event: ChangeEvent?, actor: Actor?) {
newGameParameters.startingEra = TechEra.valueOf(eraSelectBox.selected.value)
newGameParameters.startingEra = TechEra.valueOf(eraSelectBox.selected.value.replace(" era",""))
}
})
add(eraSelectBox).pad(10f).row()

View File

@ -44,7 +44,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
deselectUnitButton.add(Label("X",CameraStageBaseScreen.skin).setFontColor(Color.WHITE)).pad(10f)
deselectUnitButton.pack()
deselectUnitButton.touchable = Touchable.enabled
deselectUnitButton.onClick { selectedUnit=null; selectedCity=null; worldScreen.shouldUpdate=true }
deselectUnitButton.onClick { selectedUnit=null; selectedCity=null; worldScreen.shouldUpdate=true;this@UnitTable.isVisible=false }
addActor(deselectUnitButton)
helpUnitButton.add(Label("?",CameraStageBaseScreen.skin).setFontColor(Color.WHITE)).pad(10f)
@ -86,6 +86,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
fun update() {
if(selectedUnit!=null) {
isVisible=true
if (selectedUnit!!.civInfo != worldScreen.viewingCiv) { // The unit that was selected, was captured. It exists but is no longer ours.
selectedUnit = null
selectedCity = null
@ -221,6 +222,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
// tapping the same tile again will deselect a unit.
// important for single-tap-move to abort moving easily
selectedUnit = null
isVisible=false
}
if(selectedUnit != previouslySelectedUnit)