mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-25 14:14:46 -04:00
Fix nostalgia options going back to main instead of options menu.
This commit is contained in:
parent
7d2c9b0829
commit
77d404674d
@ -39,7 +39,7 @@ namespace ClassicalSharp.Gui {
|
||||
OnWidgetClick, g => g.AllowServerTextures, (g, v) => g.AllowServerTextures = v ),
|
||||
|
||||
MakeBack( false, titleFont,
|
||||
(g, w) => g.Gui.SetNewScreen( new PauseScreen( g ) ) ),
|
||||
(g, w) => g.Gui.SetNewScreen( PreviousScreen() ) ),
|
||||
null, null,
|
||||
};
|
||||
|
||||
@ -57,6 +57,11 @@ namespace ClassicalSharp.Gui {
|
||||
Anchor.Centre, Anchor.Centre, regularFont );
|
||||
}
|
||||
|
||||
Screen PreviousScreen() {
|
||||
if( game.UseClassicOptions ) return new PauseScreen( game );
|
||||
return new OptionsGroupScreen( game );
|
||||
}
|
||||
|
||||
public override void Render( double delta ) {
|
||||
base.Render( delta );
|
||||
api.Texturing = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user