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:
Skekdog 2023-02-23 07:31:23 +00:00 committed by GitHub
parent a31e74dee2
commit 145811849c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}