victory_menu.tscn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=4 format=3 uid="uid://bmgwhm6ejsden"]
  2. [ext_resource type="Script" path="res://component/ui/victory/victory_menu.gd" id="1_2kg3i"]
  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="VictoryMenu" type="VSplitContainer"]
  8. visible = false
  9. anchors_preset = 15
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. grow_horizontal = 2
  13. grow_vertical = 2
  14. size_flags_horizontal = 4
  15. script = ExtResource("1_2kg3i")
  16. [node name="TextContainer" type="VBoxContainer" parent="."]
  17. layout_mode = 2
  18. [node name="Title" type="Label" parent="TextContainer"]
  19. layout_mode = 2
  20. theme_override_font_sizes/font_size = 40
  21. text = "Victory!"
  22. horizontal_alignment = 1
  23. [node name="BlaBla" type="Label" parent="TextContainer"]
  24. layout_mode = 2
  25. theme_override_font_sizes/font_size = 30
  26. text = "That's not a common way to go to space, but you are welcome !"
  27. horizontal_alignment = 1
  28. autowrap_mode = 2
  29. [node name="Buttons" type="VBoxContainer" parent="."]
  30. layout_mode = 2
  31. size_flags_horizontal = 4
  32. size_flags_vertical = 4
  33. [node name="TitleButton" type="Button" parent="Buttons"]
  34. unique_name_in_owner = true
  35. layout_mode = 2
  36. theme_override_font_sizes/font_size = 33
  37. text = "Return to title screen"
  38. [node name="QuitButton" type="Button" parent="Buttons"]
  39. layout_mode = 2
  40. theme_override_font_sizes/font_size = 33
  41. shortcut = SubResource("Shortcut_2elwo")
  42. text = "Quit"
  43. [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
  44. [connection signal="pressed" from="Buttons/TitleButton" to="." method="_on_title_button_pressed"]
  45. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]