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