Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorProject.tscn
@小李xl 小李xl on 2 Aug 2023 6 KB 设计地图标记页面
  1. [gd_scene load_steps=6 format=3 uid="uid://dh7y03tq6v0a2"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorProject/MapEditorProjectPanel.cs" id="1_5aioo"]
  4. [ext_resource type="Texture2D" uid="uid://cajcnlimvoxk" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_v0ry0"]
  5. [ext_resource type="Texture2D" uid="uid://uhhfgdhpk7i4" path="res://icon.png" id="2_xh3iw"]
  6. [ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_f5h8c"]
  7. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="4_okvq0"]
  8.  
  9. [node name="MapEditorProject" type="Control"]
  10. layout_mode = 3
  11. anchors_preset = 15
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. grow_horizontal = 2
  15. grow_vertical = 2
  16. script = ExtResource("1_5aioo")
  17. metadata/_edit_horizontal_guides_ = [449.0]
  18.  
  19. [node name="Bg" type="Panel" parent="."]
  20. layout_mode = 1
  21. anchors_preset = 15
  22. anchor_right = 1.0
  23. anchor_bottom = 1.0
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26.  
  27. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  28. layout_mode = 1
  29. anchors_preset = 15
  30. anchor_right = 1.0
  31. anchor_bottom = 1.0
  32. grow_horizontal = 2
  33. grow_vertical = 2
  34. theme_override_constants/separation = 0
  35.  
  36. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  37. custom_minimum_size = Vector2(0, 70)
  38. layout_mode = 2
  39.  
  40. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  41. layout_mode = 2
  42. offset_left = 2.0
  43. offset_top = 2.0
  44. offset_right = 62.0
  45. offset_bottom = 68.0
  46. size_flags_horizontal = 0
  47. icon = ExtResource("2_v0ry0")
  48. icon_alignment = 1
  49.  
  50. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  51. layout_mode = 2
  52. size_flags_vertical = 3
  53. theme_override_constants/separation = 0
  54.  
  55. [node name="Panel" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. size_flags_stretch_ratio = 2.0
  59.  
  60. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel"]
  61. layout_mode = 1
  62. anchors_preset = 15
  63. anchor_right = 1.0
  64. anchor_bottom = 1.0
  65. grow_horizontal = 2
  66. grow_vertical = 2
  67. theme_override_constants/margin_left = 12
  68. theme_override_constants/margin_top = 12
  69. theme_override_constants/margin_right = 12
  70. theme_override_constants/margin_bottom = 12
  71.  
  72. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer"]
  73. layout_mode = 2
  74.  
  75. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  76. custom_minimum_size = Vector2(0, 45)
  77. layout_mode = 2
  78.  
  79. [node name="GroupSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  80. layout_mode = 2
  81. size_flags_horizontal = 3
  82. placeholder_text = "搜索"
  83.  
  84. [node name="GroupSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  85. layout_mode = 2
  86. icon = ExtResource("3_f5h8c")
  87.  
  88. [node name="GroupAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  89. layout_mode = 2
  90. icon = ExtResource("4_okvq0")
  91.  
  92. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  93. layout_mode = 2
  94. size_flags_vertical = 3
  95.  
  96. [node name="GroupButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  97. custom_minimum_size = Vector2(0, 100)
  98. layout_mode = 2
  99. size_flags_horizontal = 3
  100. text = "testGroup1"
  101. alignment = 0
  102. text_overrun_behavior = 3
  103.  
  104. [node name="Panel2" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  105. layout_mode = 2
  106. size_flags_horizontal = 3
  107. size_flags_stretch_ratio = 8.0
  108.  
  109. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2"]
  110. layout_mode = 1
  111. anchors_preset = 15
  112. anchor_right = 1.0
  113. anchor_bottom = 1.0
  114. grow_horizontal = 2
  115. grow_vertical = 2
  116. theme_override_constants/margin_left = 12
  117. theme_override_constants/margin_top = 12
  118. theme_override_constants/margin_right = 12
  119. theme_override_constants/margin_bottom = 12
  120.  
  121. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer"]
  122. layout_mode = 2
  123.  
  124. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  125. custom_minimum_size = Vector2(0, 45)
  126. layout_mode = 2
  127.  
  128. [node name="RoomSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  129. custom_minimum_size = Vector2(500, 0)
  130. layout_mode = 2
  131. placeholder_text = "搜索"
  132.  
  133. [node name="RoomTypeButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  134. custom_minimum_size = Vector2(200, 0)
  135. layout_mode = 2
  136.  
  137. [node name="RoomSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  138. layout_mode = 2
  139. icon = ExtResource("3_f5h8c")
  140.  
  141. [node name="RoomAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  142. layout_mode = 2
  143. icon = ExtResource("4_okvq0")
  144.  
  145. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  146. layout_mode = 2
  147. size_flags_vertical = 3
  148.  
  149. [node name="RoomButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer"]
  150. custom_minimum_size = Vector2(200, 285)
  151. layout_mode = 2
  152.  
  153. [node name="PreviewImage" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  154. layout_mode = 1
  155. anchors_preset = 15
  156. anchor_right = 1.0
  157. anchor_bottom = 1.0
  158. offset_left = 2.0
  159. offset_top = 2.0
  160. offset_right = -2.0
  161. offset_bottom = -85.0
  162. grow_horizontal = 2
  163. grow_vertical = 2
  164. mouse_filter = 2
  165. texture = ExtResource("2_xh3iw")
  166. stretch_mode = 5
  167.  
  168. [node name="RoomName" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  169. layout_mode = 1
  170. anchors_preset = 12
  171. anchor_top = 1.0
  172. anchor_right = 1.0
  173. anchor_bottom = 1.0
  174. offset_top = -86.0
  175. offset_bottom = -43.0
  176. grow_horizontal = 2
  177. grow_vertical = 0
  178. text = "Room1"
  179. horizontal_alignment = 1
  180. clip_text = true
  181. text_overrun_behavior = 3
  182.  
  183. [node name="RoomType" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  184. layout_mode = 1
  185. anchors_preset = 12
  186. anchor_top = 1.0
  187. anchor_right = 1.0
  188. anchor_bottom = 1.0
  189. offset_top = -43.0
  190. grow_horizontal = 2
  191. grow_vertical = 0
  192. text = "战斗"
  193. horizontal_alignment = 1
  194. clip_text = true
  195. text_overrun_behavior = 3