launcher.tscn 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://launcher.gd" type="Script" id=1]
  3. [ext_resource path="res://dowloadbackground.png" type="Texture" id=2]
  4. [ext_resource path="res://yoster.ttf" type="DynamicFontData" id=3]
  5. [ext_resource path="res://CheckBox.gd" type="Script" id=4]
  6. [ext_resource path="res://Helm.ogg" type="AudioStream" id=5]
  7. [ext_resource path="res://Button.gd" type="Script" id=6]
  8. [sub_resource type="DynamicFont" id=1]
  9. size = 12
  10. font_data = ExtResource( 3 )
  11. [node name="Node" type="Node"]
  12. script = ExtResource( 1 )
  13. [node name="HTTPRequest" type="HTTPRequest" parent="."]
  14. [node name="HTTPRequest2" type="HTTPRequest" parent="."]
  15. [node name="dowloadbackground" type="Sprite" parent="."]
  16. modulate = Color( 1, 1, 1, 0.352941 )
  17. texture = ExtResource( 2 )
  18. centered = false
  19. [node name="ColorRect" type="ColorRect" parent="dowloadbackground"]
  20. use_parent_material = true
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. __meta__ = {
  24. "_edit_use_anchors_": false
  25. }
  26. [node name="ProgressBar" type="ProgressBar" parent="."]
  27. anchor_left = 0.5
  28. anchor_top = 0.5
  29. anchor_right = 0.5
  30. anchor_bottom = 0.5
  31. margin_left = -100.0
  32. margin_top = -24.6051
  33. margin_right = 100.0
  34. margin_bottom = -10.6051
  35. custom_fonts/font = SubResource( 1 )
  36. __meta__ = {
  37. "_edit_use_anchors_": false
  38. }
  39. [node name="Sprite" type="Sprite" parent="."]
  40. position = Vector2( 0, -18.3543 )
  41. [node name="Label" type="Label" parent="."]
  42. anchor_top = 0.5
  43. anchor_right = 1.0
  44. anchor_bottom = 0.5
  45. margin_top = -7.0
  46. margin_bottom = 7.0
  47. rect_pivot_offset = Vector2( 95.3067, 6.6933 )
  48. custom_fonts/font = SubResource( 1 )
  49. text = "Checking most recent version!"
  50. align = 1
  51. valign = 1
  52. __meta__ = {
  53. "_edit_use_anchors_": false
  54. }
  55. [node name="Button" type="Button" parent="."]
  56. anchor_left = 0.5
  57. anchor_top = 0.5
  58. anchor_right = 0.5
  59. anchor_bottom = 0.5
  60. margin_left = -30.0
  61. margin_top = 45.2357
  62. margin_right = 30.0
  63. margin_bottom = 65.2357
  64. custom_fonts/font = SubResource( 1 )
  65. disabled = true
  66. text = "launch"
  67. script = ExtResource( 6 )
  68. __meta__ = {
  69. "_edit_use_anchors_": false
  70. }
  71. [node name="Button2" type="Button" parent="."]
  72. anchor_left = 0.5
  73. anchor_top = 0.5
  74. anchor_right = 0.5
  75. anchor_bottom = 0.5
  76. margin_left = -54.5
  77. margin_top = 83.2327
  78. margin_right = 54.5
  79. margin_bottom = 103.233
  80. custom_fonts/font = SubResource( 1 )
  81. text = "force update"
  82. script = ExtResource( 6 )
  83. __meta__ = {
  84. "_edit_use_anchors_": false
  85. }
  86. [node name="CheckBox" type="CheckBox" parent="."]
  87. anchor_left = 0.5
  88. anchor_top = 0.5
  89. anchor_right = 0.5
  90. anchor_bottom = 0.5
  91. margin_left = -33.0
  92. margin_top = 11.8171
  93. margin_right = 33.0
  94. margin_bottom = 35.8171
  95. custom_fonts/font = SubResource( 1 )
  96. pressed = true
  97. text = "music"
  98. script = ExtResource( 4 )
  99. __meta__ = {
  100. "_edit_use_anchors_": false
  101. }
  102. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="CheckBox"]
  103. stream = ExtResource( 5 )
  104. [connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
  105. [connection signal="request_completed" from="HTTPRequest2" to="." method="_on_HTTPRequest2_request_completed"]
  106. [connection signal="button_down" from="Button" to="Button" method="_on_Button_button_down"]
  107. [connection signal="button_down" from="Button2" to="." method="force_update"]
  108. [connection signal="toggled" from="CheckBox" to="CheckBox" method="_on_CheckBox_toggled"]