mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 00:04:33 +02:00
added flexibility to the night theme system, removed metadata from the night themes, added night themes to the project files
This commit is contained in:
parent
644d2c64ef
commit
e6d78d1d3b
Binary file not shown.
BIN
P3D/Content/Songs/johto_wild_intro_night.ogg
Normal file
BIN
P3D/Content/Songs/johto_wild_intro_night.ogg
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -17885,6 +17885,9 @@
|
|||||||
<Content Include="Content\Songs\intro\johto_wild.ogg">
|
<Content Include="Content\Songs\intro\johto_wild.ogg">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Content\Songs\intro\johto_wild_night.ogg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Content\Songs\intro\kanto_leader.ogg">
|
<Content Include="Content\Songs\intro\kanto_leader.ogg">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
@ -18071,6 +18074,12 @@
|
|||||||
<Content Include="Content\Songs\johto_wild_intro.ogg">
|
<Content Include="Content\Songs\johto_wild_intro.ogg">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Content\Songs\johto_wild_intro_night.ogg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Content\Songs\johto_wild_night.ogg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Content\Songs\kanto_leader.ogg">
|
<Content Include="Content\Songs\kanto_leader.ogg">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ShouldPlayNightTheme() Then
|
If ShouldPlayNightTheme(musicLoop) Then
|
||||||
musicLoop = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_night_intro"
|
musicLoop = musicLoop & "_night"
|
||||||
'musicLoop = "kanto_wild_intro"
|
'musicLoop = "kanto_wild_intro"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -65,8 +65,8 @@
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ShouldPlayNightTheme() Then
|
If ShouldPlayNightTheme(MusicLoop) Then
|
||||||
MusicLoop = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_night_intro"
|
MusicLoop = MusicLoop & "_night"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If MusicManager.SongExists(MusicLoop) = False Then
|
If MusicManager.SongExists(MusicLoop) = False Then
|
||||||
@ -615,6 +615,7 @@
|
|||||||
'bug catching contest
|
'bug catching contest
|
||||||
'roaming battle
|
'roaming battle
|
||||||
'wild pokemon
|
'wild pokemon
|
||||||
|
|
||||||
Dim fallbackLoopSong = "johto_wild"
|
Dim fallbackLoopSong = "johto_wild"
|
||||||
Dim loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
Dim loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
||||||
If battleType = BattleIntroScreen.BattleType.PVP Then
|
If battleType = BattleIntroScreen.BattleType.PVP Then
|
||||||
@ -625,17 +626,9 @@
|
|||||||
ElseIf battleType = BattleIntroScreen.BattleType.SAFARI Then
|
ElseIf battleType = BattleIntroScreen.BattleType.SAFARI Then
|
||||||
fallbackLoopSong = "johto_wild"
|
fallbackLoopSong = "johto_wild"
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
||||||
If ShouldPlayNightTheme() Then
|
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_night"
|
|
||||||
fallbackLoopSong = "johto_wild_night"
|
|
||||||
End If
|
|
||||||
ElseIf battleType = BattleIntroScreen.BattleType.BUG_CATCHING Then
|
ElseIf battleType = BattleIntroScreen.BattleType.BUG_CATCHING Then
|
||||||
fallbackLoopSong = "johto_wild"
|
fallbackLoopSong = "johto_wild"
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
||||||
If ShouldPlayNightTheme() Then
|
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_night"
|
|
||||||
fallbackLoopSong = "johto_wild_night"
|
|
||||||
End If
|
|
||||||
ElseIf battleType = BattleIntroScreen.BattleType.ROAMING Then
|
ElseIf battleType = BattleIntroScreen.BattleType.ROAMING Then
|
||||||
If BattleSystem.BattleScreen.RoamingPokemonStorage.MusicLoop <> "" Then
|
If BattleSystem.BattleScreen.RoamingPokemonStorage.MusicLoop <> "" Then
|
||||||
loopSong = BattleSystem.BattleScreen.RoamingPokemonStorage.MusicLoop
|
loopSong = BattleSystem.BattleScreen.RoamingPokemonStorage.MusicLoop
|
||||||
@ -643,14 +636,15 @@
|
|||||||
ElseIf battleType = BattleIntroScreen.BattleType.WILD Then
|
ElseIf battleType = BattleIntroScreen.BattleType.WILD Then
|
||||||
fallbackLoopSong = "johto_wild"
|
fallbackLoopSong = "johto_wild"
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild"
|
||||||
If ShouldPlayNightTheme() Then
|
|
||||||
loopSong = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_night"
|
|
||||||
fallbackLoopSong = "johto_wild_night"
|
|
||||||
End If
|
|
||||||
Else
|
Else
|
||||||
Console.WriteLine("Unknown Battle Type: " & battleType)
|
Console.WriteLine("Unknown Battle Type: " & battleType)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If ShouldPlayNightTheme(loopSong) Then
|
||||||
|
loopSong = loopSong & "_night"
|
||||||
|
fallbackLoopSong = "johto_wild_night"
|
||||||
|
End If
|
||||||
|
|
||||||
If MusicManager.SongExists(loopSong) = True Then
|
If MusicManager.SongExists(loopSong) = True Then
|
||||||
Return loopSong
|
Return loopSong
|
||||||
End If
|
End If
|
||||||
@ -661,8 +655,8 @@
|
|||||||
Return startTime + duration < Date.Now
|
Return startTime + duration < Date.Now
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ShouldPlayNightTheme() As Boolean
|
Private Function ShouldPlayNightTheme(dayThemeName As String) As Boolean
|
||||||
Return World.IsNight() And Screen.Level.CurrentRegion = "Johto"
|
Return World.IsNight() And MusicManager.SongExists(dayThemeName & "_night")
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'Protected Overrides Sub Finalize()
|
'Protected Overrides Sub Finalize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user