Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / PauseMenu.tscn
@小李xl 小李xl on 20 Sep 2023 1 KB 制作暂停功能
  1. [gd_scene load_steps=3 format=3 uid="uid://bkq1wl66w3ais"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/pauseMenu/PauseMenuPanel.cs" id="1_ef73i"]
  4. [ext_resource type="Theme" uid="uid://drb1ajgvcih7p" path="res://resource/theme/theme1.tres" id="2_x1py5"]
  5.  
  6. [node name="PauseMenu" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. script = ExtResource("1_ef73i")
  12. Layer = 2
  13.  
  14. [node name="ColorRect" type="ColorRect" parent="."]
  15. layout_mode = 1
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. color = Color(0, 0, 0, 0.54902)
  22.  
  23. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  24. layout_mode = 1
  25. anchors_preset = 8
  26. anchor_left = 0.5
  27. anchor_top = 0.5
  28. anchor_right = 0.5
  29. anchor_bottom = 0.5
  30. offset_left = -64.0
  31. offset_top = -79.0
  32. offset_right = 64.0
  33. offset_bottom = 79.0
  34. grow_horizontal = 2
  35. grow_vertical = 2
  36.  
  37. [node name="Continue" type="Button" parent="VBoxContainer"]
  38. custom_minimum_size = Vector2(0, 50)
  39. layout_mode = 2
  40. focus_neighbor_top = NodePath("../Exit")
  41. focus_neighbor_bottom = NodePath("../Setting")
  42. theme = ExtResource("2_x1py5")
  43. text = "继续"
  44.  
  45. [node name="Restart" type="Button" parent="VBoxContainer"]
  46. custom_minimum_size = Vector2(0, 50)
  47. layout_mode = 2
  48. focus_neighbor_top = NodePath("../Exit")
  49. focus_neighbor_bottom = NodePath("../Setting")
  50. theme = ExtResource("2_x1py5")
  51. text = "重新开始"
  52.  
  53. [node name="Exit" type="Button" parent="VBoxContainer"]
  54. custom_minimum_size = Vector2(0, 50)
  55. layout_mode = 2
  56. focus_neighbor_top = NodePath("../Exit")
  57. focus_neighbor_bottom = NodePath("../Setting")
  58. theme = ExtResource("2_x1py5")
  59. text = "退出游戏"