Skip to content

Commit

Permalink
fix playlists not using translit display name when available
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 9, 2021
1 parent 3e26f73 commit 4b15fdb
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,20 @@ local function TitleDisplayButton(i)
DisplaySinglePlaylistLevel2MessageCommand = function(self)
self:zoom(fontScale)
self:maxwidth(480)
self:settext(chartlist[i + ((currentchartpage - 1) * chartsperplaylist)]:GetSongTitle())
if chartlist[i + ((currentchartpage - 1) * chartsperplaylist)]:IsLoaded() then
local chartentry = chartlist[i + ((currentchartpage - 1) * chartsperplaylist)]
if chartentry == nil then return end
if chartentry:IsLoaded() then
local songentry = songlist[i + ((currentchartpage - 1) * chartsperplaylist)]
self:diffuse(getMainColor("positive"))
self:settext(songentry:GetDisplayMainTitle())
else
self:diffuse(byJudgment("TapNoteScore_Miss"))
self:settext(chartentry:GetSongTitle())
end
end,
DisplayLanguageChangedMessageCommand = function(self)
self:playcommand("DisplaySinglePlaylistLevel2")
end,
}
}
return o
Expand Down

0 comments on commit 4b15fdb

Please sign in to comment.