feat: pause menu is just now menu and does not pause
This commit is contained in:
+1
-3
@@ -66,13 +66,11 @@ func _input(event: InputEvent) -> void:
|
||||
|
||||
func _pause() -> void:
|
||||
visible = true
|
||||
get_tree().paused = true
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
_show_main_menu()
|
||||
|
||||
func _resume() -> void:
|
||||
visible = false
|
||||
get_tree().paused = false
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
|
||||
func _respawn() -> void:
|
||||
@@ -95,7 +93,7 @@ func _build_ui() -> void:
|
||||
main_center.add_child(main_vbox)
|
||||
|
||||
var title = Label.new()
|
||||
title.text = "PAUSED"
|
||||
title.text = "MENU"
|
||||
title.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
title.add_theme_font_size_override("font_size", 48)
|
||||
main_vbox.add_child(title)
|
||||
|
||||
Reference in New Issue
Block a user