main_menu.tscn 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [gd_scene load_steps=6 format=3 uid="uid://bnug1ybm5mlyd"]
  2. [ext_resource type="Script" path="res://screens/main_menu.gd" id="1_6qk7l"]
  3. [ext_resource type="Texture2D" uid="uid://b6nsk6rd8a7sn" path="res://assets/textures/menu_background.jpg" id="2_6qrvo"]
  4. [ext_resource type="PackedScene" uid="uid://bq2tsg7ic7l6h" path="res://assets/scenes/logo.tscn" id="2_tr1i0"]
  5. [ext_resource type="FontFile" uid="uid://cqtognhaksl7j" path="res://assets/fonts/Potra.ttf" id="4_e6syc"]
  6. [sub_resource type="LabelSettings" id="LabelSettings_b3san"]
  7. font = ExtResource("4_e6syc")
  8. font_size = 42
  9. [node name="MainMenu" type="Control"]
  10. layout_mode = 3
  11. anchors_preset = 15
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. grow_horizontal = 2
  15. grow_vertical = 2
  16. script = ExtResource("1_6qk7l")
  17. [node name="Background" type="TextureRect" parent="."]
  18. layout_mode = 0
  19. offset_right = 40.0
  20. offset_bottom = 40.0
  21. texture = ExtResource("2_6qrvo")
  22. [node name="Logo" parent="." instance=ExtResource("2_tr1i0")]
  23. layout_mode = 1
  24. offset_left = 56.0
  25. offset_top = 59.0
  26. offset_right = 982.0
  27. offset_bottom = 211.0
  28. scale = Vector2(0.856422, 0.698644)
  29. [node name="Buttons" type="VBoxContainer" parent="."]
  30. layout_mode = 1
  31. offset_left = 343.0
  32. offset_top = 276.0
  33. offset_right = 532.0
  34. offset_bottom = 456.0
  35. [node name="NewGame" type="Button" parent="Buttons"]
  36. layout_mode = 2
  37. theme_override_font_sizes/font_size = 23
  38. text = "NEW GAME"
  39. [node name="Leaderboard" type="Button" parent="Buttons"]
  40. layout_mode = 2
  41. disabled = true
  42. text = "LEADERBOARD"
  43. [node name="Settings" type="Button" parent="Buttons"]
  44. layout_mode = 2
  45. text = "SETTINGS"
  46. [node name="Credits" type="Button" parent="Buttons"]
  47. layout_mode = 2
  48. text = "CREDITS"
  49. [node name="Quit" type="Button" parent="Buttons"]
  50. layout_mode = 2
  51. text = "QUIT"
  52. [node name="Authors" type="Label" parent="."]
  53. layout_mode = 0
  54. offset_left = 210.0
  55. offset_top = 544.0
  56. offset_right = 682.0
  57. offset_bottom = 649.0
  58. text = "A GAME BY:
  59. LORDDRAKO & UGLIBOY"
  60. label_settings = SubResource("LabelSettings_b3san")
  61. horizontal_alignment = 1
  62. [connection signal="pressed" from="Buttons/NewGame" to="." method="_on_new_game_pressed"]
  63. [connection signal="pressed" from="Buttons/Settings" to="." method="_on_settings_pressed"]
  64. [connection signal="pressed" from="Buttons/Quit" to="." method="_on_quit_pressed"]