Downloads.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://addons/admob/src/core/components/Downloads.gd" type="Script" id=1]
  3. [ext_resource path="res://addons/admob/src/core/components/VerifyNetworkGithub.gd" type="Script" id=2]
  4. [ext_resource path="res://addons/admob/src/core/VersionSupportedHTTPRequest.tscn" type="PackedScene" id=3]
  5. [sub_resource type="StyleBoxFlat" id=1]
  6. bg_color = Color( 0, 1, 0.109804, 1 )
  7. [sub_resource type="StyleBoxFlat" id=2]
  8. [node name="Downloads" type="VBoxContainer"]
  9. anchor_right = 1.0
  10. margin_bottom = 31.0
  11. script = ExtResource( 1 )
  12. [node name="Advice" type="Label" parent="."]
  13. margin_right = 720.0
  14. margin_bottom = 65.0
  15. text = "This screen is just to download the AdMob plugin referring to the current version of your Godot, IT WILL NOT INSTALL.
  16. To install you need to follow the Android or iOS installation guide clicking on the icons on top screen."
  17. autowrap = true
  18. [node name="ProgressBar" type="ProgressBar" parent="."]
  19. margin_top = 69.0
  20. margin_right = 720.0
  21. margin_bottom = 83.0
  22. custom_colors/font_color = Color( 0, 0, 0, 1 )
  23. custom_styles/fg = SubResource( 1 )
  24. custom_styles/bg = SubResource( 2 )
  25. [node name="AdviceAcceptDialog" type="AcceptDialog" parent="."]
  26. margin_top = 104.0
  27. margin_right = 500.0
  28. margin_bottom = 162.0
  29. popup_exclusive = true
  30. window_title = "Alerta!"
  31. dialog_text = "Download of %s completed! \\n%s"
  32. __meta__ = {
  33. "_edit_use_anchors_": false
  34. }
  35. [node name="TabContainer" type="TabContainer" parent="."]
  36. margin_top = 87.0
  37. margin_right = 720.0
  38. margin_bottom = 215.0
  39. [node name="HTTPRequest" type="HTTPRequest" parent="TabContainer"]
  40. [node name="Android" type="VBoxContainer" parent="TabContainer"]
  41. anchor_right = 1.0
  42. anchor_bottom = 1.0
  43. margin_left = 4.0
  44. margin_top = 32.0
  45. margin_right = -4.0
  46. margin_bottom = -4.0
  47. [node name="ChangeDirectoryHBoxContainer" type="HBoxContainer" parent="TabContainer/Android"]
  48. margin_right = 712.0
  49. margin_bottom = 20.0
  50. [node name="DownloadDirectoryLabel" type="Label" parent="TabContainer/Android/ChangeDirectoryHBoxContainer"]
  51. margin_top = 3.0
  52. margin_right = 440.0
  53. margin_bottom = 17.0
  54. text = "Current Download Directory: res://addons/admob/downloads/android"
  55. [node name="AndroidChangeDirectoryButton" type="Button" parent="TabContainer/Android/ChangeDirectoryHBoxContainer"]
  56. margin_left = 444.0
  57. margin_right = 585.0
  58. margin_bottom = 20.0
  59. text = "CHANGE DIRECTORY"
  60. [node name="AndroidOpenDirectoryButton" type="Button" parent="TabContainer/Android/ChangeDirectoryHBoxContainer"]
  61. margin_left = 589.0
  62. margin_right = 712.0
  63. margin_bottom = 20.0
  64. text = "OPEN DIRECTORY"
  65. [node name="AndroidChangeDirectoryFileDialog" type="FileDialog" parent="TabContainer/Android/ChangeDirectoryHBoxContainer"]
  66. margin_left = 380.0
  67. margin_right = 780.0
  68. margin_bottom = 250.0
  69. rect_min_size = Vector2( 400, 250 )
  70. window_title = "Open a Directory"
  71. mode = 2
  72. current_dir = "res://addons/admob/downloads/android"
  73. current_path = "res://addons/admob/downloads/android/"
  74. __meta__ = {
  75. "_edit_use_anchors_": false
  76. }
  77. [node name="VersionHBoxContainer" type="HBoxContainer" parent="TabContainer/Android"]
  78. margin_top = 24.0
  79. margin_right = 712.0
  80. margin_bottom = 44.0
  81. [node name="Label" type="Label" parent="TabContainer/Android/VersionHBoxContainer"]
  82. margin_top = 3.0
  83. margin_right = 52.0
  84. margin_bottom = 17.0
  85. text = "Version:"
  86. [node name="AndroidVersion" type="OptionButton" parent="TabContainer/Android/VersionHBoxContainer"]
  87. margin_left = 56.0
  88. margin_right = 143.0
  89. margin_bottom = 20.0
  90. text = "CURRENT"
  91. items = [ "CURRENT", null, false, 0, null, "v3.2.2", null, false, 1, null, "v3.2.3", null, false, 2, null, "v3.3.1", null, false, 3, null, "v3.3.2", null, false, 4, null, "v3.3.3", null, false, 5, null, "v3.3.4", null, false, 6, null, "v3.3", null, false, 7, null, "v3.4.1", null, false, 8, null, "v3.4.2", null, false, 9, null, "v3.4.3", null, false, 10, null, "v3.4.4", null, false, 11, null, "v3.4", null, false, 12, null ]
  92. selected = 0
  93. __meta__ = {
  94. "_edit_use_anchors_": false
  95. }
  96. [node name="TargetHBoxContainer" type="HBoxContainer" parent="TabContainer/Android"]
  97. margin_top = 48.0
  98. margin_right = 712.0
  99. margin_bottom = 68.0
  100. [node name="Label" type="Label" parent="TabContainer/Android/TargetHBoxContainer"]
  101. margin_top = 3.0
  102. margin_right = 43.0
  103. margin_bottom = 17.0
  104. text = "Target:"
  105. [node name="MenuButton" type="OptionButton" parent="TabContainer/Android/TargetHBoxContainer"]
  106. margin_left = 47.0
  107. margin_right = 134.0
  108. margin_bottom = 20.0
  109. text = "CURRENT"
  110. items = [ "CURRENT", null, false, 0, null, "STANDARD", null, false, 1, null, "MONO", null, false, 2, null ]
  111. selected = 0
  112. [node name="DownloadAndroidTemplate" type="Button" parent="TabContainer/Android"]
  113. margin_top = 72.0
  114. margin_right = 712.0
  115. margin_bottom = 92.0
  116. text = "Download Android Template"
  117. [node name="iOS" type="VBoxContainer" parent="TabContainer"]
  118. visible = false
  119. anchor_right = 1.0
  120. anchor_bottom = 1.0
  121. margin_left = 4.0
  122. margin_top = 24.0
  123. margin_right = 599.0
  124. margin_bottom = 354.0
  125. [node name="ChangeDirectoryHBoxContainer" type="HBoxContainer" parent="TabContainer/iOS"]
  126. margin_right = 1690.0
  127. margin_bottom = 250.0
  128. [node name="DownloadDirectoryLabel" type="Label" parent="TabContainer/iOS/ChangeDirectoryHBoxContainer"]
  129. margin_top = 118.0
  130. margin_right = 411.0
  131. margin_bottom = 132.0
  132. text = "Current Download Directory: res://addons/admob/downloads/ios"
  133. [node name="iOSChangeDirectoryButton" type="Button" parent="TabContainer/iOS/ChangeDirectoryHBoxContainer"]
  134. margin_left = 415.0
  135. margin_right = 556.0
  136. margin_bottom = 250.0
  137. text = "CHANGE DIRECTORY"
  138. [node name="iOSOpenDirectoryButton" type="Button" parent="TabContainer/iOS/ChangeDirectoryHBoxContainer"]
  139. margin_left = 560.0
  140. margin_right = 683.0
  141. margin_bottom = 250.0
  142. text = "OPEN DIRECTORY"
  143. [node name="iOSChangeDirectoryFileDialog" type="FileDialog" parent="TabContainer/iOS/ChangeDirectoryHBoxContainer"]
  144. visible = true
  145. margin_left = 687.0
  146. margin_right = 1087.0
  147. margin_bottom = 250.0
  148. rect_min_size = Vector2( 400, 250 )
  149. window_title = "Open a Directory"
  150. mode = 2
  151. current_dir = "res://addons/admob/downloads/ios"
  152. current_path = "res://addons/admob/downloads/ios/"
  153. __meta__ = {
  154. "_edit_use_anchors_": false
  155. }
  156. [node name="VersionHBoxContainer" type="HBoxContainer" parent="TabContainer/iOS"]
  157. margin_top = 254.0
  158. margin_right = 1690.0
  159. margin_bottom = 274.0
  160. [node name="Label" type="Label" parent="TabContainer/iOS/VersionHBoxContainer"]
  161. margin_top = 3.0
  162. margin_right = 52.0
  163. margin_bottom = 17.0
  164. text = "Version:"
  165. [node name="iOSVersion" type="OptionButton" parent="TabContainer/iOS/VersionHBoxContainer"]
  166. margin_left = 56.0
  167. margin_right = 143.0
  168. margin_bottom = 20.0
  169. text = "CURRENT"
  170. items = [ "CURRENT", null, false, 0, null, "v3.3.1", null, false, 1, null, "v3.3.2", null, false, 2, null, "v3.3.3", null, false, 3, null, "v3.3.4", null, false, 4, null, "v3.3", null, false, 5, null, "v3.4.1", null, false, 6, null, "v3.4.2", null, false, 7, null, "v3.4.3", null, false, 8, null, "v3.4.4", null, false, 9, null, "v3.4", null, false, 10, null ]
  171. selected = 0
  172. __meta__ = {
  173. "_edit_use_anchors_": false
  174. }
  175. [node name="DownloadiOSTemplate" type="Button" parent="TabContainer/iOS"]
  176. margin_top = 278.0
  177. margin_right = 1690.0
  178. margin_bottom = 298.0
  179. text = "Download iOS Template"
  180. [node name="DownloadGoogleMobileAdsSdkiOS" type="Button" parent="TabContainer/iOS"]
  181. margin_top = 302.0
  182. margin_right = 1690.0
  183. margin_bottom = 322.0
  184. text = "Download GoogleMobileAdsSdkiOS"
  185. [node name="DontHaveConnectionPanelContainer" type="PanelContainer" parent="."]
  186. visible = false
  187. margin_top = 219.0
  188. margin_right = 720.0
  189. margin_bottom = 263.0
  190. [node name="Label" type="RichTextLabel" parent="DontHaveConnectionPanelContainer"]
  191. margin_left = 7.0
  192. margin_top = 7.0
  193. margin_right = 713.0
  194. margin_bottom = 37.0
  195. bbcode_enabled = true
  196. bbcode_text = "[b]You don't have connection to the Server: %s, please verify your connection in order to Download[/b]"
  197. text = "You don't have connection to the Server: https://github.com/, please verify your connection in order to Download"
  198. fit_content_height = true
  199. scroll_active = false
  200. [node name="VerifyNetworkGithub" type="HTTPRequest" parent="."]
  201. script = ExtResource( 2 )
  202. [node name="VerifyAgainTimer" type="Timer" parent="VerifyNetworkGithub"]
  203. wait_time = 60.0
  204. autostart = true
  205. [node name="VersionSupportedHTTPRequest" parent="." instance=ExtResource( 3 )]
  206. [node name="VersionsAndroidSupportedHTTPRequest" type="HTTPRequest" parent="."]
  207. [node name="VersionsiOSSupportedHTTPRequest" type="HTTPRequest" parent="."]
  208. [connection signal="request_completed" from="TabContainer/HTTPRequest" to="." method="_on_HTTPRequest_request_completed"]
  209. [connection signal="pressed" from="TabContainer/Android/ChangeDirectoryHBoxContainer/AndroidChangeDirectoryButton" to="." method="_on_AndroidChangeDirectoryButton_pressed"]
  210. [connection signal="pressed" from="TabContainer/Android/ChangeDirectoryHBoxContainer/AndroidOpenDirectoryButton" to="." method="_on_AndroidOpenDirectoryButton_pressed"]
  211. [connection signal="dir_selected" from="TabContainer/Android/ChangeDirectoryHBoxContainer/AndroidChangeDirectoryFileDialog" to="." method="_on_AndroidChangeDirectoryFileDialog_dir_selected"]
  212. [connection signal="pressed" from="TabContainer/Android/DownloadAndroidTemplate" to="." method="_on_DownloadAndroidTemplate_pressed"]
  213. [connection signal="pressed" from="TabContainer/iOS/ChangeDirectoryHBoxContainer/iOSChangeDirectoryButton" to="." method="_on_iOSChangeDirectoryButton_pressed"]
  214. [connection signal="pressed" from="TabContainer/iOS/ChangeDirectoryHBoxContainer/iOSOpenDirectoryButton" to="." method="_on_iOSOpenDirectoryButton_pressed"]
  215. [connection signal="dir_selected" from="TabContainer/iOS/ChangeDirectoryHBoxContainer/iOSChangeDirectoryFileDialog" to="." method="_on_iOSChangeDirectoryFileDialog_dir_selected"]
  216. [connection signal="pressed" from="TabContainer/iOS/DownloadiOSTemplate" to="." method="_on_DownloadiOSTemplate_pressed"]
  217. [connection signal="pressed" from="TabContainer/iOS/DownloadGoogleMobileAdsSdkiOS" to="." method="_on_DownloadGoogleMobileAdsSdkiOS_pressed"]
  218. [connection signal="network_status_changed" from="VerifyNetworkGithub" to="." method="_on_VerifyNetworkGithub_network_status_changed"]
  219. [connection signal="request_completed" from="VerifyNetworkGithub" to="VerifyNetworkGithub" method="_on_VerifyNetworkGithub_request_completed"]
  220. [connection signal="timeout" from="VerifyNetworkGithub/VerifyAgainTimer" to="VerifyNetworkGithub" method="_on_VerifyAgainTimer_timeout"]
  221. [connection signal="supported_version_changed" from="VersionSupportedHTTPRequest" to="." method="_on_VersionSupportedHTTPRequest_supported_version_changed"]
  222. [connection signal="request_completed" from="VersionsAndroidSupportedHTTPRequest" to="." method="_on_VersionsAndroidSupportedHTTPRequest_request_completed"]
  223. [connection signal="request_completed" from="VersionsiOSSupportedHTTPRequest" to="." method="_on_VersionsiOSSupportedHTTPRequest_request_completed"]