mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
City-state music plays when first meeting them (#9026)
This commit is contained in:
@ -92,13 +92,13 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu
|
|||||||
val civInfo = worldScreen.gameInfo.getCivilization(popupAlert.value)
|
val civInfo = worldScreen.gameInfo.getCivilization(popupAlert.value)
|
||||||
val nation = civInfo.nation
|
val nation = civInfo.nation
|
||||||
addLeaderName(civInfo)
|
addLeaderName(civInfo)
|
||||||
|
music.chooseTrack(civInfo.civName, MusicMood.themeOrPeace, MusicTrackChooserFlags.setSpecific)
|
||||||
if (civInfo.isCityState()) {
|
if (civInfo.isCityState()) {
|
||||||
addGoodSizedLabel("We have encountered the City-State of [${nation.name}]!").row()
|
addGoodSizedLabel("We have encountered the City-State of [${nation.name}]!").row()
|
||||||
add(getCloseButton("Excellent!"))
|
add(getCloseButton("Excellent!"))
|
||||||
} else {
|
} else {
|
||||||
addGoodSizedLabel(nation.introduction).row()
|
addGoodSizedLabel(nation.introduction).row()
|
||||||
add(getCloseButton("A pleasure to meet you."))
|
add(getCloseButton("A pleasure to meet you."))
|
||||||
music.chooseTrack(civInfo.civName, MusicMood.themeOrPeace, MusicTrackChooserFlags.setSpecific)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AlertType.CityConquered -> {
|
AlertType.CityConquered -> {
|
||||||
|
Reference in New Issue
Block a user