frame-of-mind/src/dev-util/ui-testing.tscn

61 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-10-18 16:11:45 +00:00
[gd_scene load_steps=4 format=3 uid="uid://52mr50b01ibd"]
[ext_resource type="Theme" uid="uid://d00g441vb4f6i" path="res://dev-util/test_theme.tres" id="1_v0n80"]
[sub_resource type="GDScript" id="GDScript_qm6fo"]
script/source = "extends Button
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
ProjectSettings.set_setting(\"gui/theme/custom\", \"res://dev-util/test_theme.tres\")
"
[sub_resource type="GDScript" id="GDScript_rovd7"]
script/source = "extends MenuButton
func _ready() -> void:
mouse_entered.connect(func(id): print(\"mouse_entered\"))
get_popup().id_pressed.connect(func(id): print(\"id_pressed\"))
get_popup().index_pressed.connect(func(id): print(\"id_pressed\"))
get_popup().id_focused.connect(func(id): print(\"id_focused\"))
"
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="."]
layout_mode = 0
2024-10-18 16:11:45 +00:00
offset_left = 458.0
offset_top = 209.0
offset_right = 611.0
offset_bottom = 281.0
theme = ExtResource("1_v0n80")
text = "small boi"
2024-10-18 16:11:45 +00:00
script = SubResource("GDScript_qm6fo")
[node name="Button2" type="Button" parent="."]
layout_mode = 0
2024-10-18 16:11:45 +00:00
offset_left = 662.0
offset_top = 198.0
offset_right = 915.0
offset_bottom = 399.0
text = "big boi"
2024-10-18 16:11:45 +00:00
[node name="OptionButton" type="MenuButton" parent="."]
layout_mode = 0
offset_right = 569.0
offset_bottom = 174.0
text = "Hello"
item_count = 2
popup/item_0/text = "asdf"
popup/item_1/text = "werty"
popup/item_1/id = 1
script = SubResource("GDScript_rovd7")