Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapTile.tscn
@小李xl 小李xl on 11 Mar 2024 7 KB 制作图鉴
  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.  
  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. layout_mode = 2
  137. script = ExtResource("4_jxcal")
  138.  
  139. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/Panel/MarginContainer/Tab2"]
  140. layout_mode = 1
  141. anchors_preset = 15
  142. anchor_right = 1.0
  143. anchor_bottom = 1.0
  144. grow_horizontal = 2
  145. grow_vertical = 2
  146.  
  147. [node name="TerrainItem" type="Button" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer"]
  148. custom_minimum_size = Vector2(0, 100)
  149. layout_mode = 2
  150. size_flags_horizontal = 3
  151.  
  152. [node name="Select" type="NinePatchRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  153. layout_mode = 1
  154. anchors_preset = 15
  155. anchor_right = 1.0
  156. anchor_bottom = 1.0
  157. grow_horizontal = 2
  158. grow_vertical = 2
  159. texture = ExtResource("5_f4thw")
  160. patch_margin_left = 4
  161. patch_margin_top = 4
  162. patch_margin_right = 4
  163. patch_margin_bottom = 4
  164.  
  165. [node name="TerrainName" type="Label" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  166. layout_mode = 1
  167. anchors_preset = 15
  168. anchor_right = 1.0
  169. anchor_bottom = 1.0
  170. offset_left = 104.0
  171. grow_horizontal = 2
  172. grow_vertical = 2
  173. text = "Name
  174. 2x2"
  175. vertical_alignment = 1
  176.  
  177. [node name="ErrorIcon" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  178. layout_mode = 1
  179. anchors_preset = 6
  180. anchor_left = 1.0
  181. anchor_top = 0.5
  182. anchor_right = 1.0
  183. anchor_bottom = 0.5
  184. offset_left = -46.0
  185. offset_top = -20.0
  186. offset_right = -6.0
  187. offset_bottom = 20.0
  188. grow_horizontal = 0
  189. grow_vertical = 2
  190. mouse_filter = 2
  191. texture = ExtResource("6_u35dn")
  192.  
  193. [node name="TerrainPreview" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab2/ScrollContainer/TerrainItem"]
  194. layout_mode = 1
  195. anchors_preset = 9
  196. anchor_bottom = 1.0
  197. offset_left = 3.0
  198. offset_top = 3.0
  199. offset_right = 97.0
  200. offset_bottom = -3.0
  201. grow_vertical = 2
  202. expand_mode = 2
  203. stretch_mode = 5
  204.  
  205. [node name="Tab3" type="Control" parent="VBoxContainer/Panel/MarginContainer"]
  206. visible = false
  207. layout_mode = 2
  208. script = ExtResource("5_ty17f")
  209.  
  210. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/Panel/MarginContainer/Tab3"]
  211. layout_mode = 1
  212. anchors_preset = 15
  213. anchor_right = 1.0
  214. anchor_bottom = 1.0
  215. grow_horizontal = 2
  216. grow_vertical = 2
  217.  
  218. [node name="CellButton" type="Button" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer"]
  219. custom_minimum_size = Vector2(120, 170)
  220. layout_mode = 2
  221.  
  222. [node name="PreviewImage" type="TextureRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  223. layout_mode = 1
  224. anchors_preset = 15
  225. anchor_right = 1.0
  226. anchor_bottom = 1.0
  227. offset_left = 2.0
  228. offset_top = 2.0
  229. offset_right = -2.0
  230. offset_bottom = -52.0
  231. grow_horizontal = 2
  232. grow_vertical = 2
  233. mouse_filter = 2
  234. expand_mode = 2
  235. stretch_mode = 5
  236.  
  237. [node name="CellName" type="Label" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  238. layout_mode = 1
  239. anchors_preset = 12
  240. anchor_top = 1.0
  241. anchor_right = 1.0
  242. anchor_bottom = 1.0
  243. offset_top = -52.0
  244. grow_horizontal = 2
  245. grow_vertical = 0
  246. theme_override_font_sizes/font_size = 16
  247. text = "名称"
  248. horizontal_alignment = 1
  249. vertical_alignment = 1
  250. autowrap_mode = 2
  251. clip_text = true
  252. text_overrun_behavior = 2
  253.  
  254. [node name="SelectTexture" type="NinePatchRect" parent="VBoxContainer/Panel/MarginContainer/Tab3/ScrollContainer/CellButton"]
  255. layout_mode = 1
  256. anchors_preset = 15
  257. anchor_right = 1.0
  258. anchor_bottom = 1.0
  259. grow_horizontal = 2
  260. grow_vertical = 2
  261. texture = ExtResource("5_f4thw")
  262. region_rect = Rect2(0, 0, 36, 36)
  263. patch_margin_left = 4
  264. patch_margin_top = 4
  265. patch_margin_right = 4
  266. patch_margin_bottom = 4
  267.  
  268. [node name="MaskBg" type="ColorRect" parent="."]
  269. layout_mode = 1
  270. anchors_preset = 15
  271. anchor_right = 1.0
  272. anchor_bottom = 1.0
  273. grow_horizontal = 2
  274. grow_vertical = 2
  275. color = Color(0, 0, 0, 0.862745)
  276.  
  277. [node name="Label" type="Label" parent="MaskBg"]
  278. layout_mode = 1
  279. anchors_preset = 15
  280. anchor_right = 1.0
  281. anchor_bottom = 1.0
  282. grow_horizontal = 2
  283. grow_vertical = 2
  284. text = "选中地板层时不能使用自定义图块"
  285. horizontal_alignment = 1
  286. vertical_alignment = 1
  287. autowrap_mode = 1