From 8c5a022df09b3792b17baf0787a45cdace993981 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Sat, 21 Aug 2021 13:52:40 +0200 Subject: [PATCH] + background component to songwheel and result screen --- scripts/result.lua | 3 ++- scripts/songselect/songwheel.lua | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/result.lua b/scripts/result.lua index 408f885..9fabd59 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -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) diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 2e1a1c4..9bef936 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -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];