Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorTools.tscn
@小李xl 小李xl on 14 Aug 2023 5 KB 创建房间标记, 开发中
  1. [gd_scene load_steps=10 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="Texture2D" uid="uid://dnty1a2tcawos" path="res://resource/sprite/ui/commonIcon/Mark.png" id="6_n7h3g"]
  10. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/MarkTool.cs" id="7_ekxcj"]
  11. [ext_resource type="Texture2D" uid="uid://cuntr7hec044f" path="res://resource/sprite/ui/commonIcon/Select.png" id="7_mqmd6"]
  12.  
  13. [node name="MapEditorTools" type="Control"]
  14. layout_mode = 3
  15. anchors_preset = 15
  16. anchor_right = 1.0
  17. anchor_bottom = 1.0
  18. grow_horizontal = 2
  19. grow_vertical = 2
  20. mouse_filter = 1
  21. script = ExtResource("1_mqp1c")
  22.  
  23. [node name="ToolRoot" type="Control" parent="."]
  24. anchors_preset = 0
  25. offset_right = 40.0
  26. offset_bottom = 40.0
  27.  
  28. [node name="N_HoverRoot" type="Control" parent="ToolRoot"]
  29. anchors_preset = 0
  30.  
  31. [node name="N_HoverArea" type="ColorRect" parent="ToolRoot/N_HoverRoot"]
  32. layout_mode = 1
  33. anchors_preset = 2
  34. anchor_top = 1.0
  35. anchor_bottom = 1.0
  36. offset_top = -36.0
  37. offset_right = 160.0
  38. grow_vertical = 0
  39. color = Color(1, 1, 1, 0)
  40. script = ExtResource("2_6qfy3")
  41.  
  42. [node name="E_HoverRoot" type="Control" parent="ToolRoot"]
  43. anchors_preset = 0
  44. rotation = 1.5708
  45.  
  46. [node name="E_HoverArea" type="ColorRect" parent="ToolRoot/E_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="S_HoverRoot" type="Control" parent="ToolRoot"]
  58. anchors_preset = 0
  59. rotation = 3.14159
  60. scale = Vector2(-1, 1)
  61.  
  62. [node name="S_HoverArea" type="ColorRect" parent="ToolRoot/S_HoverRoot"]
  63. layout_mode = 1
  64. anchors_preset = 2
  65. anchor_top = 1.0
  66. anchor_bottom = 1.0
  67. offset_left = -9.12665e-05
  68. offset_top = -36.0
  69. offset_right = 160.0
  70. grow_vertical = 0
  71. color = Color(1, 1, 1, 0)
  72. script = ExtResource("2_6qfy3")
  73.  
  74. [node name="W_HoverRoot" type="Control" parent="ToolRoot"]
  75. anchors_preset = 0
  76. rotation = 4.71239
  77. scale = Vector2(-1, 1)
  78.  
  79. [node name="W_HoverArea" type="ColorRect" parent="ToolRoot/W_HoverRoot"]
  80. layout_mode = 1
  81. anchors_preset = 2
  82. anchor_top = 1.0
  83. anchor_bottom = 1.0
  84. offset_top = -36.0
  85. offset_right = 160.0
  86. grow_vertical = 0
  87. color = Color(1, 1, 1, 0)
  88. script = ExtResource("2_6qfy3")
  89.  
  90. [node name="HoverPreviewRoot" type="Control" parent="ToolRoot"]
  91. visible = false
  92. anchors_preset = 0
  93. mouse_filter = 2
  94.  
  95. [node name="HoverPreview" type="TextureRect" parent="ToolRoot/HoverPreviewRoot"]
  96. layout_mode = 1
  97. anchors_preset = 7
  98. anchor_left = 0.5
  99. anchor_top = 1.0
  100. anchor_right = 0.5
  101. anchor_bottom = 1.0
  102. offset_left = -2.0
  103. offset_top = -36.0
  104. offset_right = 2.0
  105. grow_horizontal = 2
  106. grow_vertical = 0
  107. mouse_filter = 2
  108. texture = ExtResource("3_trbb5")
  109.  
  110. [node name="DoorToolTemplate" type="Control" parent="ToolRoot"]
  111. anchors_preset = 0
  112. script = ExtResource("3_3w0w6")
  113.  
  114. [node name="DoorArea" type="ColorRect" parent="ToolRoot/DoorToolTemplate"]
  115. layout_mode = 1
  116. anchors_preset = 2
  117. anchor_top = 1.0
  118. anchor_bottom = 1.0
  119. offset_top = -32.0
  120. offset_right = 64.0
  121. grow_vertical = 0
  122. color = Color(0.184314, 1, 0.0392157, 0.188235)
  123.  
  124. [node name="StartBtn" type="TextureButton" parent="ToolRoot/DoorToolTemplate"]
  125. layout_mode = 1
  126. anchors_preset = 3
  127. anchor_left = 1.0
  128. anchor_top = 1.0
  129. anchor_right = 1.0
  130. anchor_bottom = 1.0
  131. offset_left = -4.0
  132. offset_top = -36.0
  133. grow_horizontal = 0
  134. grow_vertical = 0
  135. mouse_filter = 1
  136. texture_normal = ExtResource("3_trbb5")
  137. stretch_mode = 0
  138. script = ExtResource("3_45muq")
  139.  
  140. [node name="EndBtn" type="TextureButton" parent="ToolRoot/DoorToolTemplate"]
  141. layout_mode = 1
  142. anchors_preset = 2
  143. anchor_top = 1.0
  144. anchor_bottom = 1.0
  145. offset_left = 64.0
  146. offset_top = -36.0
  147. offset_right = 68.0
  148. grow_vertical = 0
  149. texture_normal = ExtResource("3_trbb5")
  150. stretch_mode = 0
  151. script = ExtResource("3_45muq")
  152.  
  153. [node name="MarkTemplate" type="TextureRect" parent="ToolRoot"]
  154. layout_mode = 0
  155. offset_right = 7.0
  156. offset_bottom = 7.0
  157. texture = ExtResource("6_n7h3g")
  158. script = ExtResource("7_ekxcj")
  159.  
  160. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  161. layout_mode = 1
  162. anchors_preset = 1
  163. anchor_left = 1.0
  164. anchor_right = 1.0
  165. offset_left = -84.0
  166. offset_top = 19.0
  167. offset_right = -20.0
  168. offset_bottom = 83.0
  169. grow_horizontal = 0
  170.  
  171. [node name="ToolButton" type="TextureButton" parent="HBoxContainer"]
  172. layout_mode = 2
  173. texture_normal = ExtResource("2_rwvbg")
  174.  
  175. [node name="Select" type="NinePatchRect" parent="HBoxContainer/ToolButton"]
  176. layout_mode = 1
  177. anchors_preset = 15
  178. anchor_right = 1.0
  179. anchor_bottom = 1.0
  180. grow_horizontal = 2
  181. grow_vertical = 2
  182. texture = ExtResource("7_mqmd6")
  183. region_rect = Rect2(0, 0, 36, 36)
  184. patch_margin_left = 12
  185. patch_margin_top = 12
  186. patch_margin_right = 12
  187. patch_margin_bottom = 12