Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditor.tscn
@小李xl 小李xl on 24 Jul 2023 5 KB 编辑门区域, 开发中
  1. [gd_scene load_steps=10 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/mapEditorProject/Back.png" id="2_s2w5x"]
  5. [ext_resource type="TileSet" uid="uid://b00g22o1cqhe8" path="res://resource/map/tileSet/TileSet1.tres" id="2_vrg60"]
  6. [ext_resource type="Script" path="res://src/game/ui/mapEditor/TileView/EditorTileMap.cs" id="2_waq8f"]
  7. [ext_resource type="Texture2D" uid="uid://0878uloew5jo" path="res://resource/sprite/ui/mapEditor/ErrorCell.png" id="4_465u2"]
  8. [ext_resource type="PackedScene" uid="uid://b4u66mxndxbrg" path="res://prefab/ui/MapEditorTools.tscn" id="6_7pvgu"]
  9.  
  10. [sub_resource type="Animation" id="Animation_o3btm"]
  11. length = 0.001
  12. tracks/0/type = "value"
  13. tracks/0/imported = false
  14. tracks/0/enabled = true
  15. tracks/0/path = NodePath(".:visible")
  16. tracks/0/interp = 1
  17. tracks/0/loop_wrap = true
  18. tracks/0/keys = {
  19. "times": PackedFloat32Array(0),
  20. "transitions": PackedFloat32Array(1),
  21. "update": 1,
  22. "values": [false]
  23. }
  24. tracks/1/type = "value"
  25. tracks/1/imported = false
  26. tracks/1/enabled = true
  27. tracks/1/path = NodePath(".:modulate")
  28. tracks/1/interp = 1
  29. tracks/1/loop_wrap = true
  30. tracks/1/keys = {
  31. "times": PackedFloat32Array(0),
  32. "transitions": PackedFloat32Array(1),
  33. "update": 0,
  34. "values": [Color(1, 0, 0, 0)]
  35. }
  36.  
  37. [sub_resource type="Animation" id="Animation_wnqg6"]
  38. resource_name = "show"
  39. length = 2.0
  40. loop_mode = 1
  41. tracks/0/type = "value"
  42. tracks/0/imported = false
  43. tracks/0/enabled = true
  44. tracks/0/path = NodePath(".:visible")
  45. tracks/0/interp = 1
  46. tracks/0/loop_wrap = true
  47. tracks/0/keys = {
  48. "times": PackedFloat32Array(0),
  49. "transitions": PackedFloat32Array(1),
  50. "update": 1,
  51. "values": [true]
  52. }
  53. tracks/1/type = "value"
  54. tracks/1/imported = false
  55. tracks/1/enabled = true
  56. tracks/1/path = NodePath(".:modulate")
  57. tracks/1/interp = 1
  58. tracks/1/loop_wrap = true
  59. tracks/1/keys = {
  60. "times": PackedFloat32Array(0, 0.3, 0.6, 2),
  61. "transitions": PackedFloat32Array(1, 1, 1, 1),
  62. "update": 0,
  63. "values": [Color(1, 0, 0, 0), Color(1, 0, 0, 0.490196), Color(1, 0, 0, 0.490196), Color(1, 0, 0, 0)]
  64. }
  65.  
  66. [sub_resource type="AnimationLibrary" id="AnimationLibrary_371oi"]
  67. _data = {
  68. "RESET": SubResource("Animation_o3btm"),
  69. "show": SubResource("Animation_wnqg6")
  70. }
  71.  
  72. [node name="MapEditor" type="Control"]
  73. layout_mode = 3
  74. anchors_preset = 15
  75. anchor_right = 1.0
  76. anchor_bottom = 1.0
  77. grow_horizontal = 2
  78. grow_vertical = 2
  79. script = ExtResource("1_5s7a0")
  80.  
  81. [node name="Bg" type="Panel" parent="."]
  82. layout_mode = 1
  83. anchors_preset = 15
  84. anchor_right = 1.0
  85. anchor_bottom = 1.0
  86. grow_horizontal = 2
  87. grow_vertical = 2
  88.  
  89. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  90. layout_mode = 1
  91. anchors_preset = 15
  92. anchor_right = 1.0
  93. anchor_bottom = 1.0
  94. grow_horizontal = 2
  95. grow_vertical = 2
  96.  
  97. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  98. custom_minimum_size = Vector2(0, 70)
  99. layout_mode = 2
  100.  
  101. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  102. layout_mode = 2
  103. offset_left = 2.0
  104. offset_top = 2.0
  105. offset_right = 62.0
  106. offset_bottom = 68.0
  107. size_flags_horizontal = 0
  108. icon = ExtResource("2_s2w5x")
  109. icon_alignment = 1
  110.  
  111. [node name="HSplitContainer" type="HSplitContainer" parent="Bg/VBoxContainer"]
  112. layout_mode = 2
  113. size_flags_vertical = 3
  114.  
  115. [node name="Left" type="Panel" parent="Bg/VBoxContainer/HSplitContainer"]
  116. custom_minimum_size = Vector2(1000, 0)
  117. layout_mode = 2
  118. size_flags_horizontal = 3
  119. size_flags_stretch_ratio = 7.0
  120.  
  121. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HSplitContainer/Left"]
  122. layout_mode = 1
  123. anchors_preset = 15
  124. anchor_right = 1.0
  125. anchor_bottom = 1.0
  126. grow_horizontal = 2
  127. grow_vertical = 2
  128. theme_override_constants/margin_left = 2
  129. theme_override_constants/margin_top = 2
  130. theme_override_constants/margin_right = 2
  131. theme_override_constants/margin_bottom = 2
  132.  
  133. [node name="MapView" type="SubViewportContainer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer"]
  134. layout_mode = 2
  135.  
  136. [node name="SubViewport" type="SubViewport" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView"]
  137. handle_input_locally = false
  138. canvas_item_default_texture_filter = 0
  139. size = Vector2i(1334, 1002)
  140. render_target_update_mode = 4
  141.  
  142. [node name="TileMap" type="TileMap" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport"]
  143. position = Vector2(500, 540)
  144. scale = Vector2(4, 4)
  145. tile_set = ExtResource("2_vrg60")
  146. format = 2
  147. script = ExtResource("2_waq8f")
  148.  
  149. [node name="ErrorCell" type="Sprite2D" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap"]
  150. visible = false
  151. modulate = Color(1, 0, 0, 0)
  152. z_index = 10
  153. scale = Vector2(16, 16)
  154. texture = ExtResource("4_465u2")
  155. centered = false
  156.  
  157. [node name="ErrorCellAnimationPlayer" type="AnimationPlayer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap/ErrorCell"]
  158. libraries = {
  159. "": SubResource("AnimationLibrary_371oi")
  160. }
  161.  
  162. [node name="Brush" type="Node2D" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/TileMap"]
  163. z_index = 100
  164.  
  165. [node name="CanvasLayer" type="CanvasLayer" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport"]
  166. layer = 2
  167.  
  168. [node name="MapEditorTools" parent="Bg/VBoxContainer/HSplitContainer/Left/MarginContainer/MapView/SubViewport/CanvasLayer" instance=ExtResource("6_7pvgu")]
  169.  
  170. [node name="Right" type="Panel" parent="Bg/VBoxContainer/HSplitContainer"]
  171. custom_minimum_size = Vector2(300, 0)
  172. layout_mode = 2
  173. size_flags_horizontal = 3
  174. size_flags_stretch_ratio = 3.0