Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorProject.tscn
@小李xl 小李xl on 2 Sep 2023 8 KB 保存房间预览图, 开发中
  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://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. [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="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  55. layout_mode = 2
  56. size_flags_vertical = 3
  57. theme_override_constants/separation = 0
  58.  
  59. [node name="Panel" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  60. layout_mode = 2
  61. size_flags_horizontal = 3
  62. size_flags_stretch_ratio = 2.0
  63.  
  64. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel"]
  65. layout_mode = 1
  66. anchors_preset = 15
  67. anchor_right = 1.0
  68. anchor_bottom = 1.0
  69. grow_horizontal = 2
  70. grow_vertical = 2
  71. theme_override_constants/margin_left = 12
  72. theme_override_constants/margin_top = 12
  73. theme_override_constants/margin_right = 12
  74. theme_override_constants/margin_bottom = 12
  75.  
  76. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer"]
  77. layout_mode = 2
  78.  
  79. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  80. custom_minimum_size = Vector2(0, 45)
  81. layout_mode = 2
  82.  
  83. [node name="GroupSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  84. layout_mode = 2
  85. size_flags_horizontal = 3
  86. placeholder_text = "搜索"
  87.  
  88. [node name="GroupSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  89. layout_mode = 2
  90. icon = ExtResource("3_f5h8c")
  91.  
  92. [node name="GroupAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  93. layout_mode = 2
  94. icon = ExtResource("4_okvq0")
  95.  
  96. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  97. layout_mode = 2
  98. size_flags_vertical = 3
  99.  
  100. [node name="GroupButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  101. custom_minimum_size = Vector2(0, 100)
  102. layout_mode = 2
  103. size_flags_horizontal = 3
  104. text = "testGroup1"
  105. alignment = 0
  106. text_overrun_behavior = 3
  107.  
  108. [node name="SelectTexture" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/GroupButton"]
  109. layout_mode = 1
  110. anchors_preset = 15
  111. anchor_right = 1.0
  112. anchor_bottom = 1.0
  113. grow_horizontal = 2
  114. grow_vertical = 2
  115. texture = ExtResource("5_rcbyx")
  116. region_rect = Rect2(0, 0, 36, 36)
  117. patch_margin_left = 3
  118. patch_margin_top = 3
  119. patch_margin_right = 3
  120. patch_margin_bottom = 3
  121.  
  122. [node name="Panel2" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  123. layout_mode = 2
  124. size_flags_horizontal = 3
  125. size_flags_stretch_ratio = 8.0
  126.  
  127. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2"]
  128. layout_mode = 1
  129. anchors_preset = 15
  130. anchor_right = 1.0
  131. anchor_bottom = 1.0
  132. grow_horizontal = 2
  133. grow_vertical = 2
  134. theme_override_constants/margin_left = 12
  135. theme_override_constants/margin_top = 12
  136. theme_override_constants/margin_right = 12
  137. theme_override_constants/margin_bottom = 12
  138.  
  139. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer"]
  140. layout_mode = 2
  141.  
  142. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  143. custom_minimum_size = Vector2(0, 45)
  144. layout_mode = 2
  145.  
  146. [node name="RoomSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  147. custom_minimum_size = Vector2(500, 0)
  148. layout_mode = 2
  149. placeholder_text = "搜索"
  150.  
  151. [node name="RoomTypeButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  152. custom_minimum_size = Vector2(200, 0)
  153. layout_mode = 2
  154.  
  155. [node name="RoomSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  156. layout_mode = 2
  157. icon = ExtResource("3_f5h8c")
  158.  
  159. [node name="RoomAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  160. layout_mode = 2
  161. icon = ExtResource("4_okvq0")
  162.  
  163. [node name="RoomEditButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  164. layout_mode = 2
  165. icon = ExtResource("6_qalh0")
  166.  
  167. [node name="RoomDeleteButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/HBoxContainer"]
  168. layout_mode = 2
  169. icon = ExtResource("7_lnry3")
  170.  
  171. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer"]
  172. layout_mode = 2
  173. size_flags_vertical = 3
  174.  
  175. [node name="RoomButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer"]
  176. custom_minimum_size = Vector2(200, 285)
  177. layout_mode = 2
  178.  
  179. [node name="PreviewImage" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  180. layout_mode = 1
  181. anchors_preset = 15
  182. anchor_right = 1.0
  183. anchor_bottom = 1.0
  184. offset_left = 2.0
  185. offset_top = 2.0
  186. offset_right = -2.0
  187. offset_bottom = -87.0
  188. grow_horizontal = 2
  189. grow_vertical = 2
  190. mouse_filter = 2
  191. texture = ExtResource("2_xh3iw")
  192. stretch_mode = 5
  193.  
  194. [node name="RoomName" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  195. layout_mode = 1
  196. anchors_preset = 12
  197. anchor_top = 1.0
  198. anchor_right = 1.0
  199. anchor_bottom = 1.0
  200. offset_top = -86.0
  201. offset_bottom = -43.0
  202. grow_horizontal = 2
  203. grow_vertical = 0
  204. text = "Room1"
  205. horizontal_alignment = 1
  206. clip_text = true
  207. text_overrun_behavior = 3
  208.  
  209. [node name="RoomType" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  210. layout_mode = 1
  211. anchors_preset = 12
  212. anchor_top = 1.0
  213. anchor_right = 1.0
  214. anchor_bottom = 1.0
  215. offset_top = -43.0
  216. grow_horizontal = 2
  217. grow_vertical = 0
  218. text = "战斗"
  219. horizontal_alignment = 1
  220. clip_text = true
  221. text_overrun_behavior = 3
  222.  
  223. [node name="SelectTexture" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  224. layout_mode = 1
  225. anchors_preset = 15
  226. anchor_right = 1.0
  227. anchor_bottom = 1.0
  228. grow_horizontal = 2
  229. grow_vertical = 2
  230. texture = ExtResource("5_rcbyx")
  231. region_rect = Rect2(0, 0, 36, 36)
  232. patch_margin_left = 3
  233. patch_margin_top = 3
  234. patch_margin_right = 3
  235. patch_margin_bottom = 3
  236.  
  237. [node name="ErrorTexture" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/Panel2/MarginContainer/VBoxContainer/ScrollContainer/RoomButton"]
  238. layout_mode = 0
  239. offset_left = 157.0
  240. offset_top = 158.0
  241. offset_right = 197.0
  242. offset_bottom = 198.0
  243. texture = ExtResource("9_xrt38")