Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorTools.tscn
@小李xl 小李xl on 30 Jul 2023 5 KB 编辑门区域动态调整大小
  1. [gd_scene load_steps=7 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.  
  10. [node name="MapEditorTools" type="Control"]
  11. layout_mode = 3
  12. anchors_preset = 15
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. mouse_filter = 1
  18. script = ExtResource("1_mqp1c")
  19.  
  20. [node name="DoorToolRoot" type="Control" parent="."]
  21. anchors_preset = 0
  22. offset_right = 40.0
  23. offset_bottom = 40.0
  24.  
  25. [node name="N_HoverRoot" type="Control" parent="DoorToolRoot"]
  26. anchors_preset = 0
  27.  
  28. [node name="N_HoverArea" type="ColorRect" parent="DoorToolRoot/N_HoverRoot"]
  29. layout_mode = 1
  30. anchors_preset = 2
  31. anchor_top = 1.0
  32. anchor_bottom = 1.0
  33. offset_top = -36.0
  34. offset_right = 160.0
  35. grow_vertical = 0
  36. color = Color(1, 1, 1, 0.313726)
  37. script = ExtResource("2_6qfy3")
  38.  
  39. [node name="E_HoverRoot" type="Control" parent="DoorToolRoot"]
  40. anchors_preset = 0
  41. rotation = 1.5708
  42.  
  43. [node name="E_HoverArea" type="ColorRect" parent="DoorToolRoot/E_HoverRoot"]
  44. layout_mode = 1
  45. anchors_preset = 2
  46. anchor_top = 1.0
  47. anchor_bottom = 1.0
  48. offset_top = -36.0
  49. offset_right = 160.0
  50. grow_vertical = 0
  51. color = Color(1, 1, 1, 0.313726)
  52. script = ExtResource("2_6qfy3")
  53.  
  54. [node name="S_HoverRoot" type="Control" parent="DoorToolRoot"]
  55. anchors_preset = 0
  56. rotation = 3.14159
  57. scale = Vector2(-1, 1)
  58.  
  59. [node name="S_HoverArea" type="ColorRect" parent="DoorToolRoot/S_HoverRoot"]
  60. layout_mode = 1
  61. anchors_preset = 2
  62. anchor_top = 1.0
  63. anchor_bottom = 1.0
  64. offset_left = -9.12665e-05
  65. offset_top = -36.0
  66. offset_right = 160.0
  67. grow_vertical = 0
  68. color = Color(1, 1, 1, 0.313726)
  69. script = ExtResource("2_6qfy3")
  70.  
  71. [node name="W_HoverRoot" type="Control" parent="DoorToolRoot"]
  72. anchors_preset = 0
  73. rotation = 4.71239
  74. scale = Vector2(-1, 1)
  75.  
  76. [node name="W_HoverArea" type="ColorRect" parent="DoorToolRoot/W_HoverRoot"]
  77. layout_mode = 1
  78. anchors_preset = 2
  79. anchor_top = 1.0
  80. anchor_bottom = 1.0
  81. offset_top = -36.0
  82. offset_right = 160.0
  83. grow_vertical = 0
  84. color = Color(1, 1, 1, 0.313726)
  85. script = ExtResource("2_6qfy3")
  86.  
  87. [node name="HoverPreviewRoot" type="Control" parent="DoorToolRoot"]
  88. visible = false
  89. anchors_preset = 0
  90. mouse_filter = 2
  91.  
  92. [node name="HoverPreview" type="TextureRect" parent="DoorToolRoot/HoverPreviewRoot"]
  93. layout_mode = 1
  94. anchors_preset = 7
  95. anchor_left = 0.5
  96. anchor_top = 1.0
  97. anchor_right = 0.5
  98. anchor_bottom = 1.0
  99. offset_left = -2.0
  100. offset_top = -36.0
  101. offset_right = 2.0
  102. grow_horizontal = 2
  103. grow_vertical = 0
  104. mouse_filter = 2
  105. texture = ExtResource("3_trbb5")
  106.  
  107. [node name="DoorToolTemplate" type="Control" parent="DoorToolRoot"]
  108. anchors_preset = 0
  109. script = ExtResource("3_3w0w6")
  110.  
  111. [node name="DoorArea" type="ColorRect" parent="DoorToolRoot/DoorToolTemplate"]
  112. layout_mode = 1
  113. anchors_preset = 2
  114. anchor_top = 1.0
  115. anchor_bottom = 1.0
  116. offset_top = -32.0
  117. offset_right = 64.0
  118. grow_vertical = 0
  119. color = Color(0.184314, 1, 0.0392157, 0.188235)
  120.  
  121. [node name="StartBtn" type="TextureButton" parent="DoorToolRoot/DoorToolTemplate"]
  122. layout_mode = 1
  123. anchors_preset = 3
  124. anchor_left = 1.0
  125. anchor_top = 1.0
  126. anchor_right = 1.0
  127. anchor_bottom = 1.0
  128. offset_left = -4.0
  129. offset_top = -36.0
  130. grow_horizontal = 0
  131. grow_vertical = 0
  132. mouse_filter = 1
  133. texture_normal = ExtResource("3_trbb5")
  134. stretch_mode = 0
  135. script = ExtResource("3_45muq")
  136.  
  137. [node name="EndBtn" type="TextureButton" parent="DoorToolRoot/DoorToolTemplate"]
  138. layout_mode = 1
  139. anchors_preset = 2
  140. anchor_top = 1.0
  141. anchor_bottom = 1.0
  142. offset_left = 64.0
  143. offset_top = -36.0
  144. offset_right = 68.0
  145. grow_vertical = 0
  146. texture_normal = ExtResource("3_trbb5")
  147. stretch_mode = 0
  148. script = ExtResource("3_45muq")
  149.  
  150. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  151. layout_mode = 1
  152. anchors_preset = 1
  153. anchor_left = 1.0
  154. anchor_right = 1.0
  155. offset_left = -288.0
  156. offset_top = 19.0
  157. offset_right = -20.0
  158. offset_bottom = 83.0
  159. grow_horizontal = 0
  160.  
  161. [node name="HandTool" type="TextureButton" parent="HBoxContainer"]
  162. layout_mode = 2
  163. texture_normal = ExtResource("2_rwvbg")
  164. texture_pressed = ExtResource("2_rwvbg")
  165. texture_hover = ExtResource("2_rwvbg")
  166.  
  167. [node name="PenTool" type="TextureButton" parent="HBoxContainer"]
  168. layout_mode = 2
  169. texture_normal = ExtResource("2_rwvbg")
  170. texture_pressed = ExtResource("2_rwvbg")
  171. texture_hover = ExtResource("2_rwvbg")
  172.  
  173. [node name="RectTool" type="TextureButton" parent="HBoxContainer"]
  174. layout_mode = 2
  175. texture_normal = ExtResource("2_rwvbg")
  176. texture_pressed = ExtResource("2_rwvbg")
  177. texture_hover = ExtResource("2_rwvbg")
  178.  
  179. [node name="DoorTool" type="TextureButton" parent="HBoxContainer"]
  180. layout_mode = 2
  181. texture_normal = ExtResource("2_rwvbg")
  182. texture_pressed = ExtResource("2_rwvbg")
  183. texture_hover = ExtResource("2_rwvbg")
  184.  
  185. [node name="CenterTool" type="TextureButton" parent="HBoxContainer"]
  186. layout_mode = 2
  187. texture_normal = ExtResource("2_rwvbg")
  188. texture_pressed = ExtResource("2_rwvbg")
  189. texture_hover = ExtResource("2_rwvbg")