victory_menu.tscn 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="Message" type="Label" parent="Panel/MarginContainer/TextContainer"]
  27. unique_name_in_owner = true
  28. layout_mode = 2
  29. theme_override_font_sizes/font_size = 30
  30. text = "Welcome to space!"
  31. horizontal_alignment = 1
  32. autowrap_mode = 2
  33. [node name="Buttons" type="VBoxContainer" parent="."]
  34. layout_mode = 2
  35. size_flags_horizontal = 4
  36. size_flags_vertical = 4
  37. [node name="TitleButton" type="Button" parent="Buttons"]
  38. unique_name_in_owner = true
  39. layout_mode = 2
  40. theme_override_font_sizes/font_size = 33
  41. text = "Return to title screen"
  42. [node name="QuitButton" type="Button" parent="Buttons"]
  43. layout_mode = 2
  44. theme_override_font_sizes/font_size = 33
  45. shortcut = SubResource("Shortcut_2elwo")
  46. text = "Quit"
  47. [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
  48. [connection signal="pressed" from="Buttons/TitleButton" to="." method="_on_title_button_pressed"]
  49. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]