Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorProject.tscn
  1. [gd_scene load_steps=10 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://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_f5h8c"]
  6. [ext_resource type="Texture2D" uid="uid://cgtmjuiks7mot" path="res://resource/sprite/ui/commonIcon/WaveCell.png" id="3_nx3gw"]
  7. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="4_okvq0"]
  8. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="5_rcbyx"]
  9. [ext_resource type="Texture2D" uid="uid://dggb6p4sdmfry" path="res://resource/sprite/ui/commonIcon/Edit.png" id="6_qalh0"]
  10. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="7_lnry3"]
  11. [ext_resource type="Texture2D" uid="uid://c4ltpf5a3egu1" path="res://resource/sprite/ui/commonIcon/Error_mini.png" id="9_xrt38"]
  12.  
  13. [node name="MapEditorProject" type="Control"]
  14. layout_mode = 3
  15. anchors_preset = 15
  16. anchor_right = 1.0
  17. anchor_bottom = 1.0
  18. grow_horizontal = 2
  19. grow_vertical = 2
  20. script = ExtResource("1_5aioo")
  21. metadata/_edit_horizontal_guides_ = [449.0]
  22.  
  23. [node name="Bg" type="Panel" parent="."]
  24. layout_mode = 1
  25. anchors_preset = 15
  26. anchor_right = 1.0
  27. anchor_bottom = 1.0
  28. grow_horizontal = 2
  29. grow_vertical = 2
  30.  
  31. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  32. layout_mode = 1
  33. anchors_preset = 15
  34. anchor_right = 1.0
  35. anchor_bottom = 1.0
  36. grow_horizontal = 2
  37. grow_vertical = 2
  38. theme_override_constants/separation = 0
  39.  
  40. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  41. custom_minimum_size = Vector2(0, 70)
  42. layout_mode = 2
  43.  
  44. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  45. layout_mode = 2
  46. offset_left = 2.0
  47. offset_top = 2.0
  48. offset_right = 62.0
  49. offset_bottom = 68.0
  50. size_flags_horizontal = 0
  51. icon = ExtResource("2_v0ry0")
  52. icon_alignment = 1
  53.  
  54. [node name="TileSetBtn" type="Button" parent="Bg/VBoxContainer/Head"]
  55. layout_mode = 1
  56. offset_left = 65.0
  57. offset_top = 2.0
  58. offset_right = 125.0
  59. offset_bottom = 68.0
  60. size_flags_horizontal = 0
  61. tooltip_text = "编辑图块集"
  62. icon = ExtResource("3_nx3gw")
  63. icon_alignment = 1
  64. expand_icon = true
  65.  
  66. [node name="Title" type="Label" parent="Bg/VBoxContainer/Head"]
  67. layout_mode = 1
  68. anchors_preset = 8
  69. anchor_left = 0.5
  70. anchor_top = 0.5
  71. anchor_right = 0.5
  72. anchor_bottom = 0.5
  73. offset_left = -4.5
  74. offset_top = -20.0
  75. offset_right = 4.5
  76. offset_bottom = 20.0
  77. grow_horizontal = 2
  78. grow_vertical = 2
  79. text = "房间管理器"
  80.  
  81. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  82. layout_mode = 2
  83. size_flags_vertical = 3
  84. theme_override_constants/separation = 0
  85.  
  86. [node name="Panel" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  87. layout_mode = 2
  88. size_flags_horizontal = 3
  89. size_flags_stretch_ratio = 2.0
  90.  
  91. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel"]
  92. layout_mode = 1
  93. anchors_preset = 15
  94. anchor_right = 1.0
  95. anchor_bottom = 1.0
  96. grow_horizontal = 2
  97. grow_vertical = 2
  98. theme_override_constants/margin_left = 12
  99. theme_override_constants/margin_top = 12
  100. theme_override_constants/margin_right = 12
  101. theme_override_constants/margin_bottom = 12
  102.  
  103. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer"]
  104. layout_mode = 2
  105.  
  106. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  107. custom_minimum_size = Vector2(0, 45)
  108. layout_mode = 2
  109.  
  110. [node name="GroupSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  111. layout_mode = 2
  112. size_flags_horizontal = 3
  113. placeholder_text = "搜索"
  114.  
  115. [node name="GroupSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  116. layout_mode = 2
  117. icon = ExtResource("3_f5h8c")
  118.  
  119. [node name="GroupAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  120. layout_mode = 2
  121. icon = ExtResource("4_okvq0")
  122.  
  123. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  124. layout_mode = 2
  125. size_flags_vertical = 3
  126.  
  127. [node name="GroupButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  128. custom_minimum_size = Vector2(0, 100)
  129. layout_mode = 2
  130. size_flags_horizontal = 3
  131. text = "testGroup1"
  132. alignment = 0
  133. text_overrun_behavior = 3
  134.  
  135. [node name="SelectTexture" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/GroupButton"]
  136. layout_mode = 1
  137. anchors_preset = 15
  138. anchor_right = 1.0
  139. anchor_bottom = 1.0
  140. grow_horizontal = 2
  141. grow_vertical = 2
  142. texture = ExtResource("5_rcbyx")
  143. region_rect = Rect2(0, 0, 36, 36)
  144. patch_margin_left = 3
  145. patch_margin_top = 3
  146. patch_margin_right = 3
  147. patch_margin_bottom = 3
  148.  
  149. [node name="Panel2" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  150. layout_mode = 2
  151. size_flags_horizontal = 3
  152. size_flags_stretch_ratio = 8.0
  153.  
  154. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2"]
  155. layout_mode = 1
  156. anchors_preset = 15
  157. anchor_right = 1.0
  158. anchor_bottom = 1.0
  159. grow_horizontal = 2
  160. grow_vertical = 2
  161. theme_override_constants/margin_left = 12
  162. theme_override_constants/margin_top = 12
  163. theme_override_constants/margin_right = 12
  164. theme_override_constants/margin_bottom = 12
  165.  
  166. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer"]
  167. layout_mode = 2
  168.  
  169. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  170. custom_minimum_size = Vector2(0, 45)
  171. layout_mode = 2
  172.  
  173. [node name="RoomSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  174. custom_minimum_size = Vector2(500, 0)
  175. layout_mode = 2
  176. placeholder_text = "搜索"
  177.  
  178. [node name="RoomTypeButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  179. custom_minimum_size = Vector2(200, 0)
  180. layout_mode = 2
  181.  
  182. [node name="RoomSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  183. layout_mode = 2
  184. icon = ExtResource("3_f5h8c")
  185.  
  186. [node name="RoomAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  187. layout_mode = 2
  188. icon = ExtResource("4_okvq0")
  189.  
  190. [node name="RoomEditButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  191. layout_mode = 2
  192. icon = ExtResource("6_qalh0")
  193.  
  194. [node name="RoomDeleteButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  195. layout_mode = 2
  196. icon = ExtResource("7_lnry3")
  197.  
  198. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  199. layout_mode = 2
  200. size_flags_vertical = 3
  201.  
  202. [node name="RoomButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer"]
  203. custom_minimum_size = Vector2(200, 285)
  204. layout_mode = 2
  205.  
  206. [node name="PreviewImage" type="TextureRect" parent="Bg/VBoxContainer/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. offset_left = 2.0
  212. offset_top = 2.0
  213. offset_right = -2.0
  214. offset_bottom = -87.0
  215. grow_horizontal = 2
  216. grow_vertical = 2
  217. mouse_filter = 2
  218. stretch_mode = 5
  219.  
  220. [node name="RoomName" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  221. layout_mode = 1
  222. anchors_preset = 12
  223. anchor_top = 1.0
  224. anchor_right = 1.0
  225. anchor_bottom = 1.0
  226. offset_top = -86.0
  227. offset_bottom = -43.0
  228. grow_horizontal = 2
  229. grow_vertical = 0
  230. text = "Room1"
  231. horizontal_alignment = 1
  232. clip_text = true
  233. text_overrun_behavior = 3
  234.  
  235. [node name="RoomType" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  236. layout_mode = 1
  237. anchors_preset = 12
  238. anchor_top = 1.0
  239. anchor_right = 1.0
  240. anchor_bottom = 1.0
  241. offset_top = -43.0
  242. grow_horizontal = 2
  243. grow_vertical = 0
  244. text = "战斗"
  245. horizontal_alignment = 1
  246. clip_text = true
  247. text_overrun_behavior = 3
  248.  
  249. [node name="SelectTexture" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  250. layout_mode = 1
  251. anchors_preset = 15
  252. anchor_right = 1.0
  253. anchor_bottom = 1.0
  254. grow_horizontal = 2
  255. grow_vertical = 2
  256. texture = ExtResource("5_rcbyx")
  257. region_rect = Rect2(0, 0, 36, 36)
  258. patch_margin_left = 3
  259. patch_margin_top = 3
  260. patch_margin_right = 3
  261. patch_margin_bottom = 3
  262.  
  263. [node name="ErrorTexture" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  264. layout_mode = 0
  265. offset_left = 157.0
  266. offset_top = 158.0
  267. offset_right = 197.0
  268. offset_bottom = 198.0
  269. texture = ExtResource("9_xrt38")