Add a Voice Hook for (#13332)

This commit is contained in:
Rob Loach 2025-05-25 07:25:40 -04:00 committed by GitHub
parent 30c0734889
commit dbca92045d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -403,6 +403,11 @@ class AlertPopup(
addGoodSizedLabel(civInfo.nation.startIntroPart1).row()
addGoodSizedLabel(civInfo.nation.startIntroPart2).row()
addCloseButton("Let's begin!")
// Since there's introduction text, play the startIntroPart1 voice hook with the nation's theme.
val music = UncivGame.Current.musicController
music.chooseTrack(civInfo.nation.name, MusicMood.themeOrPeace, MusicTrackChooserFlags.setSpecific)
music.playVoice("${civInfo.nation.name}.startIntroPart1")
}
private fun addTechResearched() {

View File

@ -66,7 +66,7 @@ Each nation has the following structure:
| preferredVictoryType | String | Neutral | The victory type major civilizations will pursue (need not be specified in [VictoryTypes.json](5-Miscellaneous-JSON-files.md#victorytypesjson)) |
| personality | String | none | The name of the personality specified in [Personalities.json](#personalitiesjson) |
| favoredReligion | String | none | The religion major civilization will choose if available when founding a religion. Must be in [Religions.json](#religionsjson) |
| startIntroPart1 | String | none | Introductory blurb shown to Player on game start... |
| startIntroPart1 | String | none | Introductory blurb shown to Player on game start... [^V] |
| startIntroPart2 | String | none | ... second paragraph. ___NO___ "TBD"!!! Leave empty to skip that alert. |
| declaringWar | String | none | Another greeting, voice hook supported [^V] |
| attacked | String | none | Another greeting, voice hook supported [^V] |