Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorSelectObject.tscn
@小李xl 小李xl on 11 Dec 2023 5 KB 地图编辑器标记预览功能
  1. [gd_scene load_steps=6 format=3 uid="uid://ie52mo5t6l2h"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorSelectObject/MapEditorSelectObjectPanel.cs" id="1_hdfkd"]
  4. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="3_4nhjm"]
  5. [ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_laasd"]
  6. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="4_uomdx"]
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_8bgig"]
  9. resource_local_to_scene = true
  10. shader = ExtResource("4_uomdx")
  11. shader_parameter/blend = Color(1, 1, 1, 1)
  12. shader_parameter/schedule = 0.0
  13. shader_parameter/modulate = Color(1, 1, 1, 1)
  14. shader_parameter/show_outline = true
  15. shader_parameter/outline_color = Color(1, 1, 1, 1)
  16. shader_parameter/outline_rainbow = false
  17. shader_parameter/outline_use_blend = true
  18. shader_parameter/grey = 0.0
  19.  
  20. [node name="MapEditorSelectObject" type="Control"]
  21. layout_mode = 3
  22. anchors_preset = 15
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. grow_horizontal = 2
  26. grow_vertical = 2
  27. script = ExtResource("1_hdfkd")
  28.  
  29. [node name="HBoxContainer" type="HSplitContainer" parent="."]
  30. layout_mode = 1
  31. anchors_preset = 15
  32. anchor_right = 1.0
  33. anchor_bottom = 1.0
  34. grow_horizontal = 2
  35. grow_vertical = 2
  36.  
  37. [node name="Panel" type="Panel" parent="HBoxContainer"]
  38. layout_mode = 2
  39. size_flags_horizontal = 3
  40. size_flags_stretch_ratio = 25.0
  41.  
  42. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel"]
  43. layout_mode = 1
  44. anchors_preset = 15
  45. anchor_right = 1.0
  46. anchor_bottom = 1.0
  47. grow_horizontal = 2
  48. grow_vertical = 2
  49. theme_override_constants/margin_left = 2
  50. theme_override_constants/margin_top = 2
  51. theme_override_constants/margin_right = 2
  52. theme_override_constants/margin_bottom = 2
  53.  
  54. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Panel/MarginContainer"]
  55. layout_mode = 2
  56. size_flags_horizontal = 3
  57.  
  58. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  59. layout_mode = 2
  60. size_flags_vertical = 3
  61.  
  62. [node name="TypeButton" type="Button" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  63. custom_minimum_size = Vector2(0, 80)
  64. layout_mode = 2
  65. size_flags_horizontal = 3
  66. text = "所有类型"
  67.  
  68. [node name="Select" type="NinePatchRect" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/TypeButton"]
  69. layout_mode = 1
  70. anchors_preset = 15
  71. anchor_right = 1.0
  72. anchor_bottom = 1.0
  73. grow_horizontal = 2
  74. grow_vertical = 2
  75. texture = ExtResource("3_4nhjm")
  76. patch_margin_left = 3
  77. patch_margin_top = 3
  78. patch_margin_right = 3
  79. patch_margin_bottom = 3
  80.  
  81. [node name="Panel2" type="Panel" parent="HBoxContainer"]
  82. layout_mode = 2
  83. size_flags_horizontal = 3
  84. size_flags_stretch_ratio = 75.0
  85.  
  86. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2"]
  87. layout_mode = 1
  88. anchors_preset = 15
  89. anchor_right = 1.0
  90. anchor_bottom = 1.0
  91. grow_horizontal = 2
  92. grow_vertical = 2
  93. theme_override_constants/margin_left = 2
  94. theme_override_constants/margin_top = 2
  95. theme_override_constants/margin_right = 2
  96. theme_override_constants/margin_bottom = 2
  97.  
  98. [node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/Panel2/MarginContainer"]
  99. layout_mode = 2
  100. size_flags_horizontal = 3
  101.  
  102. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  103. layout_mode = 2
  104. theme_override_constants/margin_left = 2
  105. theme_override_constants/margin_top = 2
  106. theme_override_constants/margin_right = 2
  107. theme_override_constants/margin_bottom = 2
  108.  
  109. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer"]
  110. custom_minimum_size = Vector2(0, 100)
  111. layout_mode = 2
  112. size_flags_vertical = 3
  113.  
  114. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  115. custom_minimum_size = Vector2(500, 44)
  116. layout_mode = 2
  117. size_flags_vertical = 4
  118. placeholder_text = "搜索名称/id"
  119.  
  120. [node name="Search" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  121. custom_minimum_size = Vector2(44, 44)
  122. layout_mode = 2
  123. size_flags_vertical = 4
  124. icon = ExtResource("3_laasd")
  125.  
  126. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  127. layout_mode = 2
  128. size_flags_horizontal = 3
  129. size_flags_vertical = 3
  130. size_flags_stretch_ratio = 75.0
  131.  
  132. [node name="ObjectButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer"]
  133. custom_minimum_size = Vector2(124, 160)
  134. layout_mode = 2
  135.  
  136. [node name="PreviewImage" type="TextureRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  137. material = SubResource("ShaderMaterial_8bgig")
  138. layout_mode = 1
  139. anchors_preset = 15
  140. anchor_right = 1.0
  141. anchor_bottom = 1.0
  142. offset_left = 2.0
  143. offset_top = 2.0
  144. offset_right = -2.0
  145. offset_bottom = -38.0
  146. grow_horizontal = 2
  147. grow_vertical = 2
  148. mouse_filter = 2
  149. expand_mode = 2
  150. stretch_mode = 5
  151.  
  152. [node name="ObjectName" type="Label" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  153. layout_mode = 1
  154. anchors_preset = 12
  155. anchor_top = 1.0
  156. anchor_right = 1.0
  157. anchor_bottom = 1.0
  158. offset_top = -43.0
  159. offset_right = 124.0
  160. offset_bottom = 43.0
  161. grow_horizontal = 2
  162. grow_vertical = 0
  163. scale = Vector2(0.5, 0.5)
  164. text = "武器"
  165. horizontal_alignment = 1
  166. vertical_alignment = 1
  167. autowrap_mode = 3
  168. clip_text = true
  169. text_overrun_behavior = 3
  170.  
  171. [node name="Select" type="NinePatchRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  172. layout_mode = 1
  173. anchors_preset = 15
  174. anchor_right = 1.0
  175. anchor_bottom = 1.0
  176. grow_horizontal = 2
  177. grow_vertical = 2
  178. texture = ExtResource("3_4nhjm")
  179. region_rect = Rect2(0, 0, 36, 36)
  180. patch_margin_left = 8
  181. patch_margin_top = 8
  182. patch_margin_right = 8
  183. patch_margin_bottom = 8