mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Added End Game Messages for varioud victory types
This commit is contained in:
parent
56b3f1c77a
commit
b9baa654ab
@ -1646,6 +1646,18 @@
|
|||||||
Portuguese:"Você ganhou uma vitória de dominação!"
|
Portuguese:"Você ganhou uma vitória de dominação!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"You have achieved victory through the awesome power of your Culture. Your civilization's greatness - the magnificence of its monuments and the power of its artists - have astounded the world! Poets will honor you as long as beauty brings gladness to a weary heart.":{
|
||||||
|
}
|
||||||
|
|
||||||
|
"The world has been convulsed by war. May great and powerful civilizations have fallen, but you have survived - and emerged victorious! The world will long remember your glorious triumph!":{
|
||||||
|
}
|
||||||
|
|
||||||
|
"You have achieved victory through mastery of Science! You have conquered the mysteries of nature and led your people on a voyage to a brave new world! Your triumph will be remembered as long as the stars burn in the night sky!":{
|
||||||
|
}
|
||||||
|
|
||||||
|
"You have been defeated. Your civilization has been overwhelmed by its many foes. But your people do not despair, for they know that one day you shall return - and lead them forward to victory!":{
|
||||||
|
}
|
||||||
|
|
||||||
"One more turn...!":{
|
"One more turn...!":{
|
||||||
Italian:"Aspetta! Solo un altro turno..."
|
Italian:"Aspetta! Solo un altro turno..."
|
||||||
German:"Nur noch eine Runde..."
|
German:"Nur noch eine Runde..."
|
||||||
|
@ -71,7 +71,15 @@ class VictoryScreen : PickerScreen() {
|
|||||||
|
|
||||||
|
|
||||||
fun wonOrLost(description: String) {
|
fun wonOrLost(description: String) {
|
||||||
descriptionLabel.setText(description.tr())
|
|
||||||
|
val endGameMessage = when(description){
|
||||||
|
"You have won a cultural victory!" -> "You have achieved victory through the awesome power of your Culture. Your civilization's greatness - the magnificence of its monuments and the power of its artists - have astounded the world! Poets will honor you as long as beauty brings gladness to a weary heart."
|
||||||
|
"You have won a domination victory!" -> "The world has been convulsed by war. May great and powerful civilizations have fallen, but you have survived - and emerged victorious! The world will long remember your glorious triumph!"
|
||||||
|
"You have won a scientific victory!" -> "You have achieved victory through mastery of Science! You have conquered the mysteries of nature and led your people on a voyage to a brave new world! Your triumph will be remembered as long as the stars burn in the night sky!"
|
||||||
|
else -> "You have been defeated. Your civilization has been overwhelmed by its many foes. But your people do not despair, for they know that one day you shall return - and lead them forward to victory!"
|
||||||
|
}
|
||||||
|
|
||||||
|
descriptionLabel.setText(description.tr()+"\n"+endGameMessage.tr() )
|
||||||
|
|
||||||
rightSideButton.setText("Start new game".tr())
|
rightSideButton.setText("Start new game".tr())
|
||||||
rightSideButton.isVisible = true
|
rightSideButton.isVisible = true
|
||||||
|
@ -316,15 +316,15 @@ class WorldScreen(val viewingCiv:CivilizationInfo) : CameraStageBaseScreen() {
|
|||||||
val text = when {
|
val text = when {
|
||||||
!isPlayersTurn -> "Waiting for other players..."
|
!isPlayersTurn -> "Waiting for other players..."
|
||||||
viewingCiv.shouldGoToDueUnit() -> "Next unit"
|
viewingCiv.shouldGoToDueUnit() -> "Next unit"
|
||||||
viewingCiv.cities.any{it.cityConstructions.currentConstruction==""} -> "Pick construction"
|
viewingCiv.cities.any { it.cityConstructions.currentConstruction == "" } -> "Pick construction"
|
||||||
viewingCiv.shouldOpenTechPicker() -> "Pick a tech"
|
viewingCiv.shouldOpenTechPicker() -> "Pick a tech"
|
||||||
viewingCiv.policies.shouldOpenPolicyPicker -> "Pick a policy"
|
viewingCiv.policies.shouldOpenPolicyPicker -> "Pick a policy"
|
||||||
else -> "Next turn"
|
else -> "Next turn"
|
||||||
}
|
}
|
||||||
nextTurnButton.setText(text.tr())
|
nextTurnButton.setText(text.tr())
|
||||||
nextTurnButton.color = if(text=="Next turn") Color.WHITE else Color.GRAY
|
nextTurnButton.color = if (text == "Next turn") Color.WHITE else Color.GRAY
|
||||||
nextTurnButton.pack()
|
nextTurnButton.pack()
|
||||||
if(AlertPopup.isOpen || !isPlayersTurn) nextTurnButton.disable()
|
if (AlertPopup.isOpen || !isPlayersTurn) nextTurnButton.disable()
|
||||||
else nextTurnButton.enable()
|
else nextTurnButton.enable()
|
||||||
nextTurnButton.setPosition(stage.width - nextTurnButton.width - 10f, topBar.y - nextTurnButton.height - 10f)
|
nextTurnButton.setPosition(stage.width - nextTurnButton.width - 10f, topBar.y - nextTurnButton.height - 10f)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user