mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Resolved #9669 - city name translation for conquered popup does not get icon
This commit is contained in:
parent
6a8f4914b8
commit
0536c5f24b
@ -102,11 +102,11 @@ class CityInfoConquestFunctions(val city: City){
|
|||||||
conqueringCiv.addNotification("Received [$goldPlundered] Gold for capturing [$name]",
|
conqueringCiv.addNotification("Received [$goldPlundered] Gold for capturing [$name]",
|
||||||
getCenterTile().position, NotificationCategory.General, NotificationIcon.Gold)
|
getCenterTile().position, NotificationCategory.General, NotificationIcon.Gold)
|
||||||
|
|
||||||
val reconqueredCityWhileStillInResistance = previousOwner == conqueringCiv.civName && isInResistance()
|
val reconqueredCityWhileStillInResistance = previousOwner == receivingCiv.civName && isInResistance()
|
||||||
|
|
||||||
destroyBuildingsOnCapture()
|
destroyBuildingsOnCapture()
|
||||||
|
|
||||||
this@CityInfoConquestFunctions.moveToCiv(receivingCiv)
|
moveToCiv(receivingCiv)
|
||||||
|
|
||||||
Battle.destroyIfDefeated(conqueredCiv, conqueringCiv)
|
Battle.destroyIfDefeated(conqueredCiv, conqueringCiv)
|
||||||
|
|
||||||
@ -326,8 +326,7 @@ class CityInfoConquestFunctions(val city: City){
|
|||||||
cityStats.update()
|
cityStats.update()
|
||||||
|
|
||||||
// Update proximity rankings
|
// Update proximity rankings
|
||||||
civ.updateProximity(oldCiv,
|
civ.updateProximity(oldCiv, oldCiv.updateProximity(civ))
|
||||||
oldCiv.updateProximity(civ))
|
|
||||||
|
|
||||||
// Update history
|
// Update history
|
||||||
city.getTiles().forEach { tile ->
|
city.getTiles().forEach { tile ->
|
||||||
|
@ -266,8 +266,8 @@ open class Popup(
|
|||||||
* @param text The caption text.
|
* @param text The caption text.
|
||||||
* @param size The font size for the label.
|
* @param size The font size for the label.
|
||||||
*/
|
*/
|
||||||
fun addGoodSizedLabel(text: String, size: Int = Constants.defaultFontSize): Cell<Label> {
|
fun addGoodSizedLabel(text: String, size: Int = Constants.defaultFontSize, hideIcons:Boolean = false): Cell<Label> {
|
||||||
val label = text.toLabel(fontSize = size)
|
val label = text.toLabel(fontSize = size, hideIcons = hideIcons)
|
||||||
label.wrap = true
|
label.wrap = true
|
||||||
label.setAlignment(Align.center)
|
label.setAlignment(Align.center)
|
||||||
return add(label).width(stageToShowOn.width / 2)
|
return add(label).width(stageToShowOn.width / 2)
|
||||||
|
@ -381,7 +381,7 @@ class AlertPopup(
|
|||||||
|
|
||||||
private fun addQuestionAboutTheCity(cityName: String) {
|
private fun addQuestionAboutTheCity(cityName: String) {
|
||||||
addGoodSizedLabel("What would you like to do with the city of [$cityName]?",
|
addGoodSizedLabel("What would you like to do with the city of [$cityName]?",
|
||||||
Constants.headingFontSize).padBottom(20f).row()
|
Constants.headingFontSize, hideIcons = true).padBottom(20f).row()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addDestroyOption(destroyAction: () -> Unit) {
|
private fun addDestroyOption(destroyAction: () -> Unit) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user