main.tscn 11 KB

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