mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 17:43:08 -05:00
Fix nostalgia options going back to main instead of options menu.
This commit is contained in:
parent
7d2c9b0829
commit
77d404674d
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue