diff --git a/scripts/songselect/sortwheel.lua b/scripts/songselect/sortwheel.lua index 418c6f1..0b7922b 100644 --- a/scripts/songselect/sortwheel.lua +++ b/scripts/songselect/sortwheel.lua @@ -72,8 +72,6 @@ function drawButton(i, f, x, y) end if (i == selection) then - game.SetSkinSetting('_songWheelActiveSortOptionLabel', label); - local ascLabelText = 'Ascending' local dscLabelText = 'Descending' @@ -169,6 +167,17 @@ function drawSortWheel(deltaTime) end end +function setSkinSetting() + for i, f in ipairs(sorts) do + if i == selection then + local label = f:gsub(' ^', '') + label = label:gsub(' v', '') + + game.SetSkinSetting('_songWheelActiveSortOptionLabel', label); + end + end +end + function render(deltaTime, shown) gfx.Save() gfx.ResetTransform() @@ -184,6 +193,7 @@ function render(deltaTime, shown) drawSortWheel(deltaTime) end tickTransitions(deltaTime) + setSkinSetting(); gfx.Restore() end