Stage mods.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
function SetupStageMods()
|
||||
if GAMESTATE:IsAnExtraStage() then
|
||||
function AreStageModsForced()
|
||||
if GAMESTATE:IsAnExtraStage() then return true end
|
||||
return false
|
||||
end
|
||||
|
||||
function ScreenSelectMusic:setupstagemods()
|
||||
if not GAMESTATE:IsAnExtraStage() then return end
|
||||
if GAMESTATE:GetPreferredSongGroup() == "---Group All---" and
|
||||
not PREFSMAN:GetPreference("PickExtraStage") then
|
||||
local song = GAMESTATE:GetCurrentSong()
|
||||
@@ -24,8 +29,6 @@ function SetupStageMods()
|
||||
table.foreach( GAMESTATE:GetHumanPlayers(), fun )
|
||||
GAMESTATE:SetSongOptions( ModsLevel_Stage, so )
|
||||
MESSAGEMAN:Broadcast( "SongOptionsChanged" )
|
||||
return
|
||||
end
|
||||
end
|
||||
--
|
||||
-- (c) 2006 Steve Checkoway
|
||||
|
||||
@@ -516,6 +516,7 @@ Codes=
|
||||
OptionsMenuAvailable=OptionsMenuAvailable()
|
||||
SelectMenuAvailable=false
|
||||
ModeMenuAvailable=ModeMenuAvailable()
|
||||
ScreenBeginCommand=setupstagemods
|
||||
|
||||
[ScreenSelectCourse]
|
||||
Class=ScreenSelectMusic
|
||||
@@ -4387,6 +4388,7 @@ Answer3Of3OffCommand=
|
||||
UseNameBlacklist=0
|
||||
DefaultSort=Group
|
||||
DefaultSong=
|
||||
AreStageModsForced=AreStageModsForced
|
||||
|
||||
[ScreenMiniMenuContext]
|
||||
Fallback=ScreenMiniMenu
|
||||
|
||||
Reference in New Issue
Block a user