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