Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditor.tscn
@lijincheng lijincheng on 11 Jul 2023 1 KB 绘制cell功能
  1. [gd_scene load_steps=4 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_nr5lp"]
  5. [ext_resource type="Script" path="res://src/game/ui/mapEditor/TileView/EditorTileMap.cs" id="2_waq8f"]
  6.  
  7. [node name="MapEditor" type="Control"]
  8. layout_mode = 3
  9. anchors_preset = 15
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. grow_horizontal = 2
  13. grow_vertical = 2
  14. script = ExtResource("1_5s7a0")
  15.  
  16. [node name="Bg" type="Panel" parent="."]
  17. layout_mode = 1
  18. anchors_preset = 15
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23.  
  24. [node name="HSplitContainer" type="HSplitContainer" parent="Bg"]
  25. layout_mode = 1
  26. anchors_preset = 15
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31.  
  32. [node name="Left" type="Panel" parent="Bg/HSplitContainer"]
  33. custom_minimum_size = Vector2(1000, 0)
  34. layout_mode = 2
  35.  
  36. [node name="MapView" type="SubViewportContainer" parent="Bg/HSplitContainer/Left"]
  37. layout_mode = 1
  38. anchors_preset = 15
  39. anchor_right = 1.0
  40. anchor_bottom = 1.0
  41. grow_horizontal = 2
  42. grow_vertical = 2
  43.  
  44. [node name="SubViewport" type="SubViewport" parent="Bg/HSplitContainer/Left/MapView"]
  45. handle_input_locally = false
  46. size = Vector2i(1000, 1080)
  47. render_target_update_mode = 4
  48.  
  49. [node name="TileMap" type="TileMap" parent="Bg/HSplitContainer/Left/MapView/SubViewport"]
  50. scale = Vector2(4, 4)
  51. tile_set = ExtResource("2_nr5lp")
  52. format = 2
  53. script = ExtResource("2_waq8f")
  54.  
  55. [node name="Right" type="Panel" parent="Bg/HSplitContainer"]
  56. custom_minimum_size = Vector2(300, 0)
  57. layout_mode = 2