mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
When pressing escape in pause screen, return to normal screen.
This commit is contained in:
parent
c7bfbc8567
commit
fa5352f634
@ -116,6 +116,8 @@ namespace ClassicalSharp {
|
|||||||
} else if( key == Keys[KeyMapping.PauseOrExit] && !Map.IsNotLoaded ) {
|
} else if( key == Keys[KeyMapping.PauseOrExit] && !Map.IsNotLoaded ) {
|
||||||
if( !( activeScreen is PauseScreen ) ) {
|
if( !( activeScreen is PauseScreen ) ) {
|
||||||
SetNewScreen( new PauseScreen( this ) );
|
SetNewScreen( new PauseScreen( this ) );
|
||||||
|
} else {
|
||||||
|
SetNewScreen( new NormalScreen( this ) );
|
||||||
}
|
}
|
||||||
} else if( activeScreen == null || !activeScreen.HandlesKeyDown( key ) ) {
|
} else if( activeScreen == null || !activeScreen.HandlesKeyDown( key ) ) {
|
||||||
if( key == Keys[KeyMapping.OpenInventory] ) {
|
if( key == Keys[KeyMapping.OpenInventory] ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user