Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorMapMark.tscn
@小李xl 小李xl on 11 Dec 2023 6 KB 地图编辑器标记预览功能
  1. [gd_scene load_steps=11 format=3 uid="uid://peo0n8bl15y5"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorMapMark/MapEditorMapMarkPanel.cs" id="1_dudey"]
  4. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="2_osya0"]
  5. [ext_resource type="Texture2D" uid="uid://dggb6p4sdmfry" path="res://resource/sprite/ui/commonIcon/Edit.png" id="3_wwaki"]
  6. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="4_urq7y"]
  7. [ext_resource type="Texture2D" uid="uid://d4gduco55dqpk" path="res://resource/sprite/ui/commonIcon/Down.png" id="5_x5dpw"]
  8. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="6_jpt3y"]
  9. [ext_resource type="Texture2D" uid="uid://dqvg18aacx6db" path="res://resource/sprite/ui/commonIcon/Visible.png" id="6_qiemx"]
  10. [ext_resource type="Texture2D" uid="uid://btetxb0hqoifk" path="res://resource/sprite/ui/commonIcon/MarkCell_placeholder.png" id="8_p8o70"]
  11. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="9_vr0bo"]
  12.  
  13. [sub_resource type="ShaderMaterial" id="ShaderMaterial_xxv8l"]
  14. resource_local_to_scene = true
  15. shader = ExtResource("9_vr0bo")
  16. shader_parameter/blend = Color(1, 1, 1, 1)
  17. shader_parameter/schedule = 0.0
  18. shader_parameter/modulate = Color(1, 1, 1, 1)
  19. shader_parameter/show_outline = true
  20. shader_parameter/outline_color = Color(1, 1, 1, 1)
  21. shader_parameter/outline_rainbow = false
  22. shader_parameter/outline_use_blend = false
  23. shader_parameter/grey = 0.0
  24.  
  25. [node name="MapEditorMapMark" type="Control"]
  26. layout_mode = 3
  27. anchors_preset = 15
  28. anchor_right = 1.0
  29. anchor_bottom = 1.0
  30. grow_horizontal = 2
  31. grow_vertical = 2
  32. script = ExtResource("1_dudey")
  33.  
  34. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  35. layout_mode = 1
  36. anchors_preset = 15
  37. anchor_right = 1.0
  38. anchor_bottom = 1.0
  39. grow_horizontal = 2
  40. grow_vertical = 2
  41.  
  42. [node name="MarkLabel" type="Label" parent="VBoxContainer"]
  43. layout_mode = 2
  44. text = "编辑预设:"
  45.  
  46. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  47. layout_mode = 2
  48.  
  49. [node name="PreinstallOption" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
  50. layout_mode = 2
  51. size_flags_horizontal = 3
  52.  
  53. [node name="AddPreinstall" type="Button" parent="VBoxContainer/HBoxContainer"]
  54. layout_mode = 2
  55. icon = ExtResource("2_osya0")
  56.  
  57. [node name="EditPreinstall" type="Button" parent="VBoxContainer/HBoxContainer"]
  58. layout_mode = 2
  59. icon = ExtResource("3_wwaki")
  60.  
  61. [node name="DeletePreinstall" type="Button" parent="VBoxContainer/HBoxContainer"]
  62. layout_mode = 2
  63. icon = ExtResource("4_urq7y")
  64.  
  65. [node name="MarkLabel2" type="Label" parent="VBoxContainer"]
  66. layout_mode = 2
  67. text = "编辑对象:"
  68.  
  69. [node name="DynamicTool" type="HBoxContainer" parent="VBoxContainer"]
  70. visible = false
  71. layout_mode = 2
  72.  
  73. [node name="EditButton" type="Button" parent="VBoxContainer/DynamicTool"]
  74. layout_mode = 2
  75. icon = ExtResource("3_wwaki")
  76.  
  77. [node name="DeleteButton" type="Button" parent="VBoxContainer/DynamicTool"]
  78. layout_mode = 2
  79. icon = ExtResource("4_urq7y")
  80.  
  81. [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
  82. layout_mode = 2
  83. size_flags_vertical = 3
  84.  
  85. [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
  86. layout_mode = 2
  87. size_flags_horizontal = 3
  88. size_flags_vertical = 3
  89.  
  90. [node name="AddWaveButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer"]
  91. layout_mode = 2
  92. text = "添加波数"
  93.  
  94. [node name="WaveItem" type="VBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer"]
  95. layout_mode = 2
  96. size_flags_horizontal = 3
  97.  
  98. [node name="WaveContainer" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem"]
  99. custom_minimum_size = Vector2(0, 68)
  100. layout_mode = 2
  101.  
  102. [node name="TextureButton" type="TextureButton" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/WaveContainer"]
  103. custom_minimum_size = Vector2(36, 36)
  104. layout_mode = 2
  105. texture_normal = ExtResource("5_x5dpw")
  106. stretch_mode = 3
  107.  
  108. [node name="WaveButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/WaveContainer"]
  109. layout_mode = 2
  110. size_flags_horizontal = 3
  111. text = "第1波"
  112. alignment = 0
  113.  
  114. [node name="Select" type="NinePatchRect" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/WaveContainer/WaveButton"]
  115. visible = false
  116. layout_mode = 1
  117. anchors_preset = 15
  118. anchor_right = 1.0
  119. anchor_bottom = 1.0
  120. grow_horizontal = 2
  121. grow_vertical = 2
  122. texture = ExtResource("6_jpt3y")
  123. patch_margin_left = 3
  124. patch_margin_top = 3
  125. patch_margin_right = 3
  126. patch_margin_bottom = 3
  127.  
  128. [node name="WaveVisibleButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/WaveContainer"]
  129. custom_minimum_size = Vector2(36, 36)
  130. layout_mode = 2
  131. icon = ExtResource("6_qiemx")
  132.  
  133. [node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem"]
  134. layout_mode = 2
  135. theme_override_constants/margin_left = 40
  136.  
  137. [node name="AddMarkButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/MarginContainer"]
  138. layout_mode = 2
  139. text = "添加标记"
  140. icon_alignment = 1
  141.  
  142. [node name="MarkContainer" type="MarginContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem"]
  143. layout_mode = 2
  144. theme_override_constants/margin_left = 40
  145.  
  146. [node name="MarkItem" type="HBoxContainer" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/MarkContainer"]
  147. layout_mode = 2
  148.  
  149. [node name="MarkButton" type="Button" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/MarkContainer/MarkItem"]
  150. layout_mode = 2
  151. size_flags_horizontal = 3
  152. text = "1001"
  153. icon = ExtResource("8_p8o70")
  154. alignment = 0
  155. text_overrun_behavior = 3
  156.  
  157. [node name="MarkIcon" type="TextureRect" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/MarkContainer/MarkItem/MarkButton"]
  158. material = SubResource("ShaderMaterial_xxv8l")
  159. layout_mode = 1
  160. anchors_preset = 9
  161. anchor_bottom = 1.0
  162. offset_left = 3.0
  163. offset_top = 3.0
  164. offset_right = 69.0
  165. offset_bottom = -3.0
  166. grow_vertical = 2
  167. expand_mode = 2
  168. stretch_mode = 5
  169.  
  170. [node name="Select" type="NinePatchRect" parent="VBoxContainer/ScrollContainer/VBoxContainer/WaveItem/MarkContainer/MarkItem/MarkButton"]
  171. visible = false
  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("6_jpt3y")
  179. patch_margin_left = 3
  180. patch_margin_top = 3
  181. patch_margin_right = 3
  182. patch_margin_bottom = 3