main.tscn 13 KB

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