Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapLayer.tscn
  1. [gd_scene load_steps=5 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://dmm8jw06bhffh" path="res://resource/sprite/ui/commonIcon/Lock.png" id="2_pfhyj"]
  5. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="3_k8b5h"]
  6. [ext_resource type="Texture2D" uid="uid://dqvg18aacx6db" path="res://resource/sprite/ui/commonIcon/Visible.png" id="3_rqjh4"]
  7.  
  8. [node name="MapEditorMapLayer" type="Control"]
  9. layout_mode = 3
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. grow_horizontal = 2
  14. grow_vertical = 2
  15. script = ExtResource("1_3j05m")
  16.  
  17. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  18. layout_mode = 1
  19. anchors_preset = 15
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. grow_horizontal = 2
  23. grow_vertical = 2
  24.  
  25. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  26. layout_mode = 2
  27.  
  28. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  29. layout_mode = 2
  30. size_flags_horizontal = 3
  31. text = "淡化未选中的层"
  32.  
  33. [node name="CheckButton" type="CheckButton" parent="VBoxContainer/HBoxContainer"]
  34. layout_mode = 2
  35. flat = true
  36.  
  37. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
  38. layout_mode = 2
  39. size_flags_vertical = 3
  40.  
  41. [node name="LayerButton" type="Button" parent="VBoxContainer/ScrollContainer"]
  42. custom_minimum_size = Vector2(0, 70)
  43. layout_mode = 2
  44. size_flags_horizontal = 3
  45. text = "layer1"
  46. icon = ExtResource("2_pfhyj")
  47. alignment = 0
  48.  
  49. [node name="SelectTexture" type="NinePatchRect" parent="VBoxContainer/ScrollContainer/LayerButton"]
  50. layout_mode = 1
  51. anchors_preset = 15
  52. anchor_right = 1.0
  53. anchor_bottom = 1.0
  54. grow_horizontal = 2
  55. grow_vertical = 2
  56. texture = ExtResource("3_k8b5h")
  57. patch_margin_left = 3
  58. patch_margin_top = 3
  59. patch_margin_right = 3
  60. patch_margin_bottom = 3
  61.  
  62. [node name="VisibleButton" type="TextureButton" parent="VBoxContainer/ScrollContainer/LayerButton"]
  63. layout_mode = 1
  64. anchors_preset = 11
  65. anchor_left = 1.0
  66. anchor_right = 1.0
  67. anchor_bottom = 1.0
  68. offset_left = -55.0
  69. grow_horizontal = 0
  70. grow_vertical = 2
  71. texture_normal = ExtResource("3_rqjh4")
  72. stretch_mode = 3