File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
BGAnimations/ScreenStageInformation in Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ local sStage = GAMESTATE :GetCurrentStage ();
2+ local tRemap = {
3+ Stage_1st = 1 ,
4+ Stage_2nd = 2 ,
5+ Stage_3rd = 3 ,
6+ Stage_4th = 4 ,
7+ Stage_5th = 5 ,
8+ Stage_6th = 6 ,
9+ };
10+ if tRemap [sStage ] == PREFSMAN :GetPreference (" SongsPerPlay" ) then
11+ sStage = " Stage_Final" ;
12+ else
13+ sStage = sStage ;
14+ end ;
15+
16+ local rename = {
17+ Stage_1st = " stage 1" ,
18+ Stage_2nd = " stage 2" ,
19+ Stage_3rd = " stage 3" ,
20+ Stage_4th = " stage 4" ,
21+ Stage_5th = " stage 5" ,
22+ Stage_6th = " stage 6" ,
23+ Stage_Final = " stage final" ,
24+ Stage_Extra = " stage extra1" ,
25+ Stage_Extra1 = " stage extra1" ,
26+ Stage_Extra2 = " stage extra2" ,
27+ }
28+
29+ local asound = rename [sStage ]
30+
31+ if GAMESTATE :GetCurrentStageIndex () >= 5 then
32+ asound = " stage event"
33+ elseif GAMESTATE :GetPlayMode () == ' PlayMode_Oni' then
34+ asound = " stage oni"
35+ elseif GAMESTATE :GetPlayMode () == ' PlayMode_Nonstop' then
36+ asound = " stage nonstop"
37+ elseif GAMESTATE :GetCurrentStage () == ' Stage_Final' then
38+ asound = " stage final"
39+ elseif GAMESTATE :IsExtraStage () then
40+ asound = " stage extra1"
41+ elseif GAMESTATE :IsExtraStage2 () then
42+ asound = " stage extra2"
43+ end
44+
45+ SOUND :PlayAnnouncer (asound )
46+
47+ return t ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ local t = Def.ActorFrame {
99 LoadActor (THEME :GetPathB (" " ," _StageDoors" )).. {
1010 OnCommand = function (s ) s :playcommand (" AnOn" ) end ,
1111 };
12+ LoadActor (" SoundStage" );
1213};
1314t [# t + 1 ] = Def .ActorFrame {
1415 InitCommand = function (self )
You can’t perform that action at this time.
0 commit comments