Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorSelectObject.tscn
@小李xl 小李xl on 8 Aug 2023 5 KB 创建房间标记, 开发中
  1. [gd_scene load_steps=5 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="Material" uid="uid://cces3bhds7jyi" path="res://resource/material/Blend.tres" id="2_j6gjm"]
  5. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="3_4nhjm"]
  6. [ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_laasd"]
  7.  
  8. [node name="MapEditorSelectObject" 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_hdfkd")
  16.  
  17. [node name="HBoxContainer" type="HSplitContainer" 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="Panel" type="Panel" parent="HBoxContainer"]
  26. layout_mode = 2
  27. size_flags_horizontal = 3
  28. size_flags_stretch_ratio = 25.0
  29.  
  30. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel"]
  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. theme_override_constants/margin_left = 2
  38. theme_override_constants/margin_top = 2
  39. theme_override_constants/margin_right = 2
  40. theme_override_constants/margin_bottom = 2
  41.  
  42. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Panel/MarginContainer"]
  43. layout_mode = 2
  44. size_flags_horizontal = 3
  45.  
  46. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  47. layout_mode = 2
  48. size_flags_vertical = 3
  49.  
  50. [node name="TypeButton" type="Button" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  51. custom_minimum_size = Vector2(0, 80)
  52. layout_mode = 2
  53. size_flags_horizontal = 3
  54. text = "所有类型"
  55.  
  56. [node name="Select" type="NinePatchRect" parent="HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/TypeButton"]
  57. layout_mode = 1
  58. anchors_preset = 15
  59. anchor_right = 1.0
  60. anchor_bottom = 1.0
  61. grow_horizontal = 2
  62. grow_vertical = 2
  63. texture = ExtResource("3_4nhjm")
  64. patch_margin_left = 3
  65. patch_margin_top = 3
  66. patch_margin_right = 3
  67. patch_margin_bottom = 3
  68.  
  69. [node name="Panel2" type="Panel" parent="HBoxContainer"]
  70. layout_mode = 2
  71. size_flags_horizontal = 3
  72. size_flags_stretch_ratio = 75.0
  73.  
  74. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2"]
  75. layout_mode = 1
  76. anchors_preset = 15
  77. anchor_right = 1.0
  78. anchor_bottom = 1.0
  79. grow_horizontal = 2
  80. grow_vertical = 2
  81. theme_override_constants/margin_left = 2
  82. theme_override_constants/margin_top = 2
  83. theme_override_constants/margin_right = 2
  84. theme_override_constants/margin_bottom = 2
  85.  
  86. [node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/Panel2/MarginContainer"]
  87. layout_mode = 2
  88. size_flags_horizontal = 3
  89.  
  90. [node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  91. layout_mode = 2
  92. theme_override_constants/margin_left = 2
  93. theme_override_constants/margin_top = 2
  94. theme_override_constants/margin_right = 2
  95. theme_override_constants/margin_bottom = 2
  96.  
  97. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer"]
  98. custom_minimum_size = Vector2(0, 100)
  99. layout_mode = 2
  100. size_flags_vertical = 3
  101.  
  102. [node name="LineEdit" type="LineEdit" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  103. custom_minimum_size = Vector2(500, 44)
  104. layout_mode = 2
  105. size_flags_vertical = 4
  106. placeholder_text = "搜索名称/id"
  107.  
  108. [node name="Search" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
  109. custom_minimum_size = Vector2(44, 44)
  110. layout_mode = 2
  111. size_flags_vertical = 4
  112. icon = ExtResource("3_laasd")
  113.  
  114. [node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2"]
  115. layout_mode = 2
  116. size_flags_horizontal = 3
  117. size_flags_vertical = 3
  118. size_flags_stretch_ratio = 75.0
  119.  
  120. [node name="ObjectButton" type="Button" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer"]
  121. custom_minimum_size = Vector2(124, 160)
  122. layout_mode = 2
  123.  
  124. [node name="PreviewImage" type="TextureRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  125. material = ExtResource("2_j6gjm")
  126. layout_mode = 1
  127. anchors_preset = 15
  128. anchor_right = 1.0
  129. anchor_bottom = 1.0
  130. offset_left = 2.0
  131. offset_top = 2.0
  132. offset_right = -2.0
  133. offset_bottom = -38.0
  134. grow_horizontal = 2
  135. grow_vertical = 2
  136. mouse_filter = 2
  137. stretch_mode = 5
  138.  
  139. [node name="ObjectName" type="Label" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  140. layout_mode = 1
  141. anchors_preset = 12
  142. anchor_top = 1.0
  143. anchor_right = 1.0
  144. anchor_bottom = 1.0
  145. offset_top = -43.0
  146. offset_right = 124.0
  147. offset_bottom = 43.0
  148. grow_horizontal = 2
  149. grow_vertical = 0
  150. scale = Vector2(0.5, 0.5)
  151. text = "武器"
  152. horizontal_alignment = 1
  153. vertical_alignment = 1
  154. autowrap_mode = 3
  155. clip_text = true
  156. text_overrun_behavior = 3
  157.  
  158. [node name="Select" type="NinePatchRect" parent="HBoxContainer/Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
  159. layout_mode = 1
  160. anchors_preset = 15
  161. anchor_right = 1.0
  162. anchor_bottom = 1.0
  163. grow_horizontal = 2
  164. grow_vertical = 2
  165. texture = ExtResource("3_4nhjm")
  166. region_rect = Rect2(0, 0, 36, 36)
  167. patch_margin_left = 8
  168. patch_margin_top = 8
  169. patch_margin_right = 8
  170. patch_margin_bottom = 8