mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
Play city-state music if available (#8727)
* City-states now play their music if it exists More of a fix than anything - before this city state music would only play when declare war button is confirmed * City-states now play their music if it exists More of a fix than anything - before this city state music would only play when declare war button is confirmed
This commit is contained in:
parent
a31e74dee2
commit
145811849c
@ -167,6 +167,8 @@ class DiplomacyScreen(
|
||||
|
||||
private fun updateRightSide(otherCiv: Civilization) {
|
||||
rightSideTable.clear()
|
||||
UncivGame.Current.musicController.chooseTrack(otherCiv.civName,
|
||||
MusicMood.peaceOrWar(viewingCiv.isAtWarWith(otherCiv)),MusicTrackChooserFlags.setSelectNation)
|
||||
if (otherCiv.isCityState()) rightSideTable.add(
|
||||
ScrollPane(getCityStateDiplomacyTable(otherCiv))
|
||||
)
|
||||
@ -696,9 +698,6 @@ class DiplomacyScreen(
|
||||
if (promisesTable != null) diplomacyTable.add(promisesTable).row()
|
||||
}
|
||||
|
||||
UncivGame.Current.musicController.chooseTrack(otherCiv.civName,
|
||||
MusicMood.peaceOrWar(viewingCiv.isAtWarWith(otherCiv)), MusicTrackChooserFlags.setSelectNation)
|
||||
|
||||
return diplomacyTable
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user