main.tscn 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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 = 3
  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 = 3
  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 = 1
  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. anchor_right = 1.0
  136. anchor_bottom = 1.0
  137. margin_left = 180.0
  138. margin_right = -180.0
  139. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/loginscreen"]
  140. anchor_right = 1.0
  141. anchor_bottom = 1.0
  142. alignment = 1
  143. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  144. margin_top = 133.0
  145. margin_right = 287.0
  146. margin_bottom = 157.0
  147. alignment = 1
  148. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer"]
  149. margin_right = 287.0
  150. margin_bottom = 24.0
  151. size_flags_horizontal = 3
  152. size_flags_vertical = 3
  153. align = 1
  154. expand_to_text_length = true
  155. placeholder_text = "username"
  156. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  157. margin_top = 161.0
  158. margin_right = 287.0
  159. margin_bottom = 185.0
  160. alignment = 1
  161. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer2"]
  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 = "password"
  169. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  170. margin_top = 189.0
  171. margin_right = 287.0
  172. margin_bottom = 209.0
  173. alignment = 1
  174. [node name="login" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  175. margin_right = 43.0
  176. margin_bottom = 20.0
  177. text = "login"
  178. [node name="register" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  179. margin_left = 47.0
  180. margin_right = 111.0
  181. margin_bottom = 20.0
  182. text = "Register"
  183. [node name="recover" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  184. margin_left = 115.0
  185. margin_right = 242.0
  186. margin_bottom = 20.0
  187. text = "Recover Password"
  188. [node name="back" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  189. margin_left = 246.0
  190. margin_right = 287.0
  191. margin_bottom = 20.0
  192. text = "back"
  193. [node name="Label2" type="Label" parent="LoginUI/loginscreen/VBoxContainer"]
  194. margin_top = 213.0
  195. margin_right = 287.0
  196. margin_bottom = 227.0
  197. text = "status"
  198. [node name="register" type="Control" parent="LoginUI"]
  199. visible = false
  200. anchor_right = 1.0
  201. anchor_bottom = 1.0
  202. margin_left = 180.0
  203. margin_right = -180.0
  204. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/register"]
  205. anchor_right = 1.0
  206. anchor_bottom = 1.0
  207. alignment = 1
  208. [node name="HBoxContainer1" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  209. margin_top = 105.0
  210. margin_right = 280.0
  211. margin_bottom = 129.0
  212. alignment = 1
  213. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer1"]
  214. margin_right = 280.0
  215. margin_bottom = 24.0
  216. size_flags_horizontal = 3
  217. size_flags_vertical = 3
  218. align = 1
  219. expand_to_text_length = true
  220. placeholder_text = "username"
  221. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  222. margin_top = 133.0
  223. margin_right = 280.0
  224. margin_bottom = 157.0
  225. alignment = 1
  226. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer2"]
  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 = "password"
  234. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  235. margin_top = 161.0
  236. margin_right = 280.0
  237. margin_bottom = 185.0
  238. alignment = 1
  239. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer3"]
  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 = "comfirm password"
  247. [node name="HBoxContainer4" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  248. margin_top = 189.0
  249. margin_right = 280.0
  250. margin_bottom = 213.0
  251. alignment = 1
  252. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer4"]
  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 = "email"
  260. [node name="HBoxContainer6" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  261. margin_top = 217.0
  262. margin_right = 280.0
  263. margin_bottom = 237.0
  264. alignment = 1
  265. [node name="login2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  266. margin_left = 83.0
  267. margin_right = 129.0
  268. margin_bottom = 20.0
  269. text = "Login"
  270. [node name="Register2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  271. margin_left = 133.0
  272. margin_right = 197.0
  273. margin_bottom = 20.0
  274. text = "Register"
  275. [node name="Label" type="Label" parent="LoginUI/register/VBoxContainer"]
  276. margin_top = 241.0
  277. margin_right = 280.0
  278. margin_bottom = 255.0
  279. text = "status"
  280. [node name="envarg" type="Node" parent="."]
  281. script = ExtResource( 2 )
  282. [node name="x509gen" type="Node" parent="."]
  283. script = ExtResource( 4 )
  284. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button" to="LoginUI" method="_on_Button_button_down"]
  285. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button2" to="LoginUI" method="_on_Button2_button_down"]
  286. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/x509" to="x509gen" method="_on_x509_button_down"]
  287. [connection signal="toggled" from="LoginUI/directconnect/VBoxContainer/CheckButton" to="LoginUI" method="_on_CheckButton_toggled"]
  288. [connection signal="button_down" from="LoginUI/loginscreen/VBoxContainer/HBoxContainer3/login" to="LoginUI" method="_on_login_button_down"]
  289. [connection signal="button_down" from="LoginUI/loginscreen/VBoxContainer/HBoxContainer3/register" to="LoginUI" method="_on_register_button_down"]
  290. [connection signal="button_down" from="LoginUI/register/VBoxContainer/HBoxContainer6/login2" to="LoginUI" method="_on_login2_button_down"]
  291. [connection signal="button_down" from="LoginUI/register/VBoxContainer/HBoxContainer6/Register2" to="LoginUI" method="_on_Register2_button_down"]