HTML5-File-Exchange-for-Godot/sample.tscn

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-10 03:45:00 +00:00
[gd_scene load_steps=2 format=3 uid="uid://dk0u6daqunn2k"]
2023-09-10 03:45:00 +00:00
[ext_resource type="Script" path="res://Sample.gd" id="1"]
[node name="Control" type="Control"]
2023-09-10 03:45:00 +00:00
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2023-09-10 03:45:00 +00:00
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="."]
2023-09-10 03:45:00 +00:00
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
2023-09-10 03:45:00 +00:00
layout_mode = 2
[node name="UploadButton" type="Button" parent="VBoxContainer/HBoxContainer"]
2023-09-10 03:45:00 +00:00
layout_mode = 2
text = "Upload"
[node name="DownloadButton" type="Button" parent="VBoxContainer/HBoxContainer"]
2023-09-10 03:45:00 +00:00
layout_mode = 2
text = "Download"
[node name="TextureRect" type="TextureRect" parent="VBoxContainer"]
2023-09-10 03:45:00 +00:00
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"]