File tree 5 files changed +35
-7
lines changed
5 files changed +35
-7
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,6 @@ Branch = {
185
185
return " ScreenStageInformation"
186
186
end
187
187
end ,
188
- GameplayScreen = function ()
189
- return " ScreenGameplay"
190
- end ,
191
188
AfterGameplay = function ()
192
189
return " ScreenEvaluationNormal"
193
190
end ,
Original file line number Diff line number Diff line change @@ -32,6 +32,16 @@ function GameOverOrContinue()
32
32
end
33
33
end
34
34
35
+ function ToGameplay ()
36
+ if GAMESTATE :IsPracticeMode () then
37
+ return " ScreenGameplayPractice"
38
+ elseif GAMESTATE :IsReplayMode () then
39
+ return " ScreenGameplayReplay"
40
+ else
41
+ return " ScreenGameplay"
42
+ end
43
+ end
44
+
35
45
Branch = {
36
46
Init = function ()
37
47
return " ScreenInit"
@@ -189,9 +199,6 @@ Branch = {
189
199
return " ScreenStageInformation"
190
200
end
191
201
end ,
192
- GameplayScreen = function ()
193
- return " ScreenGameplay"
194
- end ,
195
202
AfterGameplay = function ()
196
203
return " ScreenEvaluationNormal"
197
204
end ,
Original file line number Diff line number Diff line change @@ -1552,7 +1552,7 @@ Fallback="StepsDisplay"
1552
1552
[ScreenStageInformation]
1553
1553
Class =" ScreenSplash"
1554
1554
Fallback =" ScreenSplash"
1555
- NextScreen =Branch.GameplayScreen ()
1555
+ NextScreen =ToGameplay ()
1556
1556
PrevScreen =Branch.BackOutOfStageInformation()
1557
1557
PrepareScreen =" ScreenGameplay"
1558
1558
#
@@ -2550,6 +2550,19 @@ PrepareScreen=
2550
2550
Class =" ScreenExit"
2551
2551
Fallback =" ScreenWithMenuElements"
2552
2552
AllowOperatorMenuButton =false
2553
+
2554
+ [ScreenGameplayPractice]
2555
+ Fallback =" ScreenGameplay"
2556
+ Class =" ScreenGameplayPractice"
2557
+ NextScreen =Branch.AfterGameplay()
2558
+ PrevScreen =Branch.BackOutOfStageInformation()
2559
+
2560
+ [ScreenGameplayReplay]
2561
+ Fallback =" ScreenGameplay"
2562
+ Class =" ScreenGameplayReplay"
2563
+ NextScreen =Branch.AfterGameplay()
2564
+ PrevScreen =Branch.BackOutOfStageInformation()
2565
+
2553
2566
[ScreenNetGameplay]
2554
2567
Fallback =" ScreenGameplay"
2555
2568
Class =" ScreenGameplayNormal"
Original file line number Diff line number Diff line change @@ -1862,6 +1862,8 @@ class LunaGameState : public Luna<GameState>
1862
1862
GamePreferences::m_AutoPlay.Set (p->m_pPlayerState ->m_PlayerController );
1863
1863
return 0 ;
1864
1864
}
1865
+ DEFINE_METHOD (IsPracticeMode, IsPracticeMode())
1866
+ DEFINE_METHOD(IsReplayMode, IsReplayMode())
1865
1867
1866
1868
DEFINE_METHOD(GetEtternaVersion, GetEtternaVersion())
1867
1869
LunaGameState()
@@ -1954,6 +1956,8 @@ class LunaGameState : public Luna<GameState>
1954
1956
ADD_METHOD (UpdateDiscordMenu);
1955
1957
ADD_METHOD (UpdateDiscordPresence);
1956
1958
ADD_METHOD (IsPaused);
1959
+ ADD_METHOD (IsPracticeMode);
1960
+ ADD_METHOD (IsReplayMode);
1957
1961
}
1958
1962
};
1959
1963
Original file line number Diff line number Diff line change @@ -314,6 +314,13 @@ class GameState
314
314
Profile* GetEditLocalProfile ();
315
315
bool m_bIsChartPreviewActive;
316
316
317
+ // is the game in a practice state
318
+ bool m_practice = false ;
319
+ // is the game in a replay state
320
+ bool m_replay = false ;
321
+ bool IsPracticeMode () { return m_practice; }
322
+ bool IsReplayMode () { return m_replay; }
323
+
317
324
// Discord Rich Presence
318
325
void discordInit ();
319
326
void updateDiscordPresence (const RString& largeImageText,
You can’t perform that action at this time.
0 commit comments