From 4b15fdb4543f06444c75011f843a8be969acda68 Mon Sep 17 00:00:00 2001 From: Barinade Date: Sat, 9 Oct 2021 16:36:11 -0500 Subject: [PATCH] fix playlists not using translit display name when available --- .../ScreenSelectMusic decorations/playlists.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua index 3d85c67049..17467ed82f 100644 --- a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua +++ b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua @@ -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