2026-01-22 14:12:24 +00:00
|
|
|
class_name PauseMenu extends Control
|
2025-02-24 15:12:00 +00:00
|
|
|
|
2026-01-22 14:12:24 +00:00
|
|
|
@onready var resume_button := %ResumeButton
|
|
|
|
|
@onready var to_menu_button := %ToMenuButton
|
|
|
|
|
@onready var to_settings_button := %ToSettingsButton
|
|
|
|
|
@onready var to_desktop_button := %ToDesktopButton
|
|
|
|
|
@onready var helpline_button := %FindHelplineButton
|
|
|
|
|
@onready var skip_story_button := %SkipStoryButton
|
2025-02-24 15:12:00 +00:00
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
func _ready() -> void:
|
2026-01-22 14:12:24 +00:00
|
|
|
resume_button.pressed.connect(func(): Main.state = Main.AppState.PLAY)
|
2025-03-23 14:43:04 +00:00
|
|
|
#to_menu_button.pressed.connect(_process)
|
2025-02-24 15:12:00 +00:00
|
|
|
to_desktop_button.pressed.connect(func(): get_tree().quit())
|
2025-03-23 14:43:04 +00:00
|
|
|
#to_settings_button.pressed.connect(_process)
|
2025-02-24 15:12:00 +00:00
|
|
|
helpline_button.pressed.connect(func(): OS.shell_open("https://findahelpline.com/"))
|
2025-03-23 14:43:04 +00:00
|
|
|
#skip_story_button.pressed.connect(_process)
|
2025-03-03 14:29:52 +00:00
|
|
|
|
2025-02-24 15:12:00 +00:00
|
|
|
func _on_help_pressed():
|
|
|
|
|
OS.shell_open("https://findahelpline.com/")
|