Skip to content

Commit

Permalink
音乐室内inside曲目标题样式会不同
Browse files Browse the repository at this point in the history
添加两个新曲索引
  • Loading branch information
MrZ626 committed Jun 24, 2024
1 parent 93d8e96 commit 14049d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/scene/musicroom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ function scene.draw()
titleTextObj:set(SONGBOOK[selected].title)
end
local t=love.timer.getTime()
gc_setColor(sin(t*.5)*.2+.8,sin(t*.7)*.2+.8,sin(t)*.2+.8)
if SONGBOOK[selected].inside then
gc_setColor(1,1,1,MATH.roundUnit(.5+sin(6.2*t)*.26,.26))
else
gc_setColor(sin(t*.5)*.2+.8,sin(t*.7)*.2+.8,sin(t)*.2+.8)
end
gc.draw(titleTextObj,-100,-100,0,min(1,650/titleTextObj:getWidth()),nil,titleTextObj:getWidth(),titleTextObj:getHeight())

-- Author and message
Expand Down
4 changes: 4 additions & 0 deletions assets/songbook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ local songbook={
['pressure orchestra'] ={author="事渔之人",message="A cool pressure remix"},
['secret7th_old'] ={message="The -7th secret"},
['secret7th overdrive remix']={author="Yunokawa"},
['infinite remix'] ={author="TetraCepra"},
['reason remix'] ={author="TetraCepra"},

['caprice'] ={inside=true,redirect='rectification'},
['fruit dance_ex'] ={inside=true,redirect='fruit dance'},
Expand All @@ -89,6 +91,8 @@ local songbook={
['secret7th remix_hypersonic_titanium'] ={inside=true,author="柒栎流星",redirect='secret7th remix'},
['race remix_mix'] ={inside=true,author="柒栎流星",redirect='race remix'},
['propel_marathon'] ={inside=true,author="TetraCepra",redirect='propel'},
['infinite remix_mix'] ={inside=true,author="TetraCepra",redirect='infinite remix'},
['reason remix_mix'] ={inside=true,author="TetraCepra",redirect='reason remix'},
['sakura_noloop'] ={inside=true,author="C₂₉H₂₅N₃O₅",redirect='sakura'},
['shibamata_noloop'] ={inside=true,author="C₂₉H₂₅N₃O₅",redirect='shibamata'},
}
Expand Down

0 comments on commit 14049d2

Please sign in to comment.