Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / Main.tscn
@lijincheng lijincheng on 27 Sep 2023 2 KB 自适应分辨率
  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="ColorRect" type="ColorRect" parent="."]
  16. layout_mode = 1
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. color = Color(0.109804, 0.0666667, 0.0901961, 1)
  23.  
  24. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  25. layout_mode = 1
  26. anchors_preset = 15
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31.  
  32. [node name="Title" type="Label" parent="VBoxContainer"]
  33. layout_mode = 2
  34. size_flags_vertical = 6
  35. theme_override_font_sizes/font_size = 160
  36. text = "Program dungeon"
  37. horizontal_alignment = 1
  38. vertical_alignment = 1
  39.  
  40. [node name="ButtonList" type="VBoxContainer" parent="VBoxContainer"]
  41. layout_mode = 2
  42. size_flags_vertical = 3
  43. alignment = 1
  44.  
  45. [node name="Start" type="Button" parent="VBoxContainer/ButtonList"]
  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_bbd6i")
  51. text = "开始游戏
  52. "
  53.  
  54. [node name="Tools" type="Button" parent="VBoxContainer/ButtonList"]
  55. custom_minimum_size = Vector2(0, 50)
  56. layout_mode = 2
  57. focus_neighbor_top = NodePath("../Start")
  58. focus_neighbor_bottom = NodePath("../Exit")
  59. theme = ExtResource("2_bbd6i")
  60. theme_override_font_sizes/font_size = 32
  61. text = "开发者工具"
  62.  
  63. [node name="Setting" type="Button" parent="VBoxContainer/ButtonList"]
  64. custom_minimum_size = Vector2(0, 50)
  65. layout_mode = 2
  66. focus_neighbor_top = NodePath("../Start")
  67. focus_neighbor_bottom = NodePath("../Exit")
  68. theme = ExtResource("2_bbd6i")
  69. theme_override_font_sizes/font_size = 32
  70. text = "设置"
  71.  
  72. [node name="Exit" type="Button" parent="VBoxContainer/ButtonList"]
  73. custom_minimum_size = Vector2(0, 50)
  74. layout_mode = 2
  75. focus_neighbor_top = NodePath("../Setting")
  76. focus_neighbor_bottom = NodePath("../Start")
  77. theme = ExtResource("2_bbd6i")
  78. text = "退出"
  79.  
  80. [node name="Version" type="Label" parent="."]
  81. layout_mode = 1
  82. anchors_preset = 3
  83. anchor_left = 1.0
  84. anchor_top = 1.0
  85. anchor_right = 1.0
  86. anchor_bottom = 1.0
  87. offset_left = -195.0
  88. offset_top = -53.0
  89. offset_right = -10.0
  90. offset_bottom = -1.0
  91. grow_horizontal = 0
  92. grow_vertical = 0
  93. text = "v0.01"
  94. horizontal_alignment = 2