Skip to content

Commit 25f47c2

Browse files
committed
Add announcer on StageInfo
1 parent c952f8c commit 25f47c2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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;

BGAnimations/ScreenStageInformation in/default.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
};
1314
t[#t+1] = Def.ActorFrame {
1415
InitCommand=function(self)

0 commit comments

Comments
 (0)