Stage mods.

This commit is contained in:
Steve Checkoway
2006-08-18 01:27:14 +00:00
parent be1e448cb2
commit fa0bc95823
2 changed files with 31 additions and 26 deletions
@@ -1,5 +1,10 @@
function SetupStageMods() function AreStageModsForced()
if GAMESTATE:IsAnExtraStage() then 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 if GAMESTATE:GetPreferredSongGroup() == "---Group All---" and
not PREFSMAN:GetPreference("PickExtraStage") then not PREFSMAN:GetPreference("PickExtraStage") then
local song = GAMESTATE:GetCurrentSong() local song = GAMESTATE:GetCurrentSong()
@@ -24,8 +29,6 @@ function SetupStageMods()
table.foreach( GAMESTATE:GetHumanPlayers(), fun ) table.foreach( GAMESTATE:GetHumanPlayers(), fun )
GAMESTATE:SetSongOptions( ModsLevel_Stage, so ) GAMESTATE:SetSongOptions( ModsLevel_Stage, so )
MESSAGEMAN:Broadcast( "SongOptionsChanged" ) MESSAGEMAN:Broadcast( "SongOptionsChanged" )
return
end
end end
-- --
-- (c) 2006 Steve Checkoway -- (c) 2006 Steve Checkoway
+2
View File
@@ -516,6 +516,7 @@ Codes=
OptionsMenuAvailable=OptionsMenuAvailable() OptionsMenuAvailable=OptionsMenuAvailable()
SelectMenuAvailable=false SelectMenuAvailable=false
ModeMenuAvailable=ModeMenuAvailable() ModeMenuAvailable=ModeMenuAvailable()
ScreenBeginCommand=setupstagemods
[ScreenSelectCourse] [ScreenSelectCourse]
Class=ScreenSelectMusic Class=ScreenSelectMusic
@@ -4387,6 +4388,7 @@ Answer3Of3OffCommand=
UseNameBlacklist=0 UseNameBlacklist=0
DefaultSort=Group DefaultSort=Group
DefaultSong= DefaultSong=
AreStageModsForced=AreStageModsForced
[ScreenMiniMenuContext] [ScreenMiniMenuContext]
Fallback=ScreenMiniMenu Fallback=ScreenMiniMenu