car_select.tscn 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [gd_scene load_steps=6 format=3 uid="uid://ckvqraq6j1okh"]
  2. [ext_resource type="Script" path="res://car_select/car_select.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://bh7b4n4lg1uqt" path="res://car_select/choose_van.png" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://hvkcmpdq1t0k" path="res://car_select/choose_trailer.png" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://de7itkxhl0u28" path="res://car_select/choose_tow.png" id="4"]
  6. [sub_resource type="FontVariation" id="FontVariation_hqcvw"]
  7. variation_embolden = 1.0
  8. variation_transform = Transform2D(1, 0.2, 0, 1, 0, 0)
  9. spacing_glyph = -1
  10. spacing_space = 4
  11. [node name="CarSelect" type="Control"]
  12. layout_mode = 3
  13. anchors_preset = 8
  14. anchor_left = 0.5
  15. anchor_top = 0.5
  16. anchor_right = 0.5
  17. anchor_bottom = 0.5
  18. offset_left = -512.0
  19. offset_top = -300.0
  20. offset_right = 512.0
  21. offset_bottom = 300.0
  22. grow_horizontal = 2
  23. grow_vertical = 2
  24. size_flags_horizontal = 2
  25. size_flags_vertical = 2
  26. script = ExtResource("1")
  27. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  28. layout_mode = 0
  29. anchor_top = 0.5
  30. anchor_right = 1.0
  31. anchor_bottom = 0.5
  32. grow_horizontal = 2
  33. grow_vertical = 2
  34. alignment = 1
  35. [node name="MiniVan" type="Button" parent="HBoxContainer"]
  36. layout_mode = 2
  37. size_flags_horizontal = 6
  38. size_flags_vertical = 4
  39. icon = ExtResource("2")
  40. [node name="TrailerTruck" type="Button" parent="HBoxContainer"]
  41. layout_mode = 2
  42. size_flags_horizontal = 6
  43. size_flags_vertical = 4
  44. icon = ExtResource("3")
  45. [node name="TowTruck" type="Button" parent="HBoxContainer"]
  46. layout_mode = 2
  47. size_flags_horizontal = 6
  48. size_flags_vertical = 4
  49. icon = ExtResource("4")
  50. [node name="Label" type="Label" parent="."]
  51. layout_mode = 0
  52. anchor_left = 0.5
  53. anchor_right = 0.5
  54. offset_left = -180.0
  55. offset_top = 32.0
  56. offset_right = 180.0
  57. offset_bottom = 123.0
  58. grow_horizontal = 2
  59. theme_override_colors/font_color = Color(0.494118, 0.858824, 0.960784, 1)
  60. theme_override_colors/font_shadow_color = Color(0, 0.25098, 1, 0.12549)
  61. theme_override_colors/font_outline_color = Color(0.105882, 0.278431, 0.47451, 1)
  62. theme_override_constants/shadow_offset_x = 6
  63. theme_override_constants/shadow_offset_y = 6
  64. theme_override_constants/outline_size = 38
  65. theme_override_constants/shadow_outline_size = 38
  66. theme_override_fonts/font = SubResource("FontVariation_hqcvw")
  67. theme_override_font_sizes/font_size = 64
  68. text = "Truck Town"
  69. [connection signal="pressed" from="HBoxContainer/MiniVan" to="." method="_on_mini_van_pressed"]
  70. [connection signal="pressed" from="HBoxContainer/TrailerTruck" to="." method="_on_trailer_truck_pressed"]
  71. [connection signal="pressed" from="HBoxContainer/TowTruck" to="." method="_on_tow_truck_pressed"]