Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / MapEditorTools.tscn
@小李xl 小李xl on 25 Jul 2023 2 KB 门区域添加限制
  1. [gd_scene load_steps=6 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="Texture2D" uid="uid://uhhfgdhpk7i4" path="res://icon.png" id="2_rwvbg"]
  5. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/DoorDragArea.cs" id="3_3w0w6"]
  6. [ext_resource type="Script" path="res://src/game/ui/mapEditorTools/DoorDragButton.cs" id="3_45muq"]
  7. [ext_resource type="Texture2D" uid="uid://4wupcp53rrpi" path="res://resource/sprite/ui/mapEditorTools/DoorDragButton.png" id="3_trbb5"]
  8.  
  9. [node name="MapEditorTools" type="Control"]
  10. layout_mode = 3
  11. anchors_preset = 15
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. grow_horizontal = 2
  15. grow_vertical = 2
  16. mouse_filter = 1
  17. script = ExtResource("1_mqp1c")
  18.  
  19. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  20. layout_mode = 1
  21. anchors_preset = 1
  22. anchor_left = 1.0
  23. anchor_right = 1.0
  24. offset_left = -288.0
  25. offset_top = 19.0
  26. offset_right = -20.0
  27. offset_bottom = 83.0
  28. grow_horizontal = 0
  29.  
  30. [node name="HandTool" type="TextureButton" parent="HBoxContainer"]
  31. layout_mode = 2
  32. texture_normal = ExtResource("2_rwvbg")
  33. texture_pressed = ExtResource("2_rwvbg")
  34. texture_hover = ExtResource("2_rwvbg")
  35.  
  36. [node name="PenTool" type="TextureButton" parent="HBoxContainer"]
  37. layout_mode = 2
  38. texture_normal = ExtResource("2_rwvbg")
  39. texture_pressed = ExtResource("2_rwvbg")
  40. texture_hover = ExtResource("2_rwvbg")
  41.  
  42. [node name="RectTool" type="TextureButton" parent="HBoxContainer"]
  43. layout_mode = 2
  44. texture_normal = ExtResource("2_rwvbg")
  45. texture_pressed = ExtResource("2_rwvbg")
  46. texture_hover = ExtResource("2_rwvbg")
  47.  
  48. [node name="CenterTool" type="TextureButton" parent="HBoxContainer"]
  49. layout_mode = 2
  50. texture_normal = ExtResource("2_rwvbg")
  51. texture_pressed = ExtResource("2_rwvbg")
  52. texture_hover = ExtResource("2_rwvbg")
  53.  
  54. [node name="DoorToolTemplate" type="Control" parent="."]
  55. anchors_preset = 0
  56. script = ExtResource("3_3w0w6")
  57.  
  58. [node name="DoorArea" type="ColorRect" parent="DoorToolTemplate"]
  59. layout_mode = 1
  60. anchors_preset = 2
  61. anchor_top = 1.0
  62. anchor_bottom = 1.0
  63. offset_top = -32.0
  64. offset_right = 64.0
  65. grow_vertical = 0
  66. color = Color(0.184314, 1, 0.0392157, 0.188235)
  67.  
  68. [node name="StartBtn" type="TextureButton" parent="DoorToolTemplate"]
  69. layout_mode = 1
  70. anchors_preset = 3
  71. anchor_left = 1.0
  72. anchor_top = 1.0
  73. anchor_right = 1.0
  74. anchor_bottom = 1.0
  75. offset_left = -2.0
  76. offset_top = -36.0
  77. grow_horizontal = 0
  78. grow_vertical = 0
  79. texture_normal = ExtResource("3_trbb5")
  80. stretch_mode = 0
  81. script = ExtResource("3_45muq")
  82.  
  83. [node name="EndBtn" type="TextureButton" parent="DoorToolTemplate"]
  84. layout_mode = 1
  85. anchors_preset = 2
  86. anchor_top = 1.0
  87. anchor_bottom = 1.0
  88. offset_left = 64.0
  89. offset_top = -36.0
  90. offset_right = 66.0
  91. grow_vertical = 0
  92. texture_normal = ExtResource("3_trbb5")
  93. stretch_mode = 0
  94. script = ExtResource("3_45muq")