title_screen.tscn 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [gd_scene load_steps=4 format=3 uid="uid://uy3pgfv4q3iy"]
  2. [ext_resource type="Script" path="res://component/ui/title/title_screen.gd" id="1_es6s3"]
  3. [sub_resource type="InputEventAction" id="InputEventAction_ucj0l"]
  4. action = &"ui_cancel"
  5. [sub_resource type="Shortcut" id="Shortcut_2elwo"]
  6. events = [SubResource("InputEventAction_ucj0l")]
  7. [node name="TitleScreen" type="VSplitContainer"]
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. size_flags_horizontal = 4
  14. script = ExtResource("1_es6s3")
  15. [node name="Title" type="Label" parent="."]
  16. layout_mode = 2
  17. theme_override_font_sizes/font_size = 40
  18. text = "Crazy Driver
  19. get those chocolate bars!"
  20. horizontal_alignment = 1
  21. [node name="Buttons" type="VBoxContainer" parent="."]
  22. layout_mode = 2
  23. size_flags_horizontal = 4
  24. size_flags_vertical = 4
  25. [node name="StartButton" type="Button" parent="Buttons"]
  26. unique_name_in_owner = true
  27. layout_mode = 2
  28. theme_override_font_sizes/font_size = 33
  29. text = "Start new game"
  30. [node name="QuitButton" type="Button" parent="Buttons"]
  31. layout_mode = 2
  32. theme_override_font_sizes/font_size = 33
  33. shortcut = SubResource("Shortcut_2elwo")
  34. text = "Quit"
  35. [connection signal="pressed" from="Buttons/StartButton" to="." method="_on_start_button_pressed"]
  36. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]