+ background component to songwheel and result screen

This commit is contained in:
FajsiEx 2021-08-21 13:52:40 +02:00
parent ae90c2e86e
commit 8c5a022df0
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,5 @@
local Easing = require('common.easings');
local Background = require('components.background');
local Footer = require('components.footer');
local VolforceWindow = require('components.volforceWindow')
@ -591,7 +592,7 @@ render = function(deltaTime, showStats)
gfx.BeginPath()
gfx.Scale(scale, scale)
gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0);
Background.draw(deltaTime)
drawIdol(deltaTime)

View File

@ -1,5 +1,6 @@
require('common')
local Easing = require('common.easings');
local Easing = require('common.easings')
local Background = require('components.background');
local VolforceCalc = require('components.volforceCalc');
@ -228,9 +229,7 @@ function drawLaserAnim()
end
function drawBackground(deltaTime)
gfx.BeginPath()
gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0)
Background.draw(deltaTime)
-- If the score for song exists
local song = songwheel.songs[selectedIndex];