stick-the-quick/ui/DebugMenu/DebugMenu.gd

40 lines
1.3 KiB
GDScript3
Raw Permalink Normal View History

class_name DebugMenu extends Control
@onready var _button_conversation_test := (
$OuterMargin/Content/VBoxContainer/ConversationTest
) as Button
@onready var _button_screen_effects_test := (
$OuterMargin/Content/VBoxContainer/ScreenEffectsTest
) as Button
@onready var _button_sound_test := (
$OuterMargin/Content/VBoxContainer/SoundTest
) as Button
@onready var _button_change_character := (
$OuterMargin/Content/VBoxContainer/ChangeCharacter
) as Button
@onready var _button_back := (
$OuterMargin/Content/VBoxContainer/Back
) as Button
func _ready() -> void:
_button_conversation_test.pressed.connect(_conversation_test)
_button_screen_effects_test.pressed.connect(_screen_effects_test)
_button_sound_test.pressed.connect(_sound_test)
_button_change_character.pressed.connect(_change_character)
_button_back.pressed.connect(_back)
func _conversation_test() -> void:
await UI.Call(load('res://ui/DebugMenu/ConversationTest.tscn'))
func _screen_effects_test() -> void:
await UI.Call(load('res://ui/DebugMenu/ScreenEffectsTest.tscn'))
func _sound_test() -> void:
await UI.Call(load('res://ui/DebugMenu/SoundTest.tscn'))
func _change_character() -> void:
await UI.Call(load('res://ui/DebugMenu/ChangeCharacter.tscn'))
func _back() -> void:
UI.Return(self, true)