launcher.tscn 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://launcher.gd" type="Script" id=1]
  3. [ext_resource path="res://poster2wallpapaer.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://Helmsmall.ogg" type="AudioStream" id=5]
  7. [ext_resource path="res://Button.gd" type="Script" id=6]
  8. [ext_resource path="res://changelogui.gd" type="Script" id=7]
  9. [sub_resource type="DynamicFont" id=2]
  10. size = 12
  11. font_data = ExtResource( 3 )
  12. [sub_resource type="StyleBoxFlat" id=3]
  13. bg_color = Color( 1, 0, 0, 1 )
  14. [sub_resource type="StyleBoxFlat" id=4]
  15. bg_color = Color( 0.227451, 0.00784314, 0.00784314, 1 )
  16. [sub_resource type="StyleBoxFlat" id=5]
  17. bg_color = Color( 0.317647, 0.501961, 0.454902, 1 )
  18. border_width_left = 1
  19. border_width_top = 1
  20. border_width_right = 1
  21. border_width_bottom = 1
  22. [node name="Node" type="Node"]
  23. script = ExtResource( 1 )
  24. [node name="HTTPRequest" type="HTTPRequest" parent="."]
  25. use_threads = true
  26. [node name="HTTPRequest2" type="HTTPRequest" parent="."]
  27. [node name="background" type="Node2D" parent="."]
  28. [node name="ssaftgwersdtj4wertwa47uy45k6er63e4u456er78 - Copia" type="Sprite" parent="background"]
  29. position = Vector2( 240, 0 )
  30. scale = Vector2( 0.8125, 1 )
  31. texture = ExtResource( 2 )
  32. centered = false
  33. [node name="ColorRect" type="ColorRect" parent="."]
  34. use_parent_material = true
  35. anchor_right = 1.0
  36. anchor_bottom = 1.0
  37. margin_right = -1040.0
  38. color = Color( 0.168627, 0.0901961, 0.196078, 1 )
  39. [node name="ProgressBar" type="ProgressBar" parent="."]
  40. anchor_left = 0.5
  41. anchor_top = 0.5
  42. anchor_right = 0.5
  43. anchor_bottom = 0.5
  44. margin_left = -616.0
  45. margin_top = 304.0
  46. margin_right = -424.0
  47. margin_bottom = 318.0
  48. custom_fonts/font = SubResource( 2 )
  49. custom_styles/fg = SubResource( 3 )
  50. custom_styles/bg = SubResource( 4 )
  51. value = 50.0
  52. [node name="Sprite" type="Sprite" parent="."]
  53. position = Vector2( 0, -18.3543 )
  54. [node name="Label" type="Label" parent="."]
  55. anchor_top = 0.5
  56. anchor_right = 1.0
  57. anchor_bottom = 0.5
  58. margin_top = 184.0
  59. margin_right = -1040.0
  60. margin_bottom = 237.0
  61. rect_pivot_offset = Vector2( 95.3067, 6.6933 )
  62. custom_fonts/font = SubResource( 2 )
  63. text = "Checking most recent version!"
  64. align = 1
  65. valign = 1
  66. autowrap = true
  67. __meta__ = {
  68. "_edit_use_anchors_": false
  69. }
  70. [node name="ColorRect" type="ColorRect" parent="Label"]
  71. show_behind_parent = true
  72. anchor_right = 1.0
  73. anchor_bottom = 1.0
  74. margin_left = 15.0
  75. margin_right = -15.0
  76. color = Color( 0, 0, 0, 0.278431 )
  77. __meta__ = {
  78. "_edit_use_anchors_": false
  79. }
  80. [node name="Button" type="Button" parent="."]
  81. anchor_left = 0.5
  82. anchor_top = 0.5
  83. anchor_right = 0.5
  84. anchor_bottom = 0.5
  85. margin_left = -616.0
  86. margin_top = 248.0
  87. margin_right = -424.0
  88. margin_bottom = 292.0
  89. custom_fonts/font = SubResource( 2 )
  90. custom_styles/normal = SubResource( 5 )
  91. disabled = true
  92. text = "launch"
  93. script = ExtResource( 6 )
  94. __meta__ = {
  95. "_edit_use_anchors_": false
  96. }
  97. [node name="Button2" type="Button" parent="."]
  98. anchor_left = 0.5
  99. anchor_top = 0.5
  100. anchor_right = 0.5
  101. anchor_bottom = 0.5
  102. margin_left = -625.0
  103. margin_top = 152.0
  104. margin_right = -416.0
  105. margin_bottom = 176.0
  106. custom_fonts/font = SubResource( 2 )
  107. custom_styles/normal = SubResource( 5 )
  108. text = "force update"
  109. [node name="Button3" type="Button" parent="."]
  110. anchor_left = 0.5
  111. anchor_top = 0.5
  112. anchor_right = 0.5
  113. anchor_bottom = 0.5
  114. margin_left = -624.0
  115. margin_top = 120.0
  116. margin_right = -416.0
  117. margin_bottom = 144.0
  118. custom_fonts/font = SubResource( 2 )
  119. custom_styles/normal = SubResource( 5 )
  120. text = "changelogs"
  121. __meta__ = {
  122. "_edit_use_anchors_": false
  123. }
  124. [node name="Button4" type="Button" parent="."]
  125. anchor_left = 0.5
  126. anchor_top = 0.5
  127. anchor_right = 0.5
  128. anchor_bottom = 0.5
  129. margin_left = -624.0
  130. margin_top = 88.0
  131. margin_right = -416.0
  132. margin_bottom = 112.0
  133. custom_fonts/font = SubResource( 2 )
  134. custom_styles/normal = SubResource( 5 )
  135. text = "CDN"
  136. __meta__ = {
  137. "_edit_use_anchors_": false
  138. }
  139. [node name="CheckBox" type="CheckBox" parent="."]
  140. anchor_left = 0.5
  141. anchor_top = 0.5
  142. anchor_right = 0.5
  143. anchor_bottom = 0.5
  144. margin_left = -625.0
  145. margin_top = 56.0
  146. margin_right = -559.0
  147. margin_bottom = 80.0
  148. custom_fonts/font = SubResource( 2 )
  149. pressed = true
  150. text = "music"
  151. script = ExtResource( 4 )
  152. __meta__ = {
  153. "_edit_use_anchors_": false
  154. }
  155. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="CheckBox"]
  156. stream = ExtResource( 5 )
  157. [node name="RichTextLabel" type="RichTextLabel" parent="."]
  158. anchor_right = 1.0
  159. anchor_bottom = 1.0
  160. margin_left = 264.0
  161. margin_top = 25.0
  162. margin_right = -25.0
  163. margin_bottom = -16.0
  164. rect_clip_content = false
  165. custom_fonts/normal_font = SubResource( 2 )
  166. scroll_following = true
  167. script = ExtResource( 7 )
  168. __meta__ = {
  169. "_edit_use_anchors_": false
  170. }
  171. [node name="ColorRect" type="ColorRect" parent="RichTextLabel"]
  172. show_behind_parent = true
  173. anchor_right = 1.0
  174. anchor_bottom = 1.0
  175. color = Color( 0, 0, 0, 0.713726 )
  176. [node name="Button4" type="Button" parent="RichTextLabel"]
  177. anchor_left = 0.5
  178. anchor_top = 0.5
  179. anchor_right = 0.5
  180. anchor_bottom = 0.5
  181. margin_left = -51.941
  182. margin_top = 232.413
  183. margin_right = 57.059
  184. margin_bottom = 252.414
  185. custom_fonts/font = SubResource( 2 )
  186. text = "close"
  187. script = ExtResource( 6 )
  188. __meta__ = {
  189. "_edit_use_anchors_": false
  190. }
  191. [node name="CDN" type="Control" parent="."]
  192. visible = false
  193. margin_right = 40.0
  194. margin_bottom = 40.0
  195. script = ExtResource( 7 )
  196. [node name="version" type="LineEdit" parent="CDN"]
  197. margin_left = 232.0
  198. margin_top = 432.0
  199. margin_right = 592.0
  200. margin_bottom = 456.0
  201. text = "https://galodev.net/download/version.txt"
  202. [node name="pck" type="LineEdit" parent="CDN"]
  203. margin_left = 232.0
  204. margin_top = 464.0
  205. margin_right = 592.0
  206. margin_bottom = 488.0
  207. text = "https://galodev.net/download/Ghost%20Hand.pck"
  208. [connection signal="request_completed" from="HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
  209. [connection signal="request_completed" from="HTTPRequest2" to="." method="_on_HTTPRequest2_request_completed"]
  210. [connection signal="button_down" from="Button" to="Button" method="_on_Button_button_down"]
  211. [connection signal="button_down" from="Button2" to="." method="force_update"]
  212. [connection signal="button_down" from="Button3" to="RichTextLabel" method="_on_Button3_button_down"]
  213. [connection signal="button_down" from="Button4" to="CDN" method="_on_Button4_button_down"]
  214. [connection signal="toggled" from="CheckBox" to="CheckBox" method="_on_CheckBox_toggled"]
  215. [connection signal="button_down" from="RichTextLabel/Button4" to="RichTextLabel" method="hide"]