save settings on enter, revert on leave
This commit is contained in:
@@ -1449,6 +1449,7 @@ public class Game extends BasicGameState {
|
||||
|
||||
sbOverlay.setGameObjects(gameObjects);
|
||||
if (!checkpointLoaded) {
|
||||
sbOverlay.enter();
|
||||
sbOverlay.updateIndex(0);
|
||||
}
|
||||
|
||||
@@ -1467,6 +1468,8 @@ public class Game extends BasicGameState {
|
||||
throws SlickException {
|
||||
// container.setMouseGrabbed(false);
|
||||
|
||||
sbOverlay.leave();
|
||||
|
||||
Cursor.lastObjColor = Color.white;
|
||||
Cursor.lastMirroredObjColor = Color.white;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user