mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-21 02:13:57 -04:00
Add a Voice Hook for (#13332)
This commit is contained in:
parent
30c0734889
commit
dbca92045d
@ -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() {
|
||||
|
@ -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] |
|
||||
|
Loading…
x
Reference in New Issue
Block a user