Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapLayer.tscn
  1. [gd_scene load_steps=8 format=3 uid="uid://bb2ekkpxifd7g"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapLayer/MapEditorMapLayerPanel.cs" id="1_3j05m"]
  4. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="2_f2gp6"]
  5. [ext_resource type="Texture2D" uid="uid://dmm8jw06bhffh" path="res://resource/sprite/ui/commonIcon/Lock.png" id="2_pfhyj"]
  6. [ext_resource type="Texture2D" uid="uid://dggb6p4sdmfry" path="res://resource/sprite/ui/commonIcon/Edit.png" id="3_8g3vb"]
  7. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="3_k8b5h"]
  8. [ext_resource type="Texture2D" uid="uid://dqvg18aacx6db" path="res://resource/sprite/ui/commonIcon/Visible.png" id="3_rqjh4"]
  9. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="4_h0gio"]
  10.  
  11. [node name="MapEditorMapLayer" type="Control"]
  12. layout_mode = 3
  13. anchors_preset = 15
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. grow_horizontal = 2
  17. grow_vertical = 2
  18. script = ExtResource("1_3j05m")
  19.  
  20. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  21. layout_mode = 1
  22. anchors_preset = 15
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. grow_horizontal = 2
  26. grow_vertical = 2
  27.  
  28. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  29. layout_mode = 2
  30.  
  31. [node name="LayerLabel" type="Label" parent="VBoxContainer/HBoxContainer"]
  32. layout_mode = 2
  33. text = "地图层级:"
  34.  
  35. [node name="AddButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  36. layout_mode = 2
  37. size_flags_horizontal = 10
  38. icon = ExtResource("2_f2gp6")
  39.  
  40. [node name="EditButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  41. layout_mode = 2
  42. icon = ExtResource("3_8g3vb")
  43.  
  44. [node name="DeleteButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  45. layout_mode = 2
  46. icon = ExtResource("4_h0gio")
  47.  
  48. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
  49. layout_mode = 2
  50. size_flags_vertical = 3
  51.  
  52. [node name="LayerButton" type="Button" parent="VBoxContainer/ScrollContainer"]
  53. custom_minimum_size = Vector2(0, 70)
  54. layout_mode = 2
  55. size_flags_horizontal = 3
  56. text = "layer1"
  57. icon = ExtResource("2_pfhyj")
  58. alignment = 0
  59.  
  60. [node name="SelectTexture" type="NinePatchRect" parent="VBoxContainer/ScrollContainer/LayerButton"]
  61. layout_mode = 1
  62. anchors_preset = 15
  63. anchor_right = 1.0
  64. anchor_bottom = 1.0
  65. grow_horizontal = 2
  66. grow_vertical = 2
  67. texture = ExtResource("3_k8b5h")
  68. patch_margin_left = 3
  69. patch_margin_top = 3
  70. patch_margin_right = 3
  71. patch_margin_bottom = 3
  72.  
  73. [node name="VisibleButton" type="TextureButton" parent="VBoxContainer/ScrollContainer/LayerButton"]
  74. layout_mode = 1
  75. anchors_preset = 11
  76. anchor_left = 1.0
  77. anchor_right = 1.0
  78. anchor_bottom = 1.0
  79. offset_left = -55.0
  80. grow_horizontal = 0
  81. grow_vertical = 2
  82. texture_normal = ExtResource("3_rqjh4")
  83. stretch_mode = 3