-
I created multiple Screen classes and one that extends from ScreenStack to handle the switches: public partial class EditorSubScreens : ScreenStack
{
private readonly ChartInfoScreen chartInfoScreen = new();
private readonly TimingScreen timingScreen = new();
public EditorSubScreens()
{
Push(chartInfoScreen); // Default screen
}
public void DisplayChartInfoScreen()
{
Exit();
Push(chartInfoScreen);
}
public void DisplayTimingScreen()
{
Exit();
Push(timingScreen);
}
} However, calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It sounds like you might want something that isn't a stack? Something like this setup may give you a bit of inspiration: https://github.com/ppy/osu/blob/8a06914438fd3d1d8bdcc462c5fe196891bee2c7/osu.Game.Tournament/TournamentSceneManager.cs#L54 |
Beta Was this translation helpful? Give feedback.
It sounds like you might want something that isn't a stack?
Something like this setup may give you a bit of inspiration: https://github.com/ppy/osu/blob/8a06914438fd3d1d8bdcc462c5fe196891bee2c7/osu.Game.Tournament/TournamentSceneManager.cs#L54