preload.tscn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://preload.gd" type="Script" id=1]
  3. [ext_resource path="res://link_button.gd" type="Script" id=2]
  4. [node name="Node" type="Node"]
  5. script = ExtResource( 1 )
  6. [node name="ColorRect" type="ColorRect" parent="."]
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. color = Color( 0.00390625, 0, 0, 1 )
  10. [node name="ProgressBar" type="ProgressBar" parent="."]
  11. anchor_left = 0.5
  12. anchor_top = 0.5
  13. anchor_right = 0.5
  14. anchor_bottom = 0.5
  15. margin_left = -225.0
  16. margin_top = -66.0
  17. margin_right = 225.0
  18. margin_bottom = 66.0
  19. step = 1.0
  20. [node name="Button" type="Button" parent="."]
  21. anchor_left = 0.5
  22. anchor_top = 0.5
  23. anchor_right = 0.5
  24. anchor_bottom = 0.5
  25. margin_left = -223.0
  26. margin_top = -193.0
  27. margin_right = 224.0
  28. margin_bottom = -84.0
  29. text = "Load next scene"
  30. [node name="Label" type="Label" parent="."]
  31. anchor_left = 0.5
  32. anchor_right = 0.5
  33. margin_left = -267.0
  34. margin_top = 12.0
  35. margin_right = 267.0
  36. margin_bottom = 82.0
  37. text = "Multiple-treads loading demo
  38. The next scene contains 40 resource files. Loading is done using multiple threads.
  39. The download speed depends on the performance of your device.
  40. For more information, see:"
  41. __meta__ = {
  42. "_edit_use_anchors_": false
  43. }
  44. [node name="LinkButton" type="LinkButton" parent="."]
  45. anchor_left = 0.5
  46. anchor_right = 0.5
  47. margin_left = -233.0
  48. margin_top = 80.0
  49. margin_right = 233.0
  50. margin_bottom = 94.0
  51. text = "http://docs.godotengine.org/en/3.2/tutorials/io/background_loading.html"
  52. script = ExtResource( 2 )
  53. __meta__ = {
  54. "_edit_use_anchors_": false
  55. }
  56. [connection signal="button_up" from="Button" to="." method="_on_Button_button_up"]
  57. [connection signal="button_up" from="LinkButton" to="LinkButton" method="_on_LinkButton_button_up"]