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