Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorSelectObject.tscn
@小李xl 小李xl on 11 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/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. region_rect = Rect2(0, 0, 36, 36)
  77. patch_margin_left = 4
  78. patch_margin_top = 4
  79. patch_margin_right = 4
  80. patch_margin_bottom = 4
  81.  
  82. [node name="Panel2" type="Panel" parent="HBoxContainer"]
  83. layout_mode = 2
  84. size_flags_horizontal = 3
  85. size_flags_stretch_ratio = 75.0
  86.  
  87. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2"]
  88. layout_mode = 1
  89. anchors_preset = 15
  90. anchor_right = 1.0
  91. anchor_bottom = 1.0
  92. grow_horizontal = 2
  93. grow_vertical = 2
  94. theme_override_constants/margin_left = 2
  95. theme_override_constants/margin_top = 2
  96. theme_override_constants/margin_right = 2
  97. theme_override_constants/margin_bottom = 2
  98.  
  99. [node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/Panel2/MarginContainer"]
  100. layout_mode = 2
  101. size_flags_horizontal = 3
  102.  
  103. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  104. layout_mode = 2
  105. theme_override_constants/margin_left = 2
  106. theme_override_constants/margin_top = 2
  107. theme_override_constants/margin_right = 2
  108. theme_override_constants/margin_bottom = 2
  109.  
  110. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer"]
  111. custom_minimum_size = Vector2(0, 100)
  112. layout_mode = 2
  113. size_flags_vertical = 3
  114.  
  115. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  116. custom_minimum_size = Vector2(500, 44)
  117. layout_mode = 2
  118. size_flags_vertical = 4
  119. placeholder_text = "搜索名称/id"
  120.  
  121. [node name="Search" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  122. custom_minimum_size = Vector2(44, 44)
  123. layout_mode = 2
  124. size_flags_vertical = 4
  125. icon = ExtResource("3_laasd")
  126.  
  127. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  128. layout_mode = 2
  129. size_flags_horizontal = 3
  130. size_flags_vertical = 3
  131. size_flags_stretch_ratio = 75.0
  132.  
  133. [node name="ObjectButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer"]
  134. custom_minimum_size = Vector2(124, 160)
  135. layout_mode = 2
  136.  
  137. [node name="PreviewImage" type="TextureRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  138. material = SubResource("ShaderMaterial_8bgig")
  139. layout_mode = 1
  140. anchors_preset = 15
  141. anchor_right = 1.0
  142. anchor_bottom = 1.0
  143. offset_left = 2.0
  144. offset_top = 2.0
  145. offset_right = -2.0
  146. offset_bottom = -38.0
  147. grow_horizontal = 2
  148. grow_vertical = 2
  149. mouse_filter = 2
  150. expand_mode = 2
  151. stretch_mode = 5
  152.  
  153. [node name="ObjectName" type="Label" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  154. layout_mode = 1
  155. anchors_preset = 12
  156. anchor_top = 1.0
  157. anchor_right = 1.0
  158. anchor_bottom = 1.0
  159. offset_top = -43.0
  160. offset_right = 124.0
  161. offset_bottom = 43.0
  162. grow_horizontal = 2
  163. grow_vertical = 0
  164. scale = Vector2(0.5, 0.5)
  165. text = "武器"
  166. horizontal_alignment = 1
  167. vertical_alignment = 1
  168. autowrap_mode = 3
  169. clip_text = true
  170. text_overrun_behavior = 3
  171.  
  172. [node name="Select" type="NinePatchRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  173. layout_mode = 1
  174. anchors_preset = 15
  175. anchor_right = 1.0
  176. anchor_bottom = 1.0
  177. grow_horizontal = 2
  178. grow_vertical = 2
  179. texture = ExtResource("3_4nhjm")
  180. region_rect = Rect2(0, 0, 36, 36)
  181. patch_margin_left = 8
  182. patch_margin_top = 8
  183. patch_margin_right = 8
  184. patch_margin_bottom = 8