Skip to content

Commit 1631ea0

Browse files
MightyTheArmiddiloKade-github
authored andcommitted
New line for changing the pause menu's camera
1 parent 267fa66 commit 1631ea0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/content/cookbook/Expert/05.CustomPauseAndGameOver.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class Hex_Hud extends Module
5858
5959
// Create and show our pause menu
6060
final pauseSubState = new HexPauseMenu();
61+
// Set our pause menu's camera to a special one or else the hud and other elements will appear over it
62+
pauseSubState.camera = PlayState.instance.camPause;
6163
PlayState.instance.shouldSubstatePause = true;
6264
PlayState.instance.openSubState(pauseSubState);
6365
}
@@ -134,4 +136,4 @@ class HexPauseMenu extends MusicBeatSubState
134136
}
135137
```
136138

137-
> Author: [Kade](https://github.com/Kade-github)
139+
> Author: [Kade](https://github.com/Kade-github)

0 commit comments

Comments
 (0)