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