* put difficulties in their coresponding slots on songwheel

This commit is contained in:
FajsiEx 2021-08-12 15:53:29 +02:00
parent b4c99152ca
commit da48de6957
1 changed files with 4 additions and 2 deletions

View File

@ -401,10 +401,12 @@ function drawData() -- Draws the song data on the left panel
local DIFF_X_START = 98.5 local DIFF_X_START = 98.5
local DIFF_GAP = 114.8; local DIFF_GAP = 114.8;
gfx.GlobalAlpha(transitionAfterscrollDifficultiesAlpha); gfx.GlobalAlpha(transitionAfterscrollDifficultiesAlpha);
for index, diff in ipairs(song.difficulties) do for i, diff in ipairs(song.difficulties) do
gfx.BeginPath() gfx.BeginPath()
if index == selectedDifficulty then local index = diff.difficulty+1
if i == selectedDifficulty then
gfx.ImageRect(DIFF_X_START+(index-1)*DIFF_GAP-(163*0.8)/2, 1028, 163*0.8, 163*0.8, diffCursorImage, 1, 0) gfx.ImageRect(DIFF_X_START+(index-1)*DIFF_GAP-(163*0.8)/2, 1028, 163*0.8, 163*0.8, diffCursorImage, 1, 0)
end end