/ _songWheelActiveSortOptionLabel not being set correctly

This commit is contained in:
FajsiEx 2021-08-16 16:45:04 +02:00
parent 7d63e7d6d5
commit a59b8174d7
1 changed files with 12 additions and 2 deletions

View File

@ -72,8 +72,6 @@ function drawButton(i, f, x, y)
end end
if (i == selection) then if (i == selection) then
game.SetSkinSetting('_songWheelActiveSortOptionLabel', label);
local ascLabelText = 'Ascending' local ascLabelText = 'Ascending'
local dscLabelText = 'Descending' local dscLabelText = 'Descending'
@ -169,6 +167,17 @@ function drawSortWheel(deltaTime)
end end
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) function render(deltaTime, shown)
gfx.Save() gfx.Save()
gfx.ResetTransform() gfx.ResetTransform()
@ -184,6 +193,7 @@ function render(deltaTime, shown)
drawSortWheel(deltaTime) drawSortWheel(deltaTime)
end end
tickTransitions(deltaTime) tickTransitions(deltaTime)
setSkinSetting();
gfx.Restore() gfx.Restore()
end end