Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapTile.tscn
@小李xl 小李xl on 20 Jan 2024 8 KB TileSet导入Image面板, 开发中
  1. [gd_scene load_steps=8 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. [ext_resource type="Texture2D" uid="uid://c4ltpf5a3egu1" path="res://resource/sprite/ui/commonIcon/Error_mini.png" id="6_u35dn"]
  10.  
  11. [node name="MapEditorMapTile" 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_gtth6")
  19. Layer = null
  20.  
  21. [node name="VBoxContainer" type="VBoxContainer" 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.  
  29. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  30. layout_mode = 2
  31.  
  32. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  33. custom_minimum_size = Vector2(200, 0)
  34. layout_mode = 2
  35. text = "资源:"
  36.  
  37. [node name="SourceOption" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
  38. layout_mode = 2
  39. size_flags_horizontal = 3
  40.  
  41. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  42. layout_mode = 2
  43.  
  44. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
  45. custom_minimum_size = Vector2(200, 0)
  46. layout_mode = 2
  47. text = "笔刷类型:"
  48.  
  49. [node name="HandleOption" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
  50. layout_mode = 2
  51. size_flags_horizontal = 3
  52. item_count = 3
  53. selected = 0
  54. popup/item_0/text = "自由绘制"
  55. popup/item_0/id = 0
  56. popup/item_1/text = "地形绘制"
  57. popup/item_1/id = 1
  58. popup/item_2/text = "组合绘制"
  59. popup/item_2/id = 2
  60.  
  61. [node name="Panel" type="Panel" parent="VBoxContainer"]
  62. layout_mode = 2
  63. size_flags_vertical = 3
  64.  
  65. [node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/Panel"]
  66. layout_mode = 1
  67. anchors_preset = 15
  68. anchor_right = 1.0
  69. anchor_bottom = 1.0
  70. grow_horizontal = 2
  71. grow_vertical = 2
  72. theme_override_constants/margin_left = 2
  73. theme_override_constants/margin_top = 2
  74. theme_override_constants/margin_right = 2
  75. theme_override_constants/margin_bottom = 2
  76.  
  77. [node name="Tab1" type="ColorRect" parent="VBoxContainer/Panel/MarginContainer"]
  78. visible = false
  79. clip_children = 2
  80. layout_mode = 2
  81. color = Color(0.145098, 0.145098, 0.145098, 1)
  82. script = ExtResource("2_5c2no")
  83.  
  84. [node name="TabRoot" type="Control" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  85. layout_mode = 1
  86. anchors_preset = 8
  87. anchor_left = 0.5
  88. anchor_top = 0.5
  89. anchor_right = 0.5
  90. anchor_bottom = 0.5
  91. offset_left = -0.5
  92. offset_top = -0.5
  93. offset_right = 0.5
  94. offset_bottom = 0.5
  95. grow_horizontal = 2
  96. grow_vertical = 2
  97. mouse_filter = 2
  98.  
  99. [node name="TileSprite" type="Sprite2D" parent="VBoxContainer/Panel/MarginContainer/Tab1/TabRoot"]
  100. centered = false
  101.  
  102. [node name="Brush" type="Control" parent="VBoxContainer/Panel/MarginContainer/Tab1/TabRoot"]
  103. layout_mode = 1
  104. anchors_preset = 15
  105. anchor_right = 1.0
  106. anchor_bottom = 1.0
  107. grow_horizontal = 2
  108. grow_vertical = 2
  109. mouse_filter = 2
  110.  
  111. [node name="Grid" type="ColorRect" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  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. mouse_filter = 2
  119. color = Color(1, 1, 1, 0)
  120.  
  121. [node name="FocusBtn" type="TextureButton" parent="VBoxContainer/Panel/MarginContainer/Tab1"]
  122. layout_mode = 1
  123. anchors_preset = 1
  124. anchor_left = 1.0
  125. anchor_right = 1.0
  126. offset_left = -79.0
  127. offset_top = 14.0
  128. offset_right = -15.0
  129. offset_bottom = 78.0
  130. grow_horizontal = 0
  131. tooltip_text = "聚焦"
  132. texture_normal = ExtResource("3_sibps")
  133. ignore_texture_size = true
  134. stretch_mode = 5
  135.  
  136. [node name="Tab2" type="Control" parent="VBoxContainer/Panel/MarginContainer"]
  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, 100)
  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 = 15
  169. anchor_right = 1.0
  170. anchor_bottom = 1.0
  171. offset_left = 104.0
  172. grow_horizontal = 2
  173. grow_vertical = 2
  174. text = "Name
  175. 2x2"
  176. vertical_alignment = 1
  177.  
  178. [node name="ErrorIcon" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  179. layout_mode = 1
  180. anchors_preset = 6
  181. anchor_left = 1.0
  182. anchor_top = 0.5
  183. anchor_right = 1.0
  184. anchor_bottom = 0.5
  185. offset_left = -46.0
  186. offset_top = -20.0
  187. offset_right = -6.0
  188. offset_bottom = 20.0
  189. grow_horizontal = 0
  190. grow_vertical = 2
  191. mouse_filter = 2
  192. texture = ExtResource("6_u35dn")
  193.  
  194. [node name="TerrainPreview" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  195. layout_mode = 1
  196. anchors_preset = 9
  197. anchor_bottom = 1.0
  198. offset_left = 3.0
  199. offset_top = 3.0
  200. offset_right = 97.0
  201. offset_bottom = -3.0
  202. grow_vertical = 2
  203. expand_mode = 2
  204. stretch_mode = 5
  205.  
  206. [node name="Tab3" type="Control" parent="VBoxContainer/Panel/MarginContainer"]
  207. visible = false
  208. layout_mode = 2
  209. script = ExtResource("5_ty17f")
  210.  
  211. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/Panel/MarginContainer/Tab3"]
  212. layout_mode = 1
  213. anchors_preset = 15
  214. anchor_right = 1.0
  215. anchor_bottom = 1.0
  216. grow_horizontal = 2
  217. grow_vertical = 2
  218.  
  219. [node name="CellButton" type="Button" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer"]
  220. custom_minimum_size = Vector2(120, 170)
  221. layout_mode = 2
  222.  
  223. [node name="PreviewImage" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  224. layout_mode = 1
  225. anchors_preset = 15
  226. anchor_right = 1.0
  227. anchor_bottom = 1.0
  228. offset_left = 2.0
  229. offset_top = 2.0
  230. offset_right = -2.0
  231. offset_bottom = -52.0
  232. grow_horizontal = 2
  233. grow_vertical = 2
  234. mouse_filter = 2
  235. expand_mode = 2
  236. stretch_mode = 5
  237.  
  238. [node name="CellName" type="Label" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  239. layout_mode = 1
  240. anchors_preset = 12
  241. anchor_top = 1.0
  242. anchor_right = 1.0
  243. anchor_bottom = 1.0
  244. offset_top = -52.0
  245. grow_horizontal = 2
  246. grow_vertical = 0
  247. theme_override_font_sizes/font_size = 16
  248. text = "名称"
  249. horizontal_alignment = 1
  250. vertical_alignment = 1
  251. autowrap_mode = 2
  252. clip_text = true
  253. text_overrun_behavior = 2
  254.  
  255. [node name="SelectTexture" type="NinePatchRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  256. layout_mode = 1
  257. anchors_preset = 15
  258. anchor_right = 1.0
  259. anchor_bottom = 1.0
  260. grow_horizontal = 2
  261. grow_vertical = 2
  262. texture = ExtResource("5_f4thw")
  263. region_rect = Rect2(0, 0, 36, 36)
  264. patch_margin_left = 3
  265. patch_margin_top = 3
  266. patch_margin_right = 3
  267. patch_margin_bottom = 3
  268.  
  269. [node name="MaskBg" type="ColorRect" parent="."]
  270. layout_mode = 1
  271. anchors_preset = 15
  272. anchor_right = 1.0
  273. anchor_bottom = 1.0
  274. grow_horizontal = 2
  275. grow_vertical = 2
  276. color = Color(0, 0, 0, 0.862745)
  277.  
  278. [node name="Label" type="Label" parent="MaskBg"]
  279. layout_mode = 1
  280. anchors_preset = 15
  281. anchor_right = 1.0
  282. anchor_bottom = 1.0
  283. grow_horizontal = 2
  284. grow_vertical = 2
  285. text = "选中地板层时不能使用自定义图块"
  286. horizontal_alignment = 1
  287. vertical_alignment = 1
  288. autowrap_mode = 1