Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapTile.tscn
@小李xl 小李xl on 17 Jan 2024 7 KB TileMap读取组合数据
  1. [gd_scene load_steps=7 format=3 uid="uid://tjbfj67t5akm"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapTile/MapEditorMapTilePanel.cs" id="1_gtth6"]
  4. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapTile/FreeTileTab.cs" id="2_5c2no"]
  5. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="3_sibps"]
  6. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapTile/TerrainTileTab.cs" id="4_jxcal"]
  7. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="5_f4thw"]
  8. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapTile/CombinationTileTab.cs" id="5_ty17f"]
  9.  
  10. [node name="MapEditorMapTile" type="Control"]
  11. layout_mode = 3
  12. anchors_preset = 15
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. script = ExtResource("1_gtth6")
  18. Layer = null
  19.  
  20. [node name="VBoxContainer" type="VBoxContainer" 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.  
  28. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  29. layout_mode = 2
  30.  
  31. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  32. custom_minimum_size = Vector2(200, 0)
  33. layout_mode = 2
  34. text = "资源:"
  35.  
  36. [node name="SourceOption" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
  37. layout_mode = 2
  38. size_flags_horizontal = 3
  39.  
  40. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  41. layout_mode = 2
  42.  
  43. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
  44. custom_minimum_size = Vector2(200, 0)
  45. layout_mode = 2
  46. text = "笔刷类型:"
  47.  
  48. [node name="HandleOption" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
  49. layout_mode = 2
  50. size_flags_horizontal = 3
  51. item_count = 3
  52. selected = 0
  53. popup/item_0/text = "自由绘制"
  54. popup/item_0/id = 0
  55. popup/item_1/text = "地形绘制"
  56. popup/item_1/id = 1
  57. popup/item_2/text = "组合绘制"
  58. popup/item_2/id = 2
  59.  
  60. [node name="Panel" type="Panel" parent="VBoxContainer"]
  61. layout_mode = 2
  62. size_flags_vertical = 3
  63.  
  64. [node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/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 = 2
  72. theme_override_constants/margin_top = 2
  73. theme_override_constants/margin_right = 2
  74. theme_override_constants/margin_bottom = 2
  75.  
  76. [node name="Tab1" type="ColorRect" parent="VBoxContainer/Panel/MarginContainer"]
  77. visible = false
  78. clip_children = 2
  79. layout_mode = 2
  80. color = Color(0.145098, 0.145098, 0.145098, 1)
  81. script = ExtResource("2_5c2no")
  82.  
  83. [node name="TabRoot" type="Control" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  84. layout_mode = 1
  85. anchors_preset = 8
  86. anchor_left = 0.5
  87. anchor_top = 0.5
  88. anchor_right = 0.5
  89. anchor_bottom = 0.5
  90. offset_left = -0.5
  91. offset_top = -0.5
  92. offset_right = 0.5
  93. offset_bottom = 0.5
  94. grow_horizontal = 2
  95. grow_vertical = 2
  96. mouse_filter = 2
  97.  
  98. [node name="TileSprite" type="Sprite2D" parent="VBoxContainer/Panel/MarginContainer/Tab1/TabRoot"]
  99. centered = false
  100.  
  101. [node name="Brush" type="Control" parent="VBoxContainer/Panel/MarginContainer/Tab1/TabRoot"]
  102. layout_mode = 1
  103. anchors_preset = 15
  104. anchor_right = 1.0
  105. anchor_bottom = 1.0
  106. grow_horizontal = 2
  107. grow_vertical = 2
  108. mouse_filter = 2
  109.  
  110. [node name="Grid" type="ColorRect" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  111. layout_mode = 1
  112. anchors_preset = 15
  113. anchor_right = 1.0
  114. anchor_bottom = 1.0
  115. grow_horizontal = 2
  116. grow_vertical = 2
  117. mouse_filter = 2
  118. color = Color(1, 1, 1, 0)
  119.  
  120. [node name="FocusBtn" type="TextureButton" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  121. layout_mode = 1
  122. anchors_preset = 1
  123. anchor_left = 1.0
  124. anchor_right = 1.0
  125. offset_left = -79.0
  126. offset_top = 14.0
  127. offset_right = -15.0
  128. offset_bottom = 78.0
  129. grow_horizontal = 0
  130. tooltip_text = "聚焦"
  131. texture_normal = ExtResource("3_sibps")
  132. ignore_texture_size = true
  133. stretch_mode = 5
  134.  
  135. [node name="Tab2" type="Control" parent="VBoxContainer/Panel/MarginContainer"]
  136. visible = false
  137. layout_mode = 2
  138. script = ExtResource("4_jxcal")
  139.  
  140. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/Panel/MarginContainer/Tab2"]
  141. layout_mode = 1
  142. anchors_preset = 15
  143. anchor_right = 1.0
  144. anchor_bottom = 1.0
  145. grow_horizontal = 2
  146. grow_vertical = 2
  147.  
  148. [node name="TerrainItem" type="Button" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer"]
  149. custom_minimum_size = Vector2(0, 400)
  150. layout_mode = 2
  151. size_flags_horizontal = 3
  152.  
  153. [node name="Select" type="NinePatchRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  154. layout_mode = 1
  155. anchors_preset = 15
  156. anchor_right = 1.0
  157. anchor_bottom = 1.0
  158. grow_horizontal = 2
  159. grow_vertical = 2
  160. texture = ExtResource("5_f4thw")
  161. patch_margin_left = 3
  162. patch_margin_top = 3
  163. patch_margin_right = 3
  164. patch_margin_bottom = 3
  165.  
  166. [node name="TerrainName" type="Label" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  167. layout_mode = 1
  168. anchors_preset = 10
  169. anchor_right = 1.0
  170. offset_top = 3.0
  171. offset_bottom = 43.0
  172. grow_horizontal = 2
  173. text = "Name"
  174. horizontal_alignment = 1
  175. vertical_alignment = 1
  176.  
  177. [node name="TerrainPreview" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  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_left = 3.0
  184. offset_top = -357.0
  185. offset_right = -3.0
  186. offset_bottom = -3.0
  187. grow_horizontal = 2
  188. grow_vertical = 0
  189. expand_mode = 2
  190. stretch_mode = 5
  191.  
  192. [node name="Tab3" type="Control" parent="VBoxContainer/Panel/MarginContainer"]
  193. layout_mode = 2
  194. script = ExtResource("5_ty17f")
  195.  
  196. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/Panel/MarginContainer/Tab3"]
  197. layout_mode = 1
  198. anchors_preset = 15
  199. anchor_right = 1.0
  200. anchor_bottom = 1.0
  201. grow_horizontal = 2
  202. grow_vertical = 2
  203.  
  204. [node name="CellButton" type="Button" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer"]
  205. custom_minimum_size = Vector2(120, 170)
  206. layout_mode = 2
  207.  
  208. [node name="PreviewImage" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  209. layout_mode = 1
  210. anchors_preset = 15
  211. anchor_right = 1.0
  212. anchor_bottom = 1.0
  213. offset_left = 2.0
  214. offset_top = 2.0
  215. offset_right = -2.0
  216. offset_bottom = -52.0
  217. grow_horizontal = 2
  218. grow_vertical = 2
  219. mouse_filter = 2
  220. expand_mode = 2
  221. stretch_mode = 5
  222.  
  223. [node name="CellName" type="Label" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  224. layout_mode = 1
  225. anchors_preset = 12
  226. anchor_top = 1.0
  227. anchor_right = 1.0
  228. anchor_bottom = 1.0
  229. offset_top = -52.0
  230. grow_horizontal = 2
  231. grow_vertical = 0
  232. theme_override_font_sizes/font_size = 16
  233. text = "名称"
  234. horizontal_alignment = 1
  235. vertical_alignment = 1
  236. autowrap_mode = 2
  237. clip_text = true
  238. text_overrun_behavior = 2
  239.  
  240. [node name="SelectTexture" type="NinePatchRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  241. layout_mode = 1
  242. anchors_preset = 15
  243. anchor_right = 1.0
  244. anchor_bottom = 1.0
  245. grow_horizontal = 2
  246. grow_vertical = 2
  247. texture = ExtResource("5_f4thw")
  248. region_rect = Rect2(0, 0, 36, 36)
  249. patch_margin_left = 3
  250. patch_margin_top = 3
  251. patch_margin_right = 3
  252. patch_margin_bottom = 3