Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / Main.tscn
  1. [gd_scene load_steps=3 format=3 uid="uid://cd7hl6b2mn5c8"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/main/MainPanel.cs" id="1_s44xr"]
  4. [ext_resource type="Theme" uid="uid://drb1ajgvcih7p" path="res://resource/theme/theme1.tres" id="2_bbd6i"]
  5.  
  6. [node name="Main" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_s44xr")
  14.  
  15. [node name="Title" type="Label" parent="."]
  16. layout_mode = 1
  17. anchors_preset = 10
  18. anchor_right = 1.0
  19. offset_top = 172.0
  20. offset_bottom = 405.0
  21. grow_horizontal = 2
  22. theme_override_font_sizes/font_size = 160
  23. text = "Program dungeon"
  24. horizontal_alignment = 1
  25. vertical_alignment = 1
  26.  
  27. [node name="ButtonList" type="VBoxContainer" parent="."]
  28. layout_mode = 1
  29. anchors_preset = 7
  30. anchor_left = 0.5
  31. anchor_top = 1.0
  32. anchor_right = 0.5
  33. anchor_bottom = 1.0
  34. offset_left = -96.0
  35. offset_top = -641.0
  36. offset_right = 96.0
  37. grow_horizontal = 2
  38. grow_vertical = 0
  39. alignment = 1
  40.  
  41. [node name="Start" type="Button" parent="ButtonList"]
  42. custom_minimum_size = Vector2(0, 50)
  43. layout_mode = 2
  44. focus_neighbor_top = NodePath("../Exit")
  45. focus_neighbor_bottom = NodePath("../Setting")
  46. theme = ExtResource("2_bbd6i")
  47. text = "开始游戏
  48. "
  49.  
  50. [node name="Setting" type="Button" parent="ButtonList"]
  51. custom_minimum_size = Vector2(0, 50)
  52. layout_mode = 2
  53. focus_neighbor_top = NodePath("../Start")
  54. focus_neighbor_bottom = NodePath("../Exit")
  55. theme = ExtResource("2_bbd6i")
  56. theme_override_font_sizes/font_size = 32
  57. text = "设置"
  58.  
  59. [node name="Exit" type="Button" parent="ButtonList"]
  60. custom_minimum_size = Vector2(0, 50)
  61. layout_mode = 2
  62. focus_neighbor_top = NodePath("../Setting")
  63. focus_neighbor_bottom = NodePath("../Start")
  64. theme = ExtResource("2_bbd6i")
  65. text = "退出"
  66.  
  67. [node name="Version" type="Label" parent="."]
  68. layout_mode = 1
  69. anchors_preset = 3
  70. anchor_left = 1.0
  71. anchor_top = 1.0
  72. anchor_right = 1.0
  73. anchor_bottom = 1.0
  74. offset_left = -195.0
  75. offset_top = -53.0
  76. offset_right = -10.0
  77. offset_bottom = -1.0
  78. grow_horizontal = 0
  79. grow_vertical = 0
  80. text = "v0.01"
  81. horizontal_alignment = 2