Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorCreateRoom.tscn
@小李xl 小李xl on 23 Jul 2023 3 KB 创建地牢组和地牢房间
  1. [gd_scene load_steps=2 format=3 uid="uid://bfx6u04j0pbnu"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorCreateRoom/MapEditorCreateRoomPanel.cs" id="1_dep3f"]
  4.  
  5. [node name="MapEditorCreateRoom" type="Control"]
  6. layout_mode = 3
  7. anchors_preset = 15
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. grow_horizontal = 2
  11. grow_vertical = 2
  12. script = ExtResource("1_dep3f")
  13. Layer = 3
  14.  
  15. [node name="MarginContainer" type="MarginContainer" 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. theme_override_constants/margin_left = 20
  23. theme_override_constants/margin_top = 50
  24. theme_override_constants/margin_right = 20
  25. theme_override_constants/margin_bottom = 20
  26.  
  27. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
  28. layout_mode = 2
  29. theme_override_constants/separation = 20
  30.  
  31. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  32. layout_mode = 2
  33.  
  34. [node name="RoomNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  35. layout_mode = 2
  36. size_flags_horizontal = 3
  37. size_flags_stretch_ratio = 20.0
  38. text = "房间名称:"
  39. horizontal_alignment = 2
  40. vertical_alignment = 1
  41.  
  42. [node name="RoomNameInput" type="LineEdit" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  43. layout_mode = 2
  44. size_flags_horizontal = 3
  45. size_flags_stretch_ratio = 80.0
  46. placeholder_text = "请输入房间名称"
  47.  
  48. [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  49. layout_mode = 2
  50.  
  51. [node name="GroupNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  52. layout_mode = 2
  53. size_flags_horizontal = 3
  54. size_flags_stretch_ratio = 20.0
  55. text = "所属分组:"
  56. horizontal_alignment = 2
  57. vertical_alignment = 1
  58.  
  59. [node name="GroupSelect" type="OptionButton" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  60. layout_mode = 2
  61. size_flags_horizontal = 3
  62. size_flags_stretch_ratio = 80.0
  63.  
  64. [node name="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  65. layout_mode = 2
  66.  
  67. [node name="TypeNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
  68. layout_mode = 2
  69. size_flags_horizontal = 3
  70. size_flags_stretch_ratio = 20.0
  71. text = "房间类型:"
  72. horizontal_alignment = 2
  73. vertical_alignment = 1
  74.  
  75. [node name="TypeSelect" type="OptionButton" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
  76. layout_mode = 2
  77. size_flags_horizontal = 3
  78. size_flags_stretch_ratio = 80.0
  79.  
  80. [node name="HBoxContainer4" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  81. layout_mode = 2
  82.  
  83. [node name="WeightNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer4"]
  84. layout_mode = 2
  85. size_flags_horizontal = 3
  86. size_flags_stretch_ratio = 20.0
  87. text = "房间权重:"
  88. horizontal_alignment = 2
  89. vertical_alignment = 1
  90.  
  91. [node name="WeightInput" type="SpinBox" parent="MarginContainer/VBoxContainer/HBoxContainer4"]
  92. layout_mode = 2
  93. size_flags_horizontal = 3
  94. size_flags_stretch_ratio = 80.0
  95. min_value = 1.0
  96. max_value = 1000.0
  97. value = 100.0
  98.  
  99. [node name="HBoxContainer5" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  100. layout_mode = 2
  101.  
  102. [node name="RemarkNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer5"]
  103. layout_mode = 2
  104. size_flags_horizontal = 3
  105. size_flags_vertical = 0
  106. size_flags_stretch_ratio = 20.0
  107. text = "房间备注:"
  108. horizontal_alignment = 2
  109. vertical_alignment = 1
  110.  
  111. [node name="RemarkInput" type="TextEdit" parent="MarginContainer/VBoxContainer/HBoxContainer5"]
  112. custom_minimum_size = Vector2(0, 150)
  113. layout_mode = 2
  114. size_flags_horizontal = 3
  115. size_flags_stretch_ratio = 80.0
  116. placeholder_text = "选填"
  117. wrap_mode = 1