mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
66 lines
1.7 KiB
Plaintext
66 lines
1.7 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://preload.gd" type="Script" id=1]
|
|
[ext_resource path="res://link_button.gd" type="Script" id=2]
|
|
|
|
[node name="Node" type="Node"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color( 0.00390625, 0, 0, 1 )
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -225.0
|
|
margin_top = -66.0
|
|
margin_right = 225.0
|
|
margin_bottom = 66.0
|
|
step = 1.0
|
|
|
|
[node name="Button" type="Button" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -223.0
|
|
margin_top = -193.0
|
|
margin_right = 224.0
|
|
margin_bottom = -84.0
|
|
text = "Load next scene"
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = -267.0
|
|
margin_top = 12.0
|
|
margin_right = 267.0
|
|
margin_bottom = 82.0
|
|
text = "Multiple-treads loading demo
|
|
The next scene contains 40 resource files. Loading is done using multiple threads.
|
|
The download speed depends on the performance of your device.
|
|
For more information, see:"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="LinkButton" type="LinkButton" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = -233.0
|
|
margin_top = 80.0
|
|
margin_right = 233.0
|
|
margin_bottom = 94.0
|
|
text = "http://docs.godotengine.org/en/3.2/tutorials/io/background_loading.html"
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[connection signal="button_up" from="Button" to="." method="_on_Button_button_up"]
|
|
[connection signal="button_up" from="LinkButton" to="LinkButton" method="_on_LinkButton_button_up"]
|