Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorCreateMark.tscn
@小李xl 小李xl on 10 Aug 2023 6 KB 创建房间标记, 开发中
  1. [gd_scene load_steps=5 format=3 uid="uid://bt4xo2lb4h4rx"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorCreateMark/MapEditorCreateMarkPanel.cs" id="1_cjivg"]
  4. [ext_resource type="Material" uid="uid://cces3bhds7jyi" path="res://resource/material/Blend.tres" id="2_xb40b"]
  5. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="3_7xihk"]
  6. [ext_resource type="Texture2D" uid="uid://dligpyhp72sg7" path="res://resource/sprite/ui/commonIcon/Right.png" id="3_v5clf"]
  7.  
  8. [node name="MapEditorCreateMark" type="Control"]
  9. layout_mode = 3
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. script = ExtResource("1_cjivg")
  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="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  32. layout_mode = 2
  33.  
  34. [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
  35. layout_mode = 2
  36. size_flags_horizontal = 3
  37.  
  38. [node name="WaveNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer3/HBoxContainer2"]
  39. layout_mode = 2
  40. size_flags_horizontal = 3
  41. size_flags_stretch_ratio = 30.0
  42. text = "所属波数:"
  43. horizontal_alignment = 2
  44. vertical_alignment = 1
  45.  
  46. [node name="WaveOption" type="OptionButton" parent="MarginContainer/VBoxContainer/HBoxContainer3/HBoxContainer2"]
  47. layout_mode = 2
  48. size_flags_horizontal = 3
  49. size_flags_stretch_ratio = 70.0
  50.  
  51. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
  52. layout_mode = 2
  53. size_flags_horizontal = 3
  54.  
  55. [node name="DelayNameLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer3/HBoxContainer"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. size_flags_stretch_ratio = 30.0
  59. text = "延时时间:"
  60. horizontal_alignment = 2
  61. vertical_alignment = 1
  62.  
  63. [node name="DelayInput" type="SpinBox" parent="MarginContainer/VBoxContainer/HBoxContainer3/HBoxContainer"]
  64. layout_mode = 2
  65. size_flags_horizontal = 3
  66. size_flags_stretch_ratio = 70.0
  67. max_value = 30.0
  68. step = 0.01
  69. custom_arrow_step = 0.1
  70.  
  71. [node name="AddMark" type="Button" parent="MarginContainer/VBoxContainer"]
  72. layout_mode = 2
  73. size_flags_horizontal = 4
  74. text = "添加物体"
  75.  
  76. [node name="Panel" type="Panel" parent="MarginContainer/VBoxContainer"]
  77. layout_mode = 2
  78. size_flags_vertical = 3
  79.  
  80. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/Panel"]
  81. layout_mode = 1
  82. anchors_preset = 15
  83. anchor_right = 1.0
  84. anchor_bottom = 1.0
  85. grow_horizontal = 2
  86. grow_vertical = 2
  87.  
  88. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer"]
  89. custom_minimum_size = Vector2(0, 60)
  90. layout_mode = 2
  91.  
  92. [node name="Control" type="Control" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  93. custom_minimum_size = Vector2(80, 0)
  94. layout_mode = 2
  95.  
  96. [node name="IconTitle" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  97. custom_minimum_size = Vector2(80, 0)
  98. layout_mode = 2
  99. text = "图标"
  100. horizontal_alignment = 1
  101. vertical_alignment = 1
  102.  
  103. [node name="IdTitle" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  104. custom_minimum_size = Vector2(250, 0)
  105. layout_mode = 2
  106. text = "物体Id"
  107. horizontal_alignment = 1
  108. vertical_alignment = 1
  109.  
  110. [node name="NameTitle" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  111. custom_minimum_size = Vector2(350, 0)
  112. layout_mode = 2
  113. text = "物体名称"
  114. horizontal_alignment = 1
  115. vertical_alignment = 1
  116.  
  117. [node name="WeightTitle" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  118. custom_minimum_size = Vector2(250, 0)
  119. layout_mode = 2
  120. text = "权重"
  121. horizontal_alignment = 1
  122. vertical_alignment = 1
  123.  
  124. [node name="ExtraTitle" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/HBoxContainer"]
  125. visible = false
  126. custom_minimum_size = Vector2(250, 0)
  127. layout_mode = 2
  128. size_flags_horizontal = 3
  129. text = "额外属性"
  130. horizontal_alignment = 1
  131. vertical_alignment = 1
  132.  
  133. [node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer"]
  134. layout_mode = 2
  135. size_flags_vertical = 3
  136.  
  137. [node name="MarkObject" type="HBoxContainer" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer"]
  138. custom_minimum_size = Vector2(0, 100)
  139. layout_mode = 2
  140. size_flags_horizontal = 3
  141.  
  142. [node name="ExpandButton" type="Button" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  143. custom_minimum_size = Vector2(80, 80)
  144. layout_mode = 2
  145. size_flags_vertical = 4
  146. icon = ExtResource("3_v5clf")
  147. flat = true
  148. icon_alignment = 1
  149.  
  150. [node name="Icon" type="TextureRect" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  151. material = ExtResource("2_xb40b")
  152. custom_minimum_size = Vector2(80, 80)
  153. layout_mode = 2
  154. stretch_mode = 5
  155.  
  156. [node name="IdLabel" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  157. custom_minimum_size = Vector2(250, 0)
  158. layout_mode = 2
  159. size_flags_vertical = 1
  160. text = "1001"
  161. horizontal_alignment = 1
  162. vertical_alignment = 1
  163. autowrap_mode = 3
  164.  
  165. [node name="NameLabel" type="Label" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  166. custom_minimum_size = Vector2(350, 0)
  167. layout_mode = 2
  168. size_flags_vertical = 1
  169. text = "名称"
  170. horizontal_alignment = 1
  171. vertical_alignment = 1
  172. autowrap_mode = 3
  173.  
  174. [node name="LineEdit" type="SpinBox" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  175. custom_minimum_size = Vector2(250, 43)
  176. layout_mode = 2
  177. size_flags_vertical = 4
  178. max_value = 1000.0
  179. value = 100.0
  180. custom_arrow_step = 1.0
  181.  
  182. [node name="CenterContainer" type="CenterContainer" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject"]
  183. layout_mode = 2
  184. size_flags_horizontal = 3
  185.  
  186. [node name="DeleteButton" type="Button" parent="MarginContainer/VBoxContainer/Panel/VBoxContainer/ScrollContainer/MarkObject/CenterContainer"]
  187. custom_minimum_size = Vector2(43, 43)
  188. layout_mode = 2
  189. size_flags_vertical = 4
  190. icon = ExtResource("3_7xihk")