From a7b0c1291d98d85a18e4f090bf7d02837529e0db Mon Sep 17 00:00:00 2001 From: TaikoZhong <108016253+GanYiZhong@users.noreply.github.com> Date: Thu, 15 Oct 2026 23:41:01 +0800 Subject: [PATCH] song select: folders without an explanation show their song count The folder board now shows the box explanation lines in place of the song count. Folders whose box.def has no explanation had an empty board; they show "N songs" as before. Co-Authored-By: Claude Opus 5.5 --- Scripts/song_select/file_navigator/box_folder.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/song_select/file_navigator/box_folder.lua b/Scripts/song_select/file_navigator/box_folder.lua index 4375d50..32fa7b5 100644 --- a/Scripts/song_select/file_navigator/box_folder.lua +++ b/Scripts/song_select/file_navigator/box_folder.lua @@ -127,6 +127,9 @@ function SongSelect:draw_folder_board(box, pb, ch_alpha, ch_off, ta, glow_a) for _, l in ipairs(box:explanation() or {}) do if l ~= "" then lines[#lines + 1] = l end end + -- folders without an explanation show their song count, as before + local n = box.tja_count + if #lines == 0 and n and n > 0 then lines[1] = tostring(n) .. " songs" end for i, l in ipairs(lines) do local ckey = frame .. "\0" .. l local label = self._count_cache[ckey] -- 2.54.0