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