Skip to content

Commit

Permalink
Scav BossFight Theme Preparations (#4151)
Browse files Browse the repository at this point in the history
- Moved Raptor theme to it's own folder.
- Prepared music player to read Scavengers theme from it's own folder.
  • Loading branch information
Damgam authored Jan 11, 2025
1 parent 96d19c3 commit 7a6d517
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions luaui/Widgets/gui_advplayerslist_music_new.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,18 @@ local function ReloadMusicPlaylists()
local warhighTracksNew = VFS.DirList(musicDirNew..'/warhigh', allowedExtensions)
local warlowTracksNew = VFS.DirList(musicDirNew..'/warlow', allowedExtensions)
local gameoverTracksNew = VFS.DirList(musicDirNew..'/gameover', allowedExtensions)
local bossFightTracksNew = VFS.DirList(musicDirNew..'/bossfight', allowedExtensions)
local menuTracksNew = VFS.DirList(musicDirNew..'/menu', allowedExtensions)
local loadingTracksNew = VFS.DirList(musicDirNew..'/loading', allowedExtensions)
local boomboxTracksNew = VFS.DirList(musicDirNew..'/boombox', allowedExtensions)
local bossFightTracksNew = {}
if Spring.Utilities.Gametype.IsRaptors() then
table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/raptors', allowedExtensions))
elseif Spring.Utilities.Gametype.IsScavengers() then
table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/scavengers', allowedExtensions))
else
table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/raptors', allowedExtensions))
table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/scavengers', allowedExtensions))
end

-- Custom Soundtrack List
local musicDirCustom = 'music/custom'
Expand All @@ -91,9 +99,9 @@ local function ReloadMusicPlaylists()
local warlowTracksCustom = VFS.DirList(musicDirCustom..'/warlow', allowedExtensions)
local warTracksCustom = VFS.DirList(musicDirCustom..'/war', allowedExtensions)
local gameoverTracksCustom = VFS.DirList(musicDirCustom..'/gameover', allowedExtensions)
local bossFightTracksCustom = VFS.DirList(musicDirCustom..'/bossfight', allowedExtensions)
local menuTracksCustom = VFS.DirList(musicDirCustom..'/menu', allowedExtensions)
local loadingTracksCustom = VFS.DirList(musicDirCustom..'/loading', allowedExtensions)
local bossFightTracksCustom = VFS.DirList(musicDirCustom..'/bossfight', allowedExtensions)
-----------------------------------SETTINGS---------------------------------------

interruptionEnabled = Spring.GetConfigInt('UseSoundtrackInterruption', 1) == 1
Expand Down

0 comments on commit 7a6d517

Please sign in to comment.