diff --git a/BGAnimations/ScreenSelectMusic overlay/SortMenu/SortMenu_InputHandler.lua b/BGAnimations/ScreenSelectMusic overlay/SortMenu/SortMenu_InputHandler.lua index 9e15502ff..a5106a011 100644 --- a/BGAnimations/ScreenSelectMusic overlay/SortMenu/SortMenu_InputHandler.lua +++ b/BGAnimations/ScreenSelectMusic overlay/SortMenu/SortMenu_InputHandler.lua @@ -19,12 +19,15 @@ local input = function(event) sortmenu:GetChild("start_sound"):play() local focus = sort_wheel:get_actor_item_at_focus_pos() if focus.kind == "SortBy" then - MESSAGEMAN:Broadcast('Sort',{order=focus.sort_by}) + MESSAGEMAN:Broadcast('Sort', { order = focus.sort_by }) overlay:queuecommand("DirectInputToEngine") - -- the player wants to change modes, for example from ITG to FA+ + -- the player wants to change modes, for example from ITG to FA+ elseif focus.kind == "ChangeMode" then SL.Global.GameMode = focus.change + for player in ivalues(GAMESTATE:GetHumanPlayers()) do + ApplyMods(player) + end SetGameModePreferences() THEME:ReloadMetrics() -- Broadcast that the SL GameMode has changed @@ -38,7 +41,7 @@ local input = function(event) screen:SetNextScreenName("ScreenSelectMusicCasual") screen:StartTransitioningScreen("SM_GoToNextScreen") end - -- the player wants to change styles, for example from single to double + -- the player wants to change styles, for example from single to double elseif focus.kind == "ChangeStyle" then -- If the MenuTimer is in effect, make sure to grab its current -- value before reloading the screen. @@ -48,7 +51,7 @@ local input = function(event) -- Get the style we want to change to local new_style = focus.change:lower() -- accommodate techno game - if GAMESTATE:GetCurrentGame():GetName()=="techno" then new_style = new_style.."8" end + if GAMESTATE:GetCurrentGame():GetName() == "techno" then new_style = new_style .. "8" end -- set it in the engine GAMESTATE:SetCurrentStyle(new_style) -- finally, reload the screen @@ -73,4 +76,4 @@ local input = function(event) end return false end -return input \ No newline at end of file +return input