death_screen.tscn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [gd_scene load_steps=4 format=3 uid="uid://cjrl3cgbr8py5"]
  2. [ext_resource type="Script" uid="uid://d0nribcfyvv0r" path="res://Scripts/death_screen.gd" id="1"]
  3. [ext_resource type="FontFile" uid="uid://3088fs7yhrwi" path="res://Misc/comic sans.ttf" id="2"]
  4. [sub_resource type="LabelSettings" id="LabelSettings_0r3ax"]
  5. font = ExtResource("2")
  6. font_size = 32
  7. [node name="Death Screen" type="Panel"]
  8. process_mode = 2
  9. anchors_preset = 15
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. grow_horizontal = 2
  13. grow_vertical = 2
  14. script = ExtResource("1")
  15. [node name="respawn" type="Button" parent="."]
  16. layout_mode = 0
  17. offset_left = 124.0
  18. offset_top = 192.0
  19. offset_right = 304.0
  20. offset_bottom = 240.0
  21. theme_override_fonts/font = ExtResource("2")
  22. theme_override_font_sizes/font_size = 23
  23. text = "respawn"
  24. [node name="respawn2" type="Button" parent="."]
  25. layout_mode = 0
  26. offset_left = 123.0
  27. offset_top = 248.0
  28. offset_right = 303.0
  29. offset_bottom = 296.0
  30. theme_override_fonts/font = ExtResource("2")
  31. theme_override_font_sizes/font_size = 23
  32. text = "main menu"
  33. [node name="exit" type="Button" parent="."]
  34. layout_mode = 0
  35. offset_left = 124.0
  36. offset_top = 302.0
  37. offset_right = 304.0
  38. offset_bottom = 350.0
  39. theme_override_fonts/font = ExtResource("2")
  40. theme_override_font_sizes/font_size = 23
  41. text = "exit"
  42. [node name="title" type="Label" parent="."]
  43. layout_mode = 0
  44. offset_left = 81.0
  45. offset_top = 136.0
  46. offset_right = 353.0
  47. offset_bottom = 182.0
  48. text = "you die"
  49. label_settings = SubResource("LabelSettings_0r3ax")
  50. horizontal_alignment = 1
  51. vertical_alignment = 1
  52. [connection signal="pressed" from="respawn" to="." method="_on_respawn_pressed"]
  53. [connection signal="pressed" from="respawn2" to="." method="_on_respawn_2_pressed"]
  54. [connection signal="pressed" from="exit" to="." method="_on_exit_pressed"]