Fix nostalgia options going back to main instead of options menu.

This commit is contained in:
UnknownShadow200 2016-09-12 09:07:14 +10:00
parent 7d2c9b0829
commit 77d404674d

View file

@ -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;