diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 2e7778d..abe2a20 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -23,12 +23,10 @@ local cursorImages = { local diffCursorImage = gfx.CreateSkinImage("song_select/level_cursor.png", 1) local filterInfoBgImage = gfx.CreateSkinImage("song_select/filter_info_bg.png", 1) +local sortInfoBgImage = gfx.CreateSkinImage("song_select/sort_info_bg.png", 1) local searchBgImage = gfx.CreateSkinImage("song_select/search_bg.png", 1) -local headerTitleImage = gfx.CreateSkinImage("song_select/header/title.png", 1) -local headerGlowTitleImage = gfx.CreateSkinImage("song_select/header/title_glow.png", 1) - local defaultJacketImage = gfx.CreateSkinImage("song_select/loading.png", 0) local difficultyLabelImages = { @@ -450,15 +448,22 @@ function drawFilterInfo(deltatime) local folderLabel = game.GetSkinSetting('_songWheelActiveFolderLabel') local subFolderLabel = game.GetSkinSetting('_songWheelActiveSubFolderLabel') + local sortOptionLabel = game.GetSkinSetting('_songWheelActiveSortOptionLabel') gfx.FontSize(24) gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE) - + gfx.BeginPath() gfx.Text(folderLabel or '', 167, 131); - + gfx.BeginPath() gfx.Text(subFolderLabel or '', 195, 166); + + gfx.BeginPath() + gfx.ImageRect(desw - 310 - 5, 108, 310, 75, sortInfoBgImage, 1, 0) + + gfx.BeginPath() + gfx.Text(sortOptionLabel or '', desw-165, 130); end function drawSearch() diff --git a/scripts/songselect/sortwheel.lua b/scripts/songselect/sortwheel.lua index fa83290..418c6f1 100644 --- a/scripts/songselect/sortwheel.lua +++ b/scripts/songselect/sortwheel.lua @@ -72,6 +72,8 @@ function drawButton(i, f, x, y) end if (i == selection) then + game.SetSkinSetting('_songWheelActiveSortOptionLabel', label); + local ascLabelText = 'Ascending' local dscLabelText = 'Descending'