46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://c1w3l5dyo0mrk"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_8neu0"]
|
|
script/source = "extends VBoxContainer
|
|
|
|
@onready var mouse_loop_button = $ScrollContainer/VBoxContainer/MouseLoop
|
|
@onready var mouse_fling_button = $ScrollContainer/VBoxContainer/MouseFling
|
|
|
|
const SCENE_MOUSE_LOOP = preload(\"res://scenes/debug/MouseLoop.tscn\")
|
|
const SCENE_MOUSE_FLING = preload(\"res://scenes/debug/MouseFling.tscn\")
|
|
|
|
func _on_mouse_loop_pressed() -> void:
|
|
SceneManager.change_scene(SCENE_MOUSE_LOOP)
|
|
|
|
func _on_mouse_fling_pressed() -> void:
|
|
SceneManager.change_scene(SCENE_MOUSE_FLING)
|
|
"
|
|
|
|
[node name="Debug" type="VBoxContainer"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = SubResource("GDScript_8neu0")
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="CenterContainer"]
|
|
layout_mode = 2
|
|
text = "Debug Menu"
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="MouseLoop" type="Button" parent="ScrollContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Mouse Loop"
|
|
|
|
[connection signal="pressed" from="ScrollContainer/VBoxContainer/MouseLoop" to="." method="_on_mouse_loop_pressed"]
|