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