35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dk0u6daqunn2k"]
|
|
|
|
[ext_resource type="Script" path="res://Sample.gd" id="1"]
|
|
|
|
[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="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="UploadButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Upload"
|
|
|
|
[node name="DownloadButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Download"
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
script = ExtResource("1")
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/UploadButton" to="VBoxContainer/TextureRect" method="_on_UploadButton_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/DownloadButton" to="VBoxContainer/TextureRect" method="_on_DownloadButton_pressed"]
|