main.tscn 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. [gd_scene load_steps=14 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. [ext_resource path="res://Camera2D.gd" type="Script" id=13]
  10. [sub_resource type="AtlasTexture" id=1]
  11. atlas = ExtResource( 10 )
  12. region = Rect2( 0, 0, 112, 113 )
  13. [sub_resource type="AtlasTexture" id=2]
  14. atlas = ExtResource( 10 )
  15. region = Rect2( 112, 0, 112, 113 )
  16. [sub_resource type="AtlasTexture" id=3]
  17. atlas = ExtResource( 10 )
  18. region = Rect2( 224, 0, 112, 113 )
  19. [sub_resource type="AtlasTexture" id=4]
  20. atlas = ExtResource( 10 )
  21. region = Rect2( 336, 0, 112, 113 )
  22. [sub_resource type="SpriteFrames" id=5]
  23. animations = [ {
  24. "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
  25. "loop": true,
  26. "name": "default",
  27. "speed": 5.0
  28. } ]
  29. [node name="Node" type="Node"]
  30. [node name="Textures" type="Node" parent="."]
  31. script = ExtResource( 11 )
  32. [node name="Goblin1" type="Viewport" parent="Textures"]
  33. size = Vector2( 64, 64 )
  34. own_world = true
  35. transparent_bg = true
  36. render_target_v_flip = true
  37. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin1"]
  38. modulate = Color( 0, 0.811765, 1, 1 )
  39. frames = SubResource( 5 )
  40. frame = 2
  41. playing = true
  42. offset = Vector2( 32, 32 )
  43. [node name="Goblin2" type="Viewport" parent="Textures"]
  44. size = Vector2( 64, 64 )
  45. own_world = true
  46. transparent_bg = true
  47. render_target_v_flip = true
  48. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin2"]
  49. frames = SubResource( 5 )
  50. speed_scale = 0.8
  51. playing = true
  52. offset = Vector2( 32, 32 )
  53. [node name="Goblin3" type="Viewport" parent="Textures"]
  54. size = Vector2( 64, 64 )
  55. own_world = true
  56. transparent_bg = true
  57. render_target_v_flip = true
  58. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin3"]
  59. modulate = Color( 1, 0, 0, 1 )
  60. frames = SubResource( 5 )
  61. frame = 1
  62. speed_scale = 1.2
  63. playing = true
  64. offset = Vector2( 32, 32 )
  65. [node name="Goblin4" type="Viewport" parent="Textures"]
  66. size = Vector2( 64, 64 )
  67. own_world = true
  68. transparent_bg = true
  69. render_target_v_flip = true
  70. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
  71. modulate = Color( 1, 0, 0.984314, 1 )
  72. frames = SubResource( 5 )
  73. frame = 3
  74. speed_scale = 0.9
  75. playing = true
  76. offset = Vector2( 32, 32 )
  77. [node name="PostgreSQL" type="Node" parent="."]
  78. script = ExtResource( 3 )
  79. [node name="Loginetcode" type="Node" parent="."]
  80. script = ExtResource( 6 )
  81. [node name="LoginUI" type="Node" parent="."]
  82. script = ExtResource( 1 )
  83. [node name="directconnect" type="Control" parent="LoginUI"]
  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 = 142.0
  146. margin_right = 287.0
  147. margin_bottom = 166.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 = 170.0
  159. margin_right = 287.0
  160. margin_bottom = 194.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 = 198.0
  172. margin_right = 287.0
  173. margin_bottom = 218.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="register" type="Control" parent="LoginUI"]
  195. visible = false
  196. anchor_right = 1.0
  197. anchor_bottom = 1.0
  198. margin_left = 180.0
  199. margin_right = -180.0
  200. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/register"]
  201. anchor_right = 1.0
  202. anchor_bottom = 1.0
  203. alignment = 1
  204. [node name="HBoxContainer1" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  205. margin_top = 105.0
  206. margin_right = 280.0
  207. margin_bottom = 129.0
  208. alignment = 1
  209. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer1"]
  210. margin_right = 280.0
  211. margin_bottom = 24.0
  212. size_flags_horizontal = 3
  213. size_flags_vertical = 3
  214. align = 1
  215. expand_to_text_length = true
  216. placeholder_text = "username"
  217. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  218. margin_top = 133.0
  219. margin_right = 280.0
  220. margin_bottom = 157.0
  221. alignment = 1
  222. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer2"]
  223. margin_right = 280.0
  224. margin_bottom = 24.0
  225. size_flags_horizontal = 3
  226. size_flags_vertical = 3
  227. align = 1
  228. expand_to_text_length = true
  229. placeholder_text = "password"
  230. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  231. margin_top = 161.0
  232. margin_right = 280.0
  233. margin_bottom = 185.0
  234. alignment = 1
  235. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer3"]
  236. margin_right = 280.0
  237. margin_bottom = 24.0
  238. size_flags_horizontal = 3
  239. size_flags_vertical = 3
  240. align = 1
  241. expand_to_text_length = true
  242. placeholder_text = "comfirm password"
  243. [node name="HBoxContainer4" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  244. margin_top = 189.0
  245. margin_right = 280.0
  246. margin_bottom = 213.0
  247. alignment = 1
  248. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer4"]
  249. margin_right = 280.0
  250. margin_bottom = 24.0
  251. size_flags_horizontal = 3
  252. size_flags_vertical = 3
  253. align = 1
  254. expand_to_text_length = true
  255. placeholder_text = "email"
  256. [node name="HBoxContainer6" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  257. margin_top = 217.0
  258. margin_right = 280.0
  259. margin_bottom = 237.0
  260. alignment = 1
  261. [node name="login2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  262. margin_left = 83.0
  263. margin_right = 129.0
  264. margin_bottom = 20.0
  265. text = "Login"
  266. [node name="Register2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer6"]
  267. margin_left = 133.0
  268. margin_right = 197.0
  269. margin_bottom = 20.0
  270. text = "Register"
  271. [node name="Label" type="Label" parent="LoginUI/register/VBoxContainer"]
  272. margin_top = 241.0
  273. margin_right = 280.0
  274. margin_bottom = 255.0
  275. text = "status"
  276. [node name="Authority" type="Node" parent="."]
  277. [node name="Camera2D" type="Camera2D" parent="."]
  278. position = Vector2( 320, 180 )
  279. current = true
  280. script = ExtResource( 13 )
  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/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"]