+ vars for bottom panel position
This commit is contained in:
parent
7f5fa3ee9c
commit
c74fd3961e
|
@ -37,6 +37,9 @@ local idolAnimTransitionScale = 0;
|
||||||
local rightPanelX = 0;
|
local rightPanelX = 0;
|
||||||
local rightPanelY = 850;
|
local rightPanelY = 850;
|
||||||
|
|
||||||
|
local bottomPanelX = 0;
|
||||||
|
local bottomPanelY = 1110;
|
||||||
|
|
||||||
local jacketPanelX = 0;
|
local jacketPanelX = 0;
|
||||||
local jacketPanelY = 820;
|
local jacketPanelY = 820;
|
||||||
|
|
||||||
|
@ -247,11 +250,14 @@ local drawBottomPanel = function()
|
||||||
gfx.BeginPath();
|
gfx.BeginPath();
|
||||||
local tw, th = gfx.ImageSize(bottomPanelImage);
|
local tw, th = gfx.ImageSize(bottomPanelImage);
|
||||||
|
|
||||||
gfx.ImageRect(0, 1110 + (BOTTOM_PANEL_TRANSTION_ENTER_OFFSET *
|
gfx.ImageRect(bottomPanelX, bottomPanelY, tw, th,
|
||||||
(1 - Easing.outQuad(transitionEnterScale))), tw, th,
|
|
||||||
bottomPanelImage, Easing.outQuad(transitionEnterScale), 0);
|
bottomPanelImage, Easing.outQuad(transitionEnterScale), 0);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local drawBottomPanelContent = function ()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
local drawJacketPanel = function()
|
local drawJacketPanel = function()
|
||||||
gfx.BeginPath();
|
gfx.BeginPath();
|
||||||
local tw, th = gfx.ImageSize(jacketPanelImage);
|
local tw, th = gfx.ImageSize(jacketPanelImage);
|
||||||
|
@ -277,6 +283,10 @@ local tickTransitions = function(deltaTime)
|
||||||
rightPanelX = 0 +
|
rightPanelX = 0 +
|
||||||
(RIGHT_PANEL_TRANSTION_ENTER_OFFSET *
|
(RIGHT_PANEL_TRANSTION_ENTER_OFFSET *
|
||||||
(1 - Easing.outQuad(transitionEnterScale)))
|
(1 - Easing.outQuad(transitionEnterScale)))
|
||||||
|
|
||||||
|
bottomPanelY = 1110 + (BOTTOM_PANEL_TRANSTION_ENTER_OFFSET *
|
||||||
|
(1 - Easing.outQuad(transitionEnterScale)))
|
||||||
|
|
||||||
jacketPanelX = 40 + (JACKET_PANEL_TRANSTION_ENTER_OFFSET *
|
jacketPanelX = 40 + (JACKET_PANEL_TRANSTION_ENTER_OFFSET *
|
||||||
(1 - Easing.outQuad(transitionEnterScale)))
|
(1 - Easing.outQuad(transitionEnterScale)))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue