victory_menu.tscn 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. 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_2kg3i")
  15. [node name="Panel" type="PanelContainer" parent="."]
  16. layout_mode = 2
  17. [node name="MarginContainer" type="MarginContainer" parent="Panel"]
  18. layout_mode = 2
  19. [node name="TextContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
  20. layout_mode = 2
  21. [node name="Title" type="Label" parent="Panel/MarginContainer/TextContainer"]
  22. layout_mode = 2
  23. theme_override_font_sizes/font_size = 40
  24. text = "Victory!"
  25. horizontal_alignment = 1
  26. [node name="BlaBla" type="Label" parent="Panel/MarginContainer/TextContainer"]
  27. layout_mode = 2
  28. theme_override_font_sizes/font_size = 30
  29. text = "That's not a common way to go to space, but you are welcome !"
  30. horizontal_alignment = 1
  31. autowrap_mode = 2
  32. [node name="Buttons" type="VBoxContainer" parent="."]
  33. layout_mode = 2
  34. size_flags_horizontal = 4
  35. size_flags_vertical = 4
  36. [node name="TitleButton" type="Button" parent="Buttons"]
  37. unique_name_in_owner = true
  38. layout_mode = 2
  39. theme_override_font_sizes/font_size = 33
  40. text = "Return to title screen"
  41. [node name="QuitButton" type="Button" parent="Buttons"]
  42. layout_mode = 2
  43. theme_override_font_sizes/font_size = 33
  44. shortcut = SubResource("Shortcut_2elwo")
  45. text = "Quit"
  46. [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
  47. [connection signal="pressed" from="Buttons/TitleButton" to="." method="_on_title_button_pressed"]
  48. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]