1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- [gd_scene load_steps=3 format=2]
- [ext_resource path="res://preload.gd" type="Script" id=1]
- [sub_resource type="GDScript" id=1]
- script/source = "extends LinkButton
- func _on_LinkButton_button_up():
- # warning-ignore:return_value_discarded
- OS.shell_open(\"http://docs.godotengine.org/en/3.2/tutorials/io/background_loading.html#using-multiple-threads\")
- "
- [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 = SubResource( 1 )
- __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"]
|