main.tscn 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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://art/Untitledcxz.png" type="Texture" id=10]
  7. [ext_resource path="res://Textures.gd" type="Script" id=11]
  8. [ext_resource path="res://Camera2D.gd" type="Script" id=13]
  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 = 1
  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. frame = 1
  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="Database" type="Node" parent="."]
  78. script = ExtResource( 3 )
  79. [node name="LoginUI" type="Node" parent="."]
  80. script = ExtResource( 1 )
  81. [node name="directconnect" type="Control" parent="LoginUI"]
  82. anchor_right = 1.0
  83. anchor_bottom = 1.0
  84. margin_left = 180.0
  85. margin_right = -180.0
  86. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/directconnect"]
  87. anchor_right = 1.0
  88. anchor_bottom = 1.0
  89. alignment = 1
  90. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/directconnect/VBoxContainer"]
  91. margin_top = 110.0
  92. margin_right = 280.0
  93. margin_bottom = 134.0
  94. alignment = 1
  95. [node name="LineEdit2" type="LineEdit" parent="LoginUI/directconnect/VBoxContainer/HBoxContainer"]
  96. margin_right = 218.0
  97. margin_bottom = 24.0
  98. size_flags_horizontal = 3
  99. size_flags_vertical = 3
  100. text = "127.0.0.1"
  101. align = 1
  102. expand_to_text_length = true
  103. placeholder_text = "IP Adress"
  104. [node name="LineEdit" type="LineEdit" parent="LoginUI/directconnect/VBoxContainer/HBoxContainer"]
  105. margin_left = 222.0
  106. margin_right = 280.0
  107. margin_bottom = 24.0
  108. text = "8081"
  109. align = 1
  110. placeholder_text = "Port"
  111. [node name="Button" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  112. margin_top = 138.0
  113. margin_right = 280.0
  114. margin_bottom = 158.0
  115. text = "connnect"
  116. [node name="Button2" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  117. margin_top = 162.0
  118. margin_right = 280.0
  119. margin_bottom = 182.0
  120. text = "create server"
  121. [node name="x509" type="Button" parent="LoginUI/directconnect/VBoxContainer"]
  122. margin_top = 186.0
  123. margin_right = 280.0
  124. margin_bottom = 206.0
  125. text = "x509"
  126. [node name="CheckButton" type="CheckButton" parent="LoginUI/directconnect/VBoxContainer"]
  127. margin_top = 210.0
  128. margin_right = 280.0
  129. margin_bottom = 250.0
  130. pressed = true
  131. text = "login"
  132. [node name="loginscreen" type="Control" parent="LoginUI"]
  133. visible = false
  134. anchor_right = 1.0
  135. anchor_bottom = 1.0
  136. margin_left = 180.0
  137. margin_right = -180.0
  138. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/loginscreen"]
  139. anchor_right = 1.0
  140. anchor_bottom = 1.0
  141. alignment = 1
  142. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  143. margin_top = 142.0
  144. margin_right = 287.0
  145. margin_bottom = 166.0
  146. alignment = 1
  147. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer"]
  148. margin_right = 287.0
  149. margin_bottom = 24.0
  150. size_flags_horizontal = 3
  151. size_flags_vertical = 3
  152. align = 1
  153. expand_to_text_length = true
  154. placeholder_text = "username"
  155. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  156. margin_top = 170.0
  157. margin_right = 287.0
  158. margin_bottom = 194.0
  159. alignment = 1
  160. [node name="LineEdit2" type="LineEdit" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer2"]
  161. margin_right = 287.0
  162. margin_bottom = 24.0
  163. size_flags_horizontal = 3
  164. size_flags_vertical = 3
  165. align = 1
  166. expand_to_text_length = true
  167. placeholder_text = "password"
  168. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/loginscreen/VBoxContainer"]
  169. margin_top = 198.0
  170. margin_right = 287.0
  171. margin_bottom = 218.0
  172. alignment = 1
  173. [node name="login" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  174. margin_right = 43.0
  175. margin_bottom = 20.0
  176. text = "login"
  177. [node name="register" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  178. margin_left = 47.0
  179. margin_right = 111.0
  180. margin_bottom = 20.0
  181. text = "Register"
  182. [node name="recover" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  183. margin_left = 115.0
  184. margin_right = 242.0
  185. margin_bottom = 20.0
  186. text = "Recover Password"
  187. [node name="back" type="Button" parent="LoginUI/loginscreen/VBoxContainer/HBoxContainer3"]
  188. margin_left = 246.0
  189. margin_right = 287.0
  190. margin_bottom = 20.0
  191. text = "back"
  192. [node name="register" type="Control" parent="LoginUI"]
  193. visible = false
  194. anchor_right = 1.0
  195. anchor_bottom = 1.0
  196. margin_left = 180.0
  197. margin_right = -180.0
  198. [node name="VBoxContainer" type="VBoxContainer" parent="LoginUI/register"]
  199. anchor_right = 1.0
  200. anchor_bottom = 1.0
  201. alignment = 1
  202. [node name="HBoxContainer" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  203. margin_top = 114.0
  204. margin_right = 280.0
  205. margin_bottom = 138.0
  206. alignment = 1
  207. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer"]
  208. margin_right = 280.0
  209. margin_bottom = 24.0
  210. size_flags_horizontal = 3
  211. size_flags_vertical = 3
  212. align = 1
  213. expand_to_text_length = true
  214. placeholder_text = "username"
  215. [node name="HBoxContainer2" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  216. margin_top = 142.0
  217. margin_right = 280.0
  218. margin_bottom = 166.0
  219. alignment = 1
  220. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer2"]
  221. margin_right = 280.0
  222. margin_bottom = 24.0
  223. size_flags_horizontal = 3
  224. size_flags_vertical = 3
  225. align = 1
  226. expand_to_text_length = true
  227. placeholder_text = "password"
  228. [node name="HBoxContainer4" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  229. margin_top = 170.0
  230. margin_right = 280.0
  231. margin_bottom = 194.0
  232. alignment = 1
  233. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer4"]
  234. margin_right = 280.0
  235. margin_bottom = 24.0
  236. size_flags_horizontal = 3
  237. size_flags_vertical = 3
  238. align = 1
  239. expand_to_text_length = true
  240. placeholder_text = "comfirm password"
  241. [node name="HBoxContainer5" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  242. margin_top = 198.0
  243. margin_right = 280.0
  244. margin_bottom = 222.0
  245. alignment = 1
  246. [node name="LineEdit2" type="LineEdit" parent="LoginUI/register/VBoxContainer/HBoxContainer5"]
  247. margin_right = 280.0
  248. margin_bottom = 24.0
  249. size_flags_horizontal = 3
  250. size_flags_vertical = 3
  251. align = 1
  252. expand_to_text_length = true
  253. placeholder_text = "email"
  254. [node name="HBoxContainer3" type="HBoxContainer" parent="LoginUI/register/VBoxContainer"]
  255. margin_top = 226.0
  256. margin_right = 280.0
  257. margin_bottom = 246.0
  258. alignment = 1
  259. [node name="login2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer3"]
  260. margin_left = 85.0
  261. margin_right = 149.0
  262. margin_bottom = 20.0
  263. text = "Login"
  264. [node name="Register2" type="Button" parent="LoginUI/register/VBoxContainer/HBoxContainer3"]
  265. margin_left = 85.0
  266. margin_right = 149.0
  267. margin_bottom = 20.0
  268. text = "Register"
  269. [node name="Label" type="Label" parent="LoginUI/register/VBoxContainer"]
  270. margin_right = 40.0
  271. margin_bottom = 14.0
  272. text = "status"
  273. [node name="Authority" type="Node" parent="."]
  274. [node name="Camera2D" type="Camera2D" parent="."]
  275. position = Vector2( 320, 180 )
  276. current = true
  277. script = ExtResource( 13 )
  278. [node name="envarg" type="Node" parent="."]
  279. script = ExtResource( 2 )
  280. [node name="x509gen" type="Node" parent="."]
  281. script = ExtResource( 4 )
  282. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button" to="LoginUI" method="_on_Button_button_down"]
  283. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/Button2" to="LoginUI" method="_on_Button2_button_down"]
  284. [connection signal="button_down" from="LoginUI/directconnect/VBoxContainer/x509" to="x509gen" method="_on_x509_button_down"]
  285. [connection signal="toggled" from="LoginUI/directconnect/VBoxContainer/CheckButton" to="LoginUI" method="_on_CheckButton_toggled"]
  286. [connection signal="button_down" from="LoginUI/loginscreen/VBoxContainer/HBoxContainer3/register" to="LoginUI" method="_on_register_button_down"]
  287. [connection signal="button_down" from="LoginUI/register/VBoxContainer/HBoxContainer3/login2" to="LoginUI" method="_on_login2_button_down"]