49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://cbjst1wmpg8yc"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/test_instance_scene.gd" id="1_qbiqn"]
|
|
|
|
[node name="TestInstanceScene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_qbiqn")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
|
|
[node name="ButtonInstantiate" type="Button" parent="MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
text = "Instantiate Enemy"
|
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/HBoxContainer/ButtonInstantiate"]
|
|
|
|
[node name="ButtonExit" type="Button" parent="MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
text = "Exit"
|
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/HBoxContainer/ButtonExit"]
|
|
|
|
[connection signal="pressed" from="MarginContainer/HBoxContainer/ButtonInstantiate" to="." method="_on_button_instantiate_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/HBoxContainer/ButtonExit" to="." method="_on_button_exit_pressed"]
|