source: Studio/Popup.gd@ c8c895d

sandbox
Last change on this file since c8c895d was f7b09c8, checked in by Kevin Chapman <victory2b@…>, 4 years ago

First Draft of world test with working movement and loading screen.

  • Property mode set to 100644
File size: 288 bytes
Line 
1extends Popup
2
3
4func _on_pause_button_pressed():
5 get_tree().paused = true
6 $pause_popup.show()
7func _on_pause_popup_close_pressed():
8 $pause_popup.hide()
9 if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE:
10 Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
11 get_tree().paused = false
Note: See TracBrowser for help on using the repository browser.