main.tscn 10 KB

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