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\"))
|
|
|
|
|
|
|
|
|
|
"
|
2023-04-22 13:11:10 +00:00
|
|
|
|
|
|
|
|
[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")
|
2023-04-22 13:11:10 +00:00
|
|
|
text = "small boi"
|
2024-10-18 16:11:45 +00:00
|
|
|
script = SubResource("GDScript_qm6fo")
|
2023-04-22 13:11:10 +00:00
|
|
|
|
|
|
|
|
[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
|
2023-04-22 13:11:10 +00:00
|
|
|
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")
|