Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorProject.tscn
  1. [gd_scene load_steps=8 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://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_f5h8c"]
  5. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="4_okvq0"]
  6. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="5_rcbyx"]
  7. [ext_resource type="Texture2D" uid="uid://dggb6p4sdmfry" path="res://resource/sprite/ui/commonIcon/Edit.png" id="6_qalh0"]
  8. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="7_lnry3"]
  9. [ext_resource type="Texture2D" uid="uid://c4ltpf5a3egu1" path="res://resource/sprite/ui/commonIcon/Error_mini.png" id="9_xrt38"]
  10.  
  11. [node name="MapEditorProject" type="Control"]
  12. layout_mode = 3
  13. anchors_preset = 15
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. grow_horizontal = 2
  17. grow_vertical = 2
  18. script = ExtResource("1_5aioo")
  19. metadata/_edit_horizontal_guides_ = [449.0]
  20.  
  21. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  22. layout_mode = 1
  23. anchors_preset = 15
  24. anchor_right = 1.0
  25. anchor_bottom = 1.0
  26. grow_horizontal = 2
  27. grow_vertical = 2
  28. size_flags_vertical = 3
  29. theme_override_constants/separation = 0
  30.  
  31. [node name="Panel" type="Panel" parent="HBoxContainer"]
  32. layout_mode = 2
  33. size_flags_horizontal = 3
  34. size_flags_stretch_ratio = 2.0
  35.  
  36. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel"]
  37. layout_mode = 1
  38. anchors_preset = 15
  39. anchor_right = 1.0
  40. anchor_bottom = 1.0
  41. grow_horizontal = 2
  42. grow_vertical = 2
  43. theme_override_constants/margin_left = 12
  44. theme_override_constants/margin_top = 12
  45. theme_override_constants/margin_right = 12
  46. theme_override_constants/margin_bottom = 12
  47.  
  48. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Panel/MarginContainer"]
  49. layout_mode = 2
  50.  
  51. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  52. custom_minimum_size = Vector2(0, 45)
  53. layout_mode = 2
  54.  
  55. [node name="GroupSearchInput" type="LineEdit" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. placeholder_text = "搜索"
  59.  
  60. [node name="GroupSearchButton" type="Button" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  61. layout_mode = 2
  62. icon = ExtResource("3_f5h8c")
  63.  
  64. [node name="GroupAddButton" type="Button" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  65. layout_mode = 2
  66. icon = ExtResource("4_okvq0")
  67.  
  68. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  69. layout_mode = 2
  70. size_flags_vertical = 3
  71.  
  72. [node name="GroupButton" type="Button" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  73. custom_minimum_size = Vector2(0, 100)
  74. layout_mode = 2
  75. size_flags_horizontal = 3
  76. text = "testGroup1"
  77. alignment = 0
  78. text_overrun_behavior = 3
  79.  
  80. [node name="SelectTexture" type="NinePatchRect" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/GroupButton"]
  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. texture = ExtResource("5_rcbyx")
  88. region_rect = Rect2(0, 0, 36, 36)
  89. patch_margin_left = 3
  90. patch_margin_top = 3
  91. patch_margin_right = 3
  92. patch_margin_bottom = 3
  93.  
  94. [node name="Panel2" type="Panel" parent="HBoxContainer"]
  95. layout_mode = 2
  96. size_flags_horizontal = 3
  97. size_flags_stretch_ratio = 8.0
  98.  
  99. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2"]
  100. layout_mode = 1
  101. anchors_preset = 15
  102. anchor_right = 1.0
  103. anchor_bottom = 1.0
  104. grow_horizontal = 2
  105. grow_vertical = 2
  106. theme_override_constants/margin_left = 12
  107. theme_override_constants/margin_top = 12
  108. theme_override_constants/margin_right = 12
  109. theme_override_constants/margin_bottom = 12
  110.  
  111. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Panel2/MarginContainer"]
  112. layout_mode = 2
  113.  
  114. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  115. custom_minimum_size = Vector2(0, 45)
  116. layout_mode = 2
  117.  
  118. [node name="RoomSearchInput" type="LineEdit" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  119. custom_minimum_size = Vector2(500, 0)
  120. layout_mode = 2
  121. placeholder_text = "搜索"
  122.  
  123. [node name="RoomTypeButton" type="OptionButton" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  124. custom_minimum_size = Vector2(200, 0)
  125. layout_mode = 2
  126.  
  127. [node name="RoomSearchButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  128. layout_mode = 2
  129. icon = ExtResource("3_f5h8c")
  130.  
  131. [node name="RoomAddButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  132. layout_mode = 2
  133. icon = ExtResource("4_okvq0")
  134.  
  135. [node name="RoomEditButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  136. layout_mode = 2
  137. icon = ExtResource("6_qalh0")
  138.  
  139. [node name="RoomDeleteButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  140. layout_mode = 2
  141. icon = ExtResource("7_lnry3")
  142.  
  143. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  144. layout_mode = 2
  145. size_flags_vertical = 3
  146.  
  147. [node name="RoomButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer"]
  148. custom_minimum_size = Vector2(200, 285)
  149. layout_mode = 2
  150.  
  151. [node name="PreviewImage" type="TextureRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  152. layout_mode = 1
  153. anchors_preset = 15
  154. anchor_right = 1.0
  155. anchor_bottom = 1.0
  156. offset_left = 2.0
  157. offset_top = 2.0
  158. offset_right = -2.0
  159. offset_bottom = -87.0
  160. grow_horizontal = 2
  161. grow_vertical = 2
  162. mouse_filter = 2
  163. stretch_mode = 5
  164.  
  165. [node name="RoomName" type="Label" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  166. layout_mode = 1
  167. anchors_preset = 12
  168. anchor_top = 1.0
  169. anchor_right = 1.0
  170. anchor_bottom = 1.0
  171. offset_top = -86.0
  172. offset_bottom = -43.0
  173. grow_horizontal = 2
  174. grow_vertical = 0
  175. text = "Room1"
  176. horizontal_alignment = 1
  177. clip_text = true
  178. text_overrun_behavior = 3
  179.  
  180. [node name="RoomType" type="Label" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  181. layout_mode = 1
  182. anchors_preset = 12
  183. anchor_top = 1.0
  184. anchor_right = 1.0
  185. anchor_bottom = 1.0
  186. offset_top = -43.0
  187. grow_horizontal = 2
  188. grow_vertical = 0
  189. text = "战斗"
  190. horizontal_alignment = 1
  191. clip_text = true
  192. text_overrun_behavior = 3
  193.  
  194. [node name="SelectTexture" type="NinePatchRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  195. layout_mode = 1
  196. anchors_preset = 15
  197. anchor_right = 1.0
  198. anchor_bottom = 1.0
  199. grow_horizontal = 2
  200. grow_vertical = 2
  201. texture = ExtResource("5_rcbyx")
  202. region_rect = Rect2(0, 0, 36, 36)
  203. patch_margin_left = 3
  204. patch_margin_top = 3
  205. patch_margin_right = 3
  206. patch_margin_bottom = 3
  207.  
  208. [node name="ErrorTexture" type="TextureRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  209. layout_mode = 0
  210. offset_left = 157.0
  211. offset_top = 158.0
  212. offset_right = 197.0
  213. offset_bottom = 198.0
  214. texture = ExtResource("9_xrt38")