mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04: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) {
|
private fun updateRightSide(otherCiv: Civilization) {
|
||||||
rightSideTable.clear()
|
rightSideTable.clear()
|
||||||
|
UncivGame.Current.musicController.chooseTrack(otherCiv.civName,
|
||||||
|
MusicMood.peaceOrWar(viewingCiv.isAtWarWith(otherCiv)),MusicTrackChooserFlags.setSelectNation)
|
||||||
if (otherCiv.isCityState()) rightSideTable.add(
|
if (otherCiv.isCityState()) rightSideTable.add(
|
||||||
ScrollPane(getCityStateDiplomacyTable(otherCiv))
|
ScrollPane(getCityStateDiplomacyTable(otherCiv))
|
||||||
)
|
)
|
||||||
@ -696,9 +698,6 @@ class DiplomacyScreen(
|
|||||||
if (promisesTable != null) diplomacyTable.add(promisesTable).row()
|
if (promisesTable != null) diplomacyTable.add(promisesTable).row()
|
||||||
}
|
}
|
||||||
|
|
||||||
UncivGame.Current.musicController.chooseTrack(otherCiv.civName,
|
|
||||||
MusicMood.peaceOrWar(viewingCiv.isAtWarWith(otherCiv)), MusicTrackChooserFlags.setSelectNation)
|
|
||||||
|
|
||||||
return diplomacyTable
|
return diplomacyTable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user