Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditor.tscn
  1. [gd_scene load_steps=15 format=3 uid="uid://csbxfkdupsckv"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditor/MapEditorPanel.cs" id="1_5s7a0"]
  4. [ext_resource type="Texture2D" uid="uid://cajcnlimvoxk" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_gkcw7"]
  5. [ext_resource type="Texture2D" uid="uid://cat35d7ueu7gu" path="res://resource/sprite/ui/commonIcon/Save.png" id="3_qq8k4"]
  6. [ext_resource type="Texture2D" uid="uid://7l7aqhsaexoh" path="res://resource/sprite/ui/commonIcon/Play.png" id="4_2imnr"]
  7. [ext_resource type="Texture2D" uid="uid://0878uloew5jo" path="res://resource/sprite/ui/commonIcon/Block.png" id="4_465u2"]
  8. [ext_resource type="Script" path="res://src/game/ui/mapEditor/tileView/EditorTileMap.cs" id="4_mhy1a"]
  9. [ext_resource type="Texture2D" uid="uid://bpbfjyj6258da" path="res://resource/sprite/ui/commonIcon/Setting.png" id="5_ubl8b"]
  10. [ext_resource type="PackedScene" uid="uid://b4u66mxndxbrg" path="res://prefab/ui/MapEditorTools.tscn" id="6_7pvgu"]
  11. [ext_resource type="PackedScene" uid="uid://bb2ekkpxifd7g" path="res://prefab/ui/MapEditorMapLayer.tscn" id="7_ychtn"]
  12. [ext_resource type="PackedScene" uid="uid://peo0n8bl15y5" path="res://prefab/ui/MapEditorMapMark.tscn" id="8_8tgeu"]
  13.  
  14. [sub_resource type="NavigationPolygon" id="NavigationPolygon_oidah"]
  15. resource_local_to_scene = true
  16. source_geometry_mode = 1
  17. source_geometry_group_name = &"navigation"
  18. cell_size = 4.0
  19.  
  20. [sub_resource type="Animation" id="Animation_o3btm"]
  21. length = 0.001
  22. tracks/0/type = "value"
  23. tracks/0/imported = false
  24. tracks/0/enabled = true
  25. tracks/0/path = NodePath(".:visible")
  26. tracks/0/interp = 1
  27. tracks/0/loop_wrap = true
  28. tracks/0/keys = {
  29. "times": PackedFloat32Array(0),
  30. "transitions": PackedFloat32Array(1),
  31. "update": 1,
  32. "values": [false]
  33. }
  34. tracks/1/type = "value"
  35. tracks/1/imported = false
  36. tracks/1/enabled = true
  37. tracks/1/path = NodePath(".:modulate")
  38. tracks/1/interp = 1
  39. tracks/1/loop_wrap = true
  40. tracks/1/keys = {
  41. "times": PackedFloat32Array(0),
  42. "transitions": PackedFloat32Array(1),
  43. "update": 0,
  44. "values": [Color(1, 0, 0, 0)]
  45. }
  46.  
  47. [sub_resource type="Animation" id="Animation_wnqg6"]
  48. resource_name = "show"
  49. length = 2.0
  50. loop_mode = 1
  51. tracks/0/type = "value"
  52. tracks/0/imported = false
  53. tracks/0/enabled = true
  54. tracks/0/path = NodePath(".:visible")
  55. tracks/0/interp = 1
  56. tracks/0/loop_wrap = true
  57. tracks/0/keys = {
  58. "times": PackedFloat32Array(0),
  59. "transitions": PackedFloat32Array(1),
  60. "update": 1,
  61. "values": [true]
  62. }
  63. tracks/1/type = "value"
  64. tracks/1/imported = false
  65. tracks/1/enabled = true
  66. tracks/1/path = NodePath(".:modulate")
  67. tracks/1/interp = 1
  68. tracks/1/loop_wrap = true
  69. tracks/1/keys = {
  70. "times": PackedFloat32Array(0, 0.3, 0.6, 2),
  71. "transitions": PackedFloat32Array(1, 1, 1, 1),
  72. "update": 0,
  73. "values": [Color(1, 0, 0, 0), Color(1, 0, 0, 0.490196), Color(1, 0, 0, 0.490196), Color(1, 0, 0, 0)]
  74. }
  75.  
  76. [sub_resource type="AnimationLibrary" id="AnimationLibrary_371oi"]
  77. _data = {
  78. "RESET": SubResource("Animation_o3btm"),
  79. "show": SubResource("Animation_wnqg6")
  80. }
  81.  
  82. [node name="MapEditor" type="Control"]
  83. layout_mode = 3
  84. anchors_preset = 15
  85. anchor_right = 1.0
  86. anchor_bottom = 1.0
  87. grow_horizontal = 2
  88. grow_vertical = 2
  89. script = ExtResource("1_5s7a0")
  90.  
  91. [node name="Bg" type="Panel" parent="."]
  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.  
  99. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  100. layout_mode = 1
  101. anchors_preset = 15
  102. anchor_right = 1.0
  103. anchor_bottom = 1.0
  104. grow_horizontal = 2
  105. grow_vertical = 2
  106.  
  107. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  108. custom_minimum_size = Vector2(0, 70)
  109. layout_mode = 2
  110.  
  111. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  112. layout_mode = 2
  113. offset_left = 2.0
  114. offset_top = 2.0
  115. offset_right = 62.0
  116. offset_bottom = 68.0
  117. grow_vertical = 2
  118. size_flags_horizontal = 0
  119. icon = ExtResource("2_gkcw7")
  120. icon_alignment = 1
  121.  
  122. [node name="Save" type="Button" parent="Bg/VBoxContainer/Head"]
  123. layout_mode = 2
  124. offset_left = 64.0
  125. offset_top = 2.0
  126. offset_right = 124.0
  127. offset_bottom = 68.0
  128. grow_vertical = 2
  129. size_flags_horizontal = 0
  130. icon = ExtResource("3_qq8k4")
  131. icon_alignment = 1
  132.  
  133. [node name="Title" type="Label" parent="Bg/VBoxContainer/Head"]
  134. layout_mode = 0
  135. offset_left = 136.0
  136. offset_top = 2.0
  137. offset_right = 272.0
  138. offset_bottom = 68.0
  139. text = "正在编辑"
  140. vertical_alignment = 1
  141.  
  142. [node name="Play" type="Button" parent="Bg/VBoxContainer/Head"]
  143. layout_mode = 1
  144. anchors_preset = 5
  145. anchor_left = 0.5
  146. anchor_right = 0.5
  147. offset_left = -61.0
  148. offset_top = 2.0
  149. offset_right = -1.0
  150. offset_bottom = 68.0
  151. grow_horizontal = 2
  152. size_flags_horizontal = 0
  153. icon = ExtResource("4_2imnr")
  154. icon_alignment = 1
  155.  
  156. [node name="PlaySetting" type="Button" parent="Bg/VBoxContainer/Head"]
  157. layout_mode = 1
  158. anchors_preset = 5
  159. anchor_left = 0.5
  160. anchor_right = 0.5
  161. offset_left = 1.0
  162. offset_top = 2.0
  163. offset_right = 61.0
  164. offset_bottom = 68.0
  165. grow_horizontal = 2
  166. size_flags_horizontal = 0
  167. icon = ExtResource("5_ubl8b")
  168. icon_alignment = 1
  169.  
  170. [node name="HSplitContainer" type="HSplitContainer" parent="Bg/VBoxContainer"]
  171. layout_mode = 2
  172. size_flags_vertical = 3
  173.  
  174. [node name="Left" type="Panel" parent="Bg/VBoxContainer/HSplitContainer"]
  175. custom_minimum_size = Vector2(1000, 0)
  176. layout_mode = 2
  177. size_flags_horizontal = 3
  178. size_flags_stretch_ratio = 7.0
  179.  
  180. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HSplitContainer/Left"]
  181. layout_mode = 1
  182. anchors_preset = 15
  183. anchor_right = 1.0
  184. anchor_bottom = 1.0
  185. grow_horizontal = 2
  186. grow_vertical = 2
  187. theme_override_constants/margin_left = 2
  188. theme_override_constants/margin_top = 2
  189. theme_override_constants/margin_right = 2
  190. theme_override_constants/margin_bottom = 2
  191.  
  192. [node name="MapView" type="SubViewportContainer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer"]
  193. layout_mode = 2
  194.  
  195. [node name="SubViewport" type="SubViewport" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView"]
  196. handle_input_locally = false
  197. canvas_item_default_texture_filter = 0
  198. size = Vector2i(1334, 1002)
  199. render_target_update_mode = 4
  200.  
  201. [node name="TileMap" type="TileMap" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport" groups=["navigation"]]
  202. position = Vector2(500, 540)
  203. scale = Vector2(4, 4)
  204. format = 2
  205. script = ExtResource("4_mhy1a")
  206.  
  207. [node name="NavigationRegion" type="NavigationRegion2D" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap"]
  208. z_index = 10
  209. navigation_polygon = SubResource("NavigationPolygon_oidah")
  210.  
  211. [node name="ErrorCell" type="Sprite2D" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap"]
  212. visible = false
  213. modulate = Color(1, 0, 0, 0)
  214. z_index = 10
  215. scale = Vector2(16, 16)
  216. texture = ExtResource("4_465u2")
  217. centered = false
  218.  
  219. [node name="ErrorCellAnimationPlayer" type="AnimationPlayer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap/ErrorCell"]
  220. libraries = {
  221. "": SubResource("AnimationLibrary_371oi")
  222. }
  223.  
  224. [node name="Brush" type="Node2D" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap"]
  225. z_index = 100
  226.  
  227. [node name="CanvasLayer" type="CanvasLayer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport"]
  228. layer = 2
  229.  
  230. [node name="MapEditorTools" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/CanvasLayer" instance=ExtResource("6_7pvgu")]
  231.  
  232. [node name="MapView2" type="TextureRect" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer"]
  233. visible = false
  234. layout_mode = 2
  235.  
  236. [node name="Right" type="Panel" parent="Bg/VBoxContainer/HSplitContainer"]
  237. custom_minimum_size = Vector2(300, 0)
  238. layout_mode = 2
  239. size_flags_horizontal = 3
  240. size_flags_stretch_ratio = 3.0
  241.  
  242. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HSplitContainer/Right"]
  243. layout_mode = 1
  244. anchors_preset = 15
  245. anchor_right = 1.0
  246. anchor_bottom = 1.0
  247. grow_horizontal = 2
  248. grow_vertical = 2
  249. theme_override_constants/margin_left = 2
  250. theme_override_constants/margin_top = 2
  251. theme_override_constants/margin_right = 2
  252. theme_override_constants/margin_bottom = 2
  253.  
  254. [node name="TabContainer" type="TabContainer" parent="Bg/VBoxContainer/HSplitContainer/Right/MarginContainer"]
  255. layout_mode = 2
  256. size_flags_vertical = 3
  257.  
  258. [node name="MapMark" type="MarginContainer" parent="Bg/VBoxContainer/HSplitContainer/Right/MarginContainer/TabContainer"]
  259. layout_mode = 2
  260. theme_override_constants/margin_top = 10
  261.  
  262. [node name="MapEditorMapMark" parent="Bg/VBoxContainer/HSplitContainer/Right/MarginContainer/TabContainer/MapMark" instance=ExtResource("8_8tgeu")]
  263. layout_mode = 2
  264.  
  265. [node name="MapLayer" type="MarginContainer" parent="Bg/VBoxContainer/HSplitContainer/Right/MarginContainer/TabContainer"]
  266. visible = false
  267. layout_mode = 2
  268. theme_override_constants/margin_top = 10
  269.  
  270. [node name="MapEditorMapLayer" parent="Bg/VBoxContainer/HSplitContainer/Right/MarginContainer/TabContainer/MapLayer" instance=ExtResource("7_ychtn")]
  271. layout_mode = 2