title_screen.tscn 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="TextContainer" type="VBoxContainer" parent="."]
  16. layout_mode = 2
  17. [node name="Title" type="Label" parent="TextContainer"]
  18. layout_mode = 2
  19. theme_override_font_sizes/font_size = 40
  20. text = "Crazy Choco Driver"
  21. horizontal_alignment = 1
  22. [node name="BlaBla" type="Label" parent="TextContainer"]
  23. layout_mode = 2
  24. theme_override_font_sizes/font_size = 30
  25. text = "Pick those chocolate bars, and reach space to savor them!
  26. :-p"
  27. horizontal_alignment = 1
  28. [node name="Buttons" type="VBoxContainer" parent="."]
  29. layout_mode = 2
  30. size_flags_horizontal = 4
  31. size_flags_vertical = 4
  32. [node name="StartButton" type="Button" parent="Buttons"]
  33. unique_name_in_owner = true
  34. layout_mode = 2
  35. theme_override_font_sizes/font_size = 33
  36. text = "Start new game"
  37. [node name="QuitButton" type="Button" parent="Buttons"]
  38. layout_mode = 2
  39. theme_override_font_sizes/font_size = 33
  40. shortcut = SubResource("Shortcut_2elwo")
  41. text = "Quit"
  42. [connection signal="pressed" from="Buttons/StartButton" to="." method="_on_start_button_pressed"]
  43. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]