Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorObject.tscn
@小李xl 小李xl on 17 Jul 3 KB 地牢编辑器移植完成
  1. [gd_scene load_steps=8 format=3 uid="uid://6a4l0o8pmegw"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorObject/MapEditorObjectPanel.cs" id="1_yphyn"]
  4. [ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="2_e3a41"]
  5. [ext_resource type="Texture2D" uid="uid://btetxb0hqoifk" path="res://resource/sprite/ui/commonIcon/MarkCell_placeholder.png" id="3_s35vd"]
  6. [ext_resource type="Shader" path="res://resource/shader/Blend.gdshader" id="4_by2nt"]
  7. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="5_caspl"]
  8. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="7_8ld0o"]
  9.  
  10. [sub_resource type="ShaderMaterial" id="ShaderMaterial_wkboy"]
  11. resource_local_to_scene = true
  12. shader = ExtResource("4_by2nt")
  13. shader_parameter/blend = Color(1, 1, 1, 1)
  14. shader_parameter/schedule = 0.0
  15. shader_parameter/modulate = Color(1, 1, 1, 1)
  16. shader_parameter/show_outline = true
  17. shader_parameter/outline_color = Color(1, 1, 1, 1)
  18. shader_parameter/outline_rainbow = false
  19. shader_parameter/outline_use_blend = false
  20. shader_parameter/grey = 0.0
  21.  
  22. [node name="MapEditorObject" type="Control"]
  23. layout_mode = 3
  24. anchors_preset = 15
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. script = ExtResource("1_yphyn")
  30.  
  31. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  32. layout_mode = 1
  33. anchors_preset = 15
  34. anchor_right = 1.0
  35. anchor_bottom = 1.0
  36. grow_horizontal = 2
  37. grow_vertical = 2
  38.  
  39. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  40. custom_minimum_size = Vector2(0, 45)
  41. layout_mode = 2
  42.  
  43. [node name="SearchInput" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 3
  46. placeholder_text = "搜索"
  47.  
  48. [node name="SearchButton" type="Button" parent="VBoxContainer/HBoxContainer"]
  49. layout_mode = 2
  50. icon = ExtResource("2_e3a41")
  51.  
  52. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  53. layout_mode = 2
  54.  
  55. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
  56. custom_minimum_size = Vector2(200, 0)
  57. layout_mode = 2
  58. text = "物体层级:"
  59.  
  60. [node name="LayerOption" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
  61. layout_mode = 2
  62. size_flags_horizontal = 3
  63. item_count = 2
  64. selected = 0
  65. popup/item_0/text = "Normal"
  66. popup/item_0/id = 0
  67. popup/item_1/text = "YSort"
  68. popup/item_1/id = 1
  69.  
  70. [node name="ItemRoot" type="ScrollContainer" parent="VBoxContainer"]
  71. layout_mode = 2
  72. size_flags_vertical = 3
  73.  
  74. [node name="Item" type="HBoxContainer" parent="VBoxContainer/ItemRoot"]
  75. layout_mode = 2
  76. size_flags_horizontal = 3
  77.  
  78. [node name="ItemButton" type="Button" parent="VBoxContainer/ItemRoot/Item"]
  79. layout_mode = 2
  80. size_flags_horizontal = 3
  81. text = "名称"
  82. icon = ExtResource("3_s35vd")
  83. alignment = 0
  84. text_overrun_behavior = 3
  85.  
  86. [node name="Icon" type="TextureRect" parent="VBoxContainer/ItemRoot/Item/ItemButton"]
  87. material = SubResource("ShaderMaterial_wkboy")
  88. custom_minimum_size = Vector2(64, 64)
  89. layout_mode = 1
  90. anchors_preset = 4
  91. anchor_top = 0.5
  92. anchor_bottom = 0.5
  93. offset_left = 2.0
  94. offset_top = -32.0
  95. offset_right = 66.0
  96. offset_bottom = 32.0
  97. grow_vertical = 2
  98. expand_mode = 2
  99. stretch_mode = 5
  100.  
  101. [node name="Select" type="NinePatchRect" parent="VBoxContainer/ItemRoot/Item/ItemButton"]
  102. visible = false
  103. layout_mode = 2
  104. anchor_right = 1.0
  105. anchor_bottom = 1.0
  106. grow_horizontal = 2
  107. grow_vertical = 2
  108. texture = ExtResource("5_caspl")
  109. patch_margin_left = 4
  110. patch_margin_top = 4
  111. patch_margin_right = 4
  112. patch_margin_bottom = 4
  113.  
  114. [node name="DynamicDeleteButton" type="Button" parent="."]
  115. visible = false
  116. layout_mode = 2
  117. offset_right = 44.0
  118. offset_bottom = 40.0
  119. icon = ExtResource("7_8ld0o")