Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / EditorWindow.tscn
@小李xl 小李xl on 21 Jul 2023 1 KB 通用窗体组件
  1. [gd_scene load_steps=2 format=3 uid="uid://bw342xeqc5div"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/editorWindow/EditorWindowPanel.cs" id="1_bfitg"]
  4.  
  5. [node name="EditorWindow" type="Control"]
  6. layout_mode = 3
  7. anchors_preset = 15
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. script = ExtResource("1_bfitg")
  11. Layer = 3
  12.  
  13. [node name="Window" type="Window" parent="."]
  14. title = "标题"
  15. initial_position = 1
  16. size = Vector2i(500, 350)
  17. visible = false
  18. min_size = Vector2i(500, 350)
  19. theme_override_constants/title_height = 33
  20.  
  21. [node name="Panel" type="Panel" parent="Window"]
  22. anchors_preset = 15
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. grow_horizontal = 2
  26. grow_vertical = 2
  27.  
  28. [node name="VBoxContainer" type="VBoxContainer" parent="Window/Panel"]
  29. layout_mode = 1
  30. anchors_preset = 15
  31. anchor_right = 1.0
  32. anchor_bottom = 1.0
  33. grow_horizontal = 2
  34. grow_vertical = 2
  35.  
  36. [node name="Body" type="MarginContainer" parent="Window/Panel/VBoxContainer"]
  37. layout_mode = 2
  38. size_flags_vertical = 3
  39. theme_override_constants/margin_left = 10
  40. theme_override_constants/margin_top = 10
  41. theme_override_constants/margin_right = 10
  42. theme_override_constants/margin_bottom = 10
  43.  
  44. [node name="HBoxContainer" type="HBoxContainer" parent="Window/Panel/VBoxContainer"]
  45. custom_minimum_size = Vector2(0, 70)
  46. layout_mode = 2
  47.  
  48. [node name="CustomButton" type="CenterContainer" parent="Window/Panel/VBoxContainer/HBoxContainer"]
  49. layout_mode = 2
  50. size_flags_horizontal = 3
  51.  
  52. [node name="Button" type="Button" parent="Window/Panel/VBoxContainer/HBoxContainer/CustomButton"]
  53. layout_mode = 2
  54. size_flags_horizontal = 3
  55. text = "确定"