Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorTools.tscn
@小李xl 小李xl on 21 Mar 2024 5 KB 测试特效
  1. [gd_scene load_steps=12 format=3 uid="uid://b4u66mxndxbrg"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/MapEditorToolsPanel.cs" id="1_mqp1c"]
  4. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/DoorHoverArea.cs" id="2_6qfy3"]
  5. [ext_resource type="Texture2D" uid="uid://uhhfgdhpk7i4" path="res://icon.png" id="2_rwvbg"]
  6. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/DoorDragArea.cs" id="3_3w0w6"]
  7. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/DoorDragButton.cs" id="3_45muq"]
  8. [ext_resource type="Texture2D" uid="uid://4wupcp53rrpi" path="res://resource/sprite/ui/mapEditorTools/DoorDragButton.png" id="3_trbb5"]
  9. [ext_resource type="Shader" path="res://resource/shader/Blend.gdshader" id="6_krtnu"]
  10. [ext_resource type="Texture2D" uid="uid://dnty1a2tcawos" path="res://resource/sprite/ui/commonIcon/Mark.png" id="6_n7h3g"]
  11. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/MarkTool.cs" id="7_ekxcj"]
  12. [ext_resource type="Texture2D" uid="uid://cuntr7hec044f" path="res://resource/sprite/ui/commonIcon/Select.png" id="7_mqmd6"]
  13.  
  14.  
  15. [sub_resource type="ShaderMaterial" id="ShaderMaterial_wxp5t"]
  16. resource_local_to_scene = true
  17. shader = ExtResource("6_krtnu")
  18. shader_parameter/blend = Color(1, 1, 1, 1)
  19. shader_parameter/schedule = 0.0
  20. shader_parameter/modulate = Color(1, 1, 1, 1)
  21. shader_parameter/show_outline = true
  22. shader_parameter/outline_color = Color(0, 0, 0, 1)
  23. shader_parameter/outline_rainbow = false
  24. shader_parameter/outline_use_blend = false
  25. shader_parameter/grey = 0.0
  26.  
  27. [node name="MapEditorTools" type="Control"]
  28. layout_mode = 3
  29. anchors_preset = 15
  30. anchor_right = 1.0
  31. anchor_bottom = 1.0
  32. grow_horizontal = 2
  33. grow_vertical = 2
  34. mouse_filter = 1
  35. script = ExtResource("1_mqp1c")
  36. metadata/_edit_vertical_guides_ = [1900.0]
  37.  
  38. [node name="ToolRoot" type="Control" parent="."]
  39. anchors_preset = 0
  40. offset_right = 40.0
  41. offset_bottom = 40.0
  42.  
  43. [node name="N_HoverRoot" type="Control" parent="ToolRoot"]
  44. anchors_preset = 0
  45.  
  46. [node name="N_HoverArea" type="ColorRect" parent="ToolRoot/N_HoverRoot"]
  47. layout_mode = 1
  48. anchors_preset = 2
  49. anchor_top = 1.0
  50. anchor_bottom = 1.0
  51. offset_top = -36.0
  52. offset_right = 160.0
  53. grow_vertical = 0
  54. color = Color(1, 1, 1, 0)
  55. script = ExtResource("2_6qfy3")
  56.  
  57. [node name="E_HoverRoot" type="Control" parent="ToolRoot"]
  58. anchors_preset = 0
  59. rotation = 1.5708
  60.  
  61. [node name="E_HoverArea" type="ColorRect" parent="ToolRoot/E_HoverRoot"]
  62. layout_mode = 1
  63. anchors_preset = 2
  64. anchor_top = 1.0
  65. anchor_bottom = 1.0
  66. offset_top = -36.0
  67. offset_right = 160.0
  68. grow_vertical = 0
  69. color = Color(1, 1, 1, 0)
  70. script = ExtResource("2_6qfy3")
  71.  
  72. [node name="S_HoverRoot" type="Control" parent="ToolRoot"]
  73. anchors_preset = 0
  74. rotation = 3.14159
  75. scale = Vector2(-1, 1)
  76.  
  77. [node name="S_HoverArea" type="ColorRect" parent="ToolRoot/S_HoverRoot"]
  78. layout_mode = 1
  79. anchors_preset = 2
  80. anchor_top = 1.0
  81. anchor_bottom = 1.0
  82. offset_left = -9.12665e-05
  83. offset_top = -36.0
  84. offset_right = 160.0
  85. grow_vertical = 0
  86. color = Color(1, 1, 1, 0)
  87. script = ExtResource("2_6qfy3")
  88.  
  89. [node name="W_HoverRoot" type="Control" parent="ToolRoot"]
  90. anchors_preset = 0
  91. rotation = 4.71239
  92. scale = Vector2(-1, 1)
  93.  
  94. [node name="W_HoverArea" type="ColorRect" parent="ToolRoot/W_HoverRoot"]
  95. layout_mode = 1
  96. anchors_preset = 2
  97. anchor_top = 1.0
  98. anchor_bottom = 1.0
  99. offset_top = -36.0
  100. offset_right = 160.0
  101. grow_vertical = 0
  102. color = Color(1, 1, 1, 0)
  103. script = ExtResource("2_6qfy3")
  104.  
  105. [node name="HoverPreviewRoot" type="Control" parent="ToolRoot"]
  106. visible = false
  107. anchors_preset = 0
  108. mouse_filter = 2
  109.  
  110. [node name="HoverPreview" type="TextureRect" parent="ToolRoot/HoverPreviewRoot"]
  111. layout_mode = 1
  112. anchors_preset = 7
  113. anchor_left = 0.5
  114. anchor_top = 1.0
  115. anchor_right = 0.5
  116. anchor_bottom = 1.0
  117. offset_left = -2.0
  118. offset_top = -36.0
  119. offset_right = 2.0
  120. grow_horizontal = 2
  121. grow_vertical = 0
  122. mouse_filter = 2
  123. texture = ExtResource("3_trbb5")
  124.  
  125. [node name="DoorToolTemplate" type="Control" parent="ToolRoot"]
  126. anchors_preset = 0
  127. script = ExtResource("3_3w0w6")
  128.  
  129. [node name="DoorArea" type="ColorRect" parent="ToolRoot/DoorToolTemplate"]
  130. layout_mode = 1
  131. anchors_preset = 2
  132. anchor_top = 1.0
  133. anchor_bottom = 1.0
  134. offset_top = -32.0
  135. offset_right = 64.0
  136. grow_vertical = 0
  137. color = Color(0.184314, 1, 0.0392157, 0.188235)
  138.  
  139. [node name="StartBtn" type="TextureButton" parent="ToolRoot/DoorToolTemplate"]
  140. layout_mode = 1
  141. anchors_preset = 3
  142. anchor_left = 1.0
  143. anchor_top = 1.0
  144. anchor_right = 1.0
  145. anchor_bottom = 1.0
  146. offset_left = -4.0
  147. offset_top = -36.0
  148. grow_horizontal = 0
  149. grow_vertical = 0
  150. mouse_filter = 1
  151. texture_normal = ExtResource("3_trbb5")
  152. stretch_mode = 0
  153. script = ExtResource("3_45muq")
  154.  
  155. [node name="EndBtn" type="TextureButton" parent="ToolRoot/DoorToolTemplate"]
  156. layout_mode = 1
  157. anchors_preset = 2
  158. anchor_top = 1.0
  159. anchor_bottom = 1.0
  160. offset_left = 64.0
  161. offset_top = -36.0
  162. offset_right = 68.0
  163. grow_vertical = 0
  164. texture_normal = ExtResource("3_trbb5")
  165. stretch_mode = 0
  166. script = ExtResource("3_45muq")
  167.  
  168. [node name="MarkTemplate" type="TextureRect" parent="ToolRoot"]
  169. material = SubResource("ShaderMaterial_wxp5t")
  170. layout_mode = 0
  171. offset_right = 16.0
  172. offset_bottom = 16.0
  173. texture = ExtResource("6_n7h3g")
  174. expand_mode = 2
  175. stretch_mode = 5
  176. script = ExtResource("7_ekxcj")
  177.  
  178. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  179. layout_mode = 1
  180. anchors_preset = 1
  181. anchor_left = 1.0
  182. anchor_right = 1.0
  183. offset_left = -84.0
  184. offset_top = 19.0
  185. offset_right = -20.0
  186. offset_bottom = 83.0
  187. grow_horizontal = 0
  188.  
  189. [node name="ToolButton" type="TextureButton" parent="HBoxContainer"]
  190. layout_mode = 2
  191. texture_normal = ExtResource("2_rwvbg")
  192.  
  193. [node name="Select" type="NinePatchRect" parent="HBoxContainer/ToolButton"]
  194. layout_mode = 1
  195. anchors_preset = 15
  196. anchor_right = 1.0
  197. anchor_bottom = 1.0
  198. grow_horizontal = 2
  199. grow_vertical = 2
  200. texture = ExtResource("7_mqmd6")
  201. region_rect = Rect2(0, 0, 36, 36)
  202. patch_margin_left = 12
  203. patch_margin_top = 12
  204. patch_margin_right = 12
  205. patch_margin_bottom = 12