+ vars for bottom panel position

This commit is contained in:
FajsiEx 2021-07-28 17:40:25 +02:00
parent 7f5fa3ee9c
commit c74fd3961e
1 changed files with 12 additions and 2 deletions

View File

@ -37,6 +37,9 @@ local idolAnimTransitionScale = 0;
local rightPanelX = 0;
local rightPanelY = 850;
local bottomPanelX = 0;
local bottomPanelY = 1110;
local jacketPanelX = 0;
local jacketPanelY = 820;
@ -247,11 +250,14 @@ local drawBottomPanel = function()
gfx.BeginPath();
local tw, th = gfx.ImageSize(bottomPanelImage);
gfx.ImageRect(0, 1110 + (BOTTOM_PANEL_TRANSTION_ENTER_OFFSET *
(1 - Easing.outQuad(transitionEnterScale))), tw, th,
gfx.ImageRect(bottomPanelX, bottomPanelY, tw, th,
bottomPanelImage, Easing.outQuad(transitionEnterScale), 0);
end
local drawBottomPanelContent = function ()
end
local drawJacketPanel = function()
gfx.BeginPath();
local tw, th = gfx.ImageSize(jacketPanelImage);
@ -277,6 +283,10 @@ local tickTransitions = function(deltaTime)
rightPanelX = 0 +
(RIGHT_PANEL_TRANSTION_ENTER_OFFSET *
(1 - Easing.outQuad(transitionEnterScale)))
bottomPanelY = 1110 + (BOTTOM_PANEL_TRANSTION_ENTER_OFFSET *
(1 - Easing.outQuad(transitionEnterScale)))
jacketPanelX = 40 + (JACKET_PANEL_TRANSTION_ENTER_OFFSET *
(1 - Easing.outQuad(transitionEnterScale)))
end