main.tscn 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. [gd_scene load_steps=18 format=2]
  2. [ext_resource path="res://Login.gd" type="Script" id=1]
  3. [ext_resource path="res://envarg.gd" type="Script" id=2]
  4. [ext_resource path="res://Database.gd" type="Script" id=3]
  5. [ext_resource path="res://x509gen.gd" type="Script" id=4]
  6. [ext_resource path="res://BrowserListClient.gd" type="Script" id=5]
  7. [ext_resource path="res://loginnetcode.gd" type="Script" id=6]
  8. [ext_resource path="res://BrowseColumn.tscn" type="PackedScene" id=7]
  9. [ext_resource path="res://tiles/testtile2.tres" type="TileSet" id=8]
  10. [ext_resource path="res://icon.png" type="Texture" id=9]
  11. [ext_resource path="res://art/Untitledcxz.png" type="Texture" id=10]
  12. [ext_resource path="res://Textures.gd" type="Script" id=11]
  13. [ext_resource path="res://Levelselect.gd" type="Script" id=12]
  14. [sub_resource type="AtlasTexture" id=1]
  15. atlas = ExtResource( 10 )
  16. region = Rect2( 0, 0, 112, 113 )
  17. [sub_resource type="AtlasTexture" id=2]
  18. atlas = ExtResource( 10 )
  19. region = Rect2( 112, 0, 112, 113 )
  20. [sub_resource type="AtlasTexture" id=3]
  21. atlas = ExtResource( 10 )
  22. region = Rect2( 224, 0, 112, 113 )
  23. [sub_resource type="AtlasTexture" id=4]
  24. atlas = ExtResource( 10 )
  25. region = Rect2( 336, 0, 112, 113 )
  26. [sub_resource type="SpriteFrames" id=5]
  27. animations = [ {
  28. "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
  29. "loop": true,
  30. "name": "default",
  31. "speed": 5.0
  32. } ]
  33. [node name="Node" type="Node"]
  34. [node name="Textures" type="Node" parent="."]
  35. script = ExtResource( 11 )
  36. [node name="Goblin1" type="Viewport" parent="Textures"]
  37. size = Vector2( 64, 64 )
  38. own_world = true
  39. transparent_bg = true
  40. render_target_v_flip = true
  41. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin1"]
  42. modulate = Color( 0, 0.811765, 1, 1 )
  43. frames = SubResource( 5 )
  44. frame = 2
  45. playing = true
  46. offset = Vector2( 32, 32 )
  47. [node name="Goblin2" type="Viewport" parent="Textures"]
  48. size = Vector2( 64, 64 )
  49. own_world = true
  50. transparent_bg = true
  51. render_target_v_flip = true
  52. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin2"]
  53. frames = SubResource( 5 )
  54. frame = 1
  55. speed_scale = 0.8
  56. playing = true
  57. offset = Vector2( 32, 32 )
  58. [node name="Goblin3" type="Viewport" parent="Textures"]
  59. size = Vector2( 64, 64 )
  60. own_world = true
  61. transparent_bg = true
  62. render_target_v_flip = true
  63. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin3"]
  64. modulate = Color( 1, 0, 0, 1 )
  65. frames = SubResource( 5 )
  66. frame = 2
  67. speed_scale = 1.2
  68. playing = true
  69. offset = Vector2( 32, 32 )
  70. [node name="Goblin4" type="Viewport" parent="Textures"]
  71. size = Vector2( 64, 64 )
  72. own_world = true
  73. transparent_bg = true
  74. render_target_v_flip = true
  75. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
  76. modulate = Color( 1, 0, 0.984314, 1 )
  77. frames = SubResource( 5 )
  78. speed_scale = 0.9
  79. playing = true
  80. offset = Vector2( 32, 32 )
  81. [node name="Bullet" type="Viewport" parent="Textures"]
  82. size = Vector2( 8, 8 )
  83. own_world = true
  84. transparent_bg = true
  85. render_target_v_flip = true
  86. [node name="Sprite" type="Sprite" parent="Textures/Bullet"]
  87. texture = ExtResource( 9 )
  88. [node name="PostgreSQL" type="Node" parent="."]
  89. script = ExtResource( 3 )
  90. [node name="Loginetcode" type="Node" parent="."]
  91. script = ExtResource( 6 )
  92. [node name="LoginUI" type="Node" parent="."]
  93. script = ExtResource( 1 )
  94. [node name="directconnect" type="Control" parent="LoginUI"]
  95. visible = false
  96. anchor_right = 1.0
  97. anchor_bottom = 1.0
  98. margin_left = 180.0
  99. margin_right = -180.0
  100. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/directconnect"]
  101. anchor_right = 1.0
  102. anchor_bottom = 1.0
  103. alignment = 1
  104. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/directconnect/VBoxContainer"]
  105. margin_top = 110.0
  106. margin_right = 280.0
  107. margin_bottom = 134.0
  108. alignment = 1
  109. [node name="LineEdit2" type="LineEdit" parent="LoginUI/directconnect/VBoxContainer/HBoxContainer"]
  110. margin_right = 218.0
  111. margin_bottom = 24.0
  112. size_flags_horizontal = 3
  113. size_flags_vertical = 3
  114. text = "127.0.0.1"
  115. align = 1
  116. expand_to_text_length = true
  117. placeholder_text = "IP Adress"
  118. [node name="LineEdit" type="LineEdit" parent="LoginUI/directconnect/VBoxContainer/HBoxContainer"]
  119. margin_left = 222.0
  120. margin_right = 280.0
  121. margin_bottom = 24.0
  122. text = "8081"
  123. align = 1
  124. placeholder_text = "Port"
  125. [node name="Button" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  126. margin_top = 138.0
  127. margin_right = 280.0
  128. margin_bottom = 158.0
  129. text = "connnect"
  130. [node name="Button2" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  131. margin_top = 162.0
  132. margin_right = 280.0
  133. margin_bottom = 182.0
  134. text = "create server"
  135. [node name="x509" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  136. margin_top = 186.0
  137. margin_right = 280.0
  138. margin_bottom = 206.0
  139. text = "x509 generate"
  140. [node name="CheckButton" type="CheckButton" parent="LoginUI/directconnect/VBoxContainer"]
  141. margin_top = 210.0
  142. margin_right = 280.0
  143. margin_bottom = 250.0
  144. pressed = true
  145. text = "login"
  146. [node name="loginscreen" type="Control" parent="LoginUI"]
  147. visible = false
  148. anchor_right = 1.0
  149. anchor_bottom = 1.0
  150. margin_left = 180.0
  151. margin_right = -180.0
  152. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/loginscreen"]
  153. anchor_right = 1.0
  154. anchor_bottom = 1.0
  155. alignment = 1
  156. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  157. margin_top = 133.0
  158. margin_right = 287.0
  159. margin_bottom = 157.0
  160. alignment = 1
  161. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer"]
  162. margin_right = 287.0
  163. margin_bottom = 24.0
  164. size_flags_horizontal = 3
  165. size_flags_vertical = 3
  166. align = 1
  167. expand_to_text_length = true
  168. placeholder_text = "username"
  169. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  170. margin_top = 161.0
  171. margin_right = 287.0
  172. margin_bottom = 185.0
  173. alignment = 1
  174. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer2"]
  175. margin_right = 287.0
  176. margin_bottom = 24.0
  177. size_flags_horizontal = 3
  178. size_flags_vertical = 3
  179. align = 1
  180. expand_to_text_length = true
  181. placeholder_text = "password"
  182. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  183. margin_top = 189.0
  184. margin_right = 287.0
  185. margin_bottom = 209.0
  186. alignment = 1
  187. [node name="login" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  188. margin_right = 43.0
  189. margin_bottom = 20.0
  190. text = "login"
  191. [node name="register" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  192. margin_left = 47.0
  193. margin_right = 111.0
  194. margin_bottom = 20.0
  195. text = "Register"
  196. [node name="recover" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  197. margin_left = 115.0
  198. margin_right = 242.0
  199. margin_bottom = 20.0
  200. text = "Recover Password"
  201. [node name="back" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  202. margin_left = 246.0
  203. margin_right = 287.0
  204. margin_bottom = 20.0
  205. text = "back"
  206. [node name="Label2" type="Label" parent="LoginUI/loginscreen/VBoxContainer"]
  207. margin_top = 213.0
  208. margin_right = 287.0
  209. margin_bottom = 227.0
  210. text = "status"
  211. [node name="register" type="Control" parent="LoginUI"]
  212. visible = false
  213. anchor_right = 1.0
  214. anchor_bottom = 1.0
  215. margin_left = 180.0
  216. margin_right = -180.0
  217. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/register"]
  218. anchor_right = 1.0
  219. anchor_bottom = 1.0
  220. alignment = 1
  221. [node name="HBoxContainer1" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  222. margin_top = 105.0
  223. margin_right = 280.0
  224. margin_bottom = 129.0
  225. alignment = 1
  226. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer1"]
  227. margin_right = 280.0
  228. margin_bottom = 24.0
  229. size_flags_horizontal = 3
  230. size_flags_vertical = 3
  231. align = 1
  232. expand_to_text_length = true
  233. placeholder_text = "username"
  234. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  235. margin_top = 133.0
  236. margin_right = 280.0
  237. margin_bottom = 157.0
  238. alignment = 1
  239. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer2"]
  240. margin_right = 280.0
  241. margin_bottom = 24.0
  242. size_flags_horizontal = 3
  243. size_flags_vertical = 3
  244. align = 1
  245. expand_to_text_length = true
  246. placeholder_text = "password"
  247. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  248. margin_top = 161.0
  249. margin_right = 280.0
  250. margin_bottom = 185.0
  251. alignment = 1
  252. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer3"]
  253. margin_right = 280.0
  254. margin_bottom = 24.0
  255. size_flags_horizontal = 3
  256. size_flags_vertical = 3
  257. align = 1
  258. expand_to_text_length = true
  259. placeholder_text = "comfirm password"
  260. [node name="HBoxContainer4" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  261. margin_top = 189.0
  262. margin_right = 280.0
  263. margin_bottom = 213.0
  264. alignment = 1
  265. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer4"]
  266. margin_right = 280.0
  267. margin_bottom = 24.0
  268. size_flags_horizontal = 3
  269. size_flags_vertical = 3
  270. align = 1
  271. expand_to_text_length = true
  272. placeholder_text = "email"
  273. [node name="HBoxContainer6" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  274. margin_top = 217.0
  275. margin_right = 280.0
  276. margin_bottom = 237.0
  277. alignment = 1
  278. [node name="login2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  279. margin_left = 83.0
  280. margin_right = 129.0
  281. margin_bottom = 20.0
  282. text = "Login"
  283. [node name="Register2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  284. margin_left = 133.0
  285. margin_right = 197.0
  286. margin_bottom = 20.0
  287. text = "Register"
  288. [node name="Label" type="Label" parent="LoginUI/register/VBoxContainer"]
  289. margin_top = 241.0
  290. margin_right = 280.0
  291. margin_bottom = 255.0
  292. text = "status"
  293. [node name="envarg" type="Node" parent="."]
  294. script = ExtResource( 2 )
  295. [node name="x509gen" type="Node" parent="."]
  296. script = ExtResource( 4 )
  297. [node name="BrowserListClient" type="Node" parent="."]
  298. script = ExtResource( 5 )
  299. [node name="PanelContainer" type="PanelContainer" parent="BrowserListClient"]
  300. visible = false
  301. anchor_right = 1.0
  302. anchor_bottom = 1.0
  303. margin_left = 64.0
  304. margin_top = 36.0
  305. margin_right = -64.0
  306. margin_bottom = -36.0
  307. [node name="Table" type="VBoxContainer" parent="BrowserListClient/PanelContainer"]
  308. margin_left = 7.0
  309. margin_top = 7.0
  310. margin_right = 505.0
  311. margin_bottom = 281.0
  312. [node name="BrowseColumn" parent="BrowserListClient/PanelContainer/Table" instance=ExtResource( 7 )]
  313. anchor_right = 0.0
  314. margin_right = 498.0
  315. margin_bottom = 34.0
  316. clickable = false
  317. [node name="Timer" type="Timer" parent="BrowserListClient"]
  318. autostart = true
  319. [node name="Levelselect" type="Node" parent="."]
  320. script = ExtResource( 12 )
  321. [node name="test" type="Node2D" parent="Levelselect"]
  322. [node name="TileMap" type="TileMap" parent="Levelselect/test"]
  323. tile_set = ExtResource( 8 )
  324. cell_size = Vector2( 32, 32 )
  325. collision_layer = 2
  326. collision_mask = 2
  327. format = 1
  328. tile_data = PoolIntArray( 262156, 0, 0, 262157, 0, 393220, 262158, 0, 2, 327692, 0, 65536, 327693, 0, 262150, 327694, 0, 327683, 393228, 0, 131072, 393229, 0, 262148, 393230, 0, 131074, 720885, 0, 196608, 720886, 0, 196609, 720887, 0, 196609, 720888, 0, 196609, 720889, 0, 196609, 720890, 0, 196609, 720891, 0, 196609, 720892, 0, 196609, 720893, 0, 196609, 720894, 0, 196609, 720895, 0, 196609, 655360, 0, 196609, 655361, 0, 196609, 655362, 0, 196609, 655363, 0, 196609, 655364, 0, 196609, 655365, 0, 196609, 655366, 0, 196609, 655367, 0, 196609, 655368, 0, 196609, 655369, 0, 196609, 655370, 0, 196609, 655371, 0, 196609, 655372, 0, 196609, 655373, 0, 196609, 655374, 0, 196609, 655375, 0, 196609, 655376, 0, 196609, 655377, 0, 196609, 655378, 0, 196609, 655379, 0, 196609, 655380, 0, 196609, 655381, 0, 196609, 655382, 0, 196609, 655383, 0, 196609, 655384, 0, 196609, 655385, 0, 196609, 655386, 0, 196609, 655387, 0, 196609, 655388, 0, 196609, 655389, 0, 196609, 655390, 0, 196609, 655391, 0, 196609, 655392, 0, 196610 )
  329. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button" to="LoginUI" method="_on_Button_button_down"]
  330. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button2" to="LoginUI" method="_on_Button2_button_down"]
  331. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/x509" to="x509gen" method="_on_x509_button_down"]
  332. [connection signal="toggled" from="LoginUI/directconnect/VBoxContainer/CheckButton" to="LoginUI" method="_on_CheckButton_toggled"]
  333. [connection signal="button_down" from="LoginUI/loginscreen/VBoxContainer/HBoxContainer3/login" to="LoginUI" method="_on_login_button_down"]
  334. [connection signal="button_down" from="LoginUI/loginscreen/VBoxContainer/HBoxContainer3/register" to="LoginUI" method="_on_register_button_down"]
  335. [connection signal="button_down" from="LoginUI/register/VBoxContainer/HBoxContainer6/login2" to="LoginUI" method="_on_login2_button_down"]
  336. [connection signal="button_down" from="LoginUI/register/VBoxContainer/HBoxContainer6/Register2" to="LoginUI" method="_on_Register2_button_down"]
  337. [connection signal="click" from="BrowserListClient" to="LoginUI" method="choose_a_server"]
  338. [connection signal="click" from="BrowserListClient/PanelContainer/Table/BrowseColumn" to="BrowserListClient" method="_on_BrowseColumn_click"]
  339. [connection signal="timeout" from="BrowserListClient/Timer" to="BrowserListClient" method="_on_Timer_timeout"]