|
@@ -1,10 +1,18 @@
|
|
extends Control
|
|
extends Control
|
|
|
|
|
|
|
|
|
|
|
|
+const curseur_main: Texture = preload("res://composants/interface/curseur/hand_point.png")
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+func _ready() -> void:
|
|
|
|
+ Input.set_custom_mouse_cursor(curseur_main, Input.CURSOR_POINTING_HAND)
|
|
|
|
+
|
|
|
|
+
|
|
func reprendre() -> void:
|
|
func reprendre() -> void:
|
|
hide()
|
|
hide()
|
|
AudioServer.set_bus_effect_enabled(2, 1,false)
|
|
AudioServer.set_bus_effect_enabled(2, 1,false)
|
|
get_tree().set_pause(false)
|
|
get_tree().set_pause(false)
|
|
|
|
+ Input.set_custom_mouse_cursor(null, Input.CURSOR_ARROW)
|
|
|
|
|
|
|
|
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
@@ -31,5 +39,10 @@ func _quand_bouton_quitter_est_presse():
|
|
|
|
|
|
|
|
|
|
func _on_visibility_changed():
|
|
func _on_visibility_changed():
|
|
|
|
+ if visible:
|
|
|
|
+ _activer_pause()
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+func _activer_pause() -> void:
|
|
%Reprendre.grab_focus()
|
|
%Reprendre.grab_focus()
|
|
|
|
|