Skip to content

Commit

Permalink
Remove playlists, rework how the wheel options are organized. They're…
Browse files Browse the repository at this point in the history
… now defined by one master table
  • Loading branch information
CrashCringle12 committed Jan 2, 2025
1 parent cf5cb5f commit 1b8c8d7
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 168 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ local input = function(event)
overlay:queuecommand("DirectInputToEngine")

-- the player wants to change modes, for example from ITG to FA+
elseif focus.kind == "Playlist" then
local path = THEME:GetPathO("", "Playlists/" .. focus.new_overlay .. ".txt")
SONGMAN:SetPreferredSongs(path, --[[isAbsolute=]]true);
if SONGMAN:GetPreferredSortSongs() then
overlay:queuecommand("DirectInputToEngine")
SCREENMAN:GetTopScreen():GetMusicWheel():ChangeSort("SortOrder_Preferred")
end
elseif focus.kind == "ChangeMode" then
SL.Global.GameMode = focus.change
for player in ivalues(GAMESTATE:GetHumanPlayers()) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ return {
self.new_overlay = info[2]
end
local toptext = self.kind ~= "" and THEME:GetString("ScreenSelectMusic", self.kind) or ""
local bottomtext = self.kind == "Playlist" and info[2] or THEME:GetString(self.kind == "ChangeMode" and "ScreenSelectPlayMode" or "ScreenSelectMusic", info[2])
local bottomtext = THEME:GetString(self.kind == "ChangeMode" and "ScreenSelectPlayMode" or "ScreenSelectMusic", info[2])

self.top_text:settext(toptext)
self.bottom_text:settext(bottomtext)
Expand Down
Loading

0 comments on commit 1b8c8d7

Please sign in to comment.