/ songwheel data panel anim after asset split
|
@ -2,7 +2,12 @@
|
||||||
local Easing = require('common.easings');
|
local Easing = require('common.easings');
|
||||||
|
|
||||||
local backgroundImage = gfx.CreateSkinImage("song_select/bg.png", 1)
|
local backgroundImage = gfx.CreateSkinImage("song_select/bg.png", 1)
|
||||||
local dataBackgroundOverlayImage = gfx.CreateSkinImage("song_select/data_bg_overlay.png", 1)
|
local dataPanelImage = gfx.CreateSkinImage("song_select/data_bg_overlay.png", 1)
|
||||||
|
local dataGlowOverlayImage = gfx.CreateSkinImage("song_select/data_panel/data_glow_overlay.png", 1)
|
||||||
|
local gradeBgImage = gfx.CreateSkinImage("song_select/data_panel/grade_bg.png", 1)
|
||||||
|
local badgeBgImage = gfx.CreateSkinImage("song_select/data_panel/clear_badge_bg.png", 1)
|
||||||
|
local effectedBgImage = gfx.CreateSkinImage("song_select/data_panel/effected_bg.png", 1)
|
||||||
|
local illustratedBgImage = gfx.CreateSkinImage("song_select/data_panel/illust_bg.png", 1)
|
||||||
local songPlateBg = gfx.CreateSkinImage("song_select/plate/bg.png", 1)
|
local songPlateBg = gfx.CreateSkinImage("song_select/plate/bg.png", 1)
|
||||||
local songPlateBottomBarOverlayImage = gfx.CreateSkinImage("song_select/plate/bottom_bar_overlay.png", 1)
|
local songPlateBottomBarOverlayImage = gfx.CreateSkinImage("song_select/plate/bottom_bar_overlay.png", 1)
|
||||||
|
|
||||||
|
@ -182,7 +187,7 @@ function drawBackground()
|
||||||
local song = songwheel.songs[selectedIndex];
|
local song = songwheel.songs[selectedIndex];
|
||||||
local diff = song.difficulties[selectedDifficulty];
|
local diff = song.difficulties[selectedDifficulty];
|
||||||
local bestScore = diff.scores[1];
|
local bestScore = diff.scores[1];
|
||||||
if song and diff and bestScore then
|
if song and diff then
|
||||||
local jacketImage = getJacketImage(song);
|
local jacketImage = getJacketImage(song);
|
||||||
if jacketImage ~= defaultJacketImage then
|
if jacketImage ~= defaultJacketImage then
|
||||||
gfx.BeginPath()
|
gfx.BeginPath()
|
||||||
|
@ -197,7 +202,23 @@ function drawBackground()
|
||||||
end
|
end
|
||||||
|
|
||||||
gfx.BeginPath()
|
gfx.BeginPath()
|
||||||
gfx.ImageRect(0, 0, desw, desh, dataBackgroundOverlayImage, transitionAfterscrollDataOverlayAlpha, 0)
|
end
|
||||||
|
|
||||||
|
gfx.ImageRect(0, 0, desw, desh, dataPanelImage, 1, 0)
|
||||||
|
|
||||||
|
if song and diff then
|
||||||
|
gfx.BeginPath()
|
||||||
|
gfx.ImageRect(0, 0, desw, desh, dataGlowOverlayImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||||
|
gfx.BeginPath()
|
||||||
|
|
||||||
|
gfx.ImageRect(341, 754, 85, 85, gradeBgImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||||
|
gfx.BeginPath()
|
||||||
|
gfx.ImageRect(391, 687, 180*0.85, 226*0.85, badgeBgImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||||
|
gfx.BeginPath()
|
||||||
|
|
||||||
|
gfx.ImageRect(95, 1165, 433, 30, effectedBgImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||||
|
gfx.BeginPath()
|
||||||
|
gfx.ImageRect(95, 1195, 433, 30, illustratedBgImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 21 KiB |