+ special mxm labels to songwheel

This commit is contained in:
FajsiEx 2021-08-07 20:35:00 +02:00
parent fd910dcb35
commit 5090219976
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
require('common')
local Easing = require('common.easings'); local Easing = require('common.easings');
local Bars = require('components.bars'); local Bars = require('components.bars');
@ -262,7 +262,8 @@ function drawSong(song, y)
-- Draw the difficulty notch background -- Draw the difficulty notch background
gfx.BeginPath() gfx.BeginPath()
gfx.ImageRect(songX, y+95, 83, 74, difficultyLabelImages[selectedSongDifficulty.difficulty+1], 1, 0) local diffIndex = GetDisplayDifficulty(selectedSongDifficulty.jacketPath, selectedSongDifficulty.difficulty)
gfx.ImageRect(songX, y+95, 83, 74, difficultyLabelImages[diffIndex], 1, 0)
-- Draw the difficulty level number -- Draw the difficulty level number
gfx.BeginPath() gfx.BeginPath()
@ -386,7 +387,9 @@ function drawData() -- Draws the song data on the left panel
draw_number(85+(index-1)*DIFF_GAP, 1085, 1.0, diff.level, 2, difficultyNumbers, false, 0.8, 1) draw_number(85+(index-1)*DIFF_GAP, 1085, 1.0, diff.level, 2, difficultyNumbers, false, 0.8, 1)
local diffLabelImage = difficultyLabelUnderImages[diff.difficulty+1]; local diffLabelImage = difficultyLabelUnderImages[
GetDisplayDifficulty(diff.jacketPath, diff.difficulty)
];
local tw, th = gfx.ImageSize(diffLabelImage) local tw, th = gfx.ImageSize(diffLabelImage)
tw=tw*0.9 tw=tw*0.9
th=th*0.9 th=th*0.9