Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / EditorTileImage.tscn
@小李xl 小李xl on 21 Jan 2024 5 KB 创建地牢组时选择TileSet
  1. [gd_scene load_steps=5 format=3 uid="uid://c0j60lj0euk3y"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/editorTileImage/EditorTileImagePanel.cs" id="1_y1hns"]
  4. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="2_ntsra"]
  5. [ext_resource type="Script" path="res://src/game/ui/editorTileImage/ImageBg.cs" id="2_qkj2u"]
  6. [ext_resource type="Script" path="res://src/game/ui/editorTileImage/RectBrush.cs" id="3_fic1t"]
  7.  
  8. [node name="EditorTileImage" type="Control"]
  9. layout_mode = 3
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. grow_horizontal = 2
  14. grow_vertical = 2
  15. script = ExtResource("1_y1hns")
  16.  
  17. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  18. layout_mode = 1
  19. anchors_preset = 15
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. grow_horizontal = 2
  23. grow_vertical = 2
  24. theme_override_constants/separation = 0
  25.  
  26. [node name="Left" type="Panel" parent="HBoxContainer"]
  27. layout_mode = 2
  28. size_flags_horizontal = 3
  29.  
  30. [node name="Bg" type="ColorRect" parent="HBoxContainer/Left"]
  31. clip_children = 2
  32. layout_mode = 1
  33. anchors_preset = 15
  34. anchor_right = 1.0
  35. anchor_bottom = 1.0
  36. offset_left = 2.0
  37. offset_top = 2.0
  38. offset_right = -2.0
  39. offset_bottom = -2.0
  40. grow_horizontal = 2
  41. grow_vertical = 2
  42. color = Color(0.145098, 0.145098, 0.145098, 1)
  43. script = ExtResource("2_qkj2u")
  44.  
  45. [node name="TextureRoot" type="Control" parent="HBoxContainer/Left/Bg"]
  46. layout_mode = 1
  47. anchors_preset = 8
  48. anchor_left = 0.5
  49. anchor_top = 0.5
  50. anchor_right = 0.5
  51. anchor_bottom = 0.5
  52. offset_left = -0.5
  53. offset_top = -0.5
  54. offset_right = 0.5
  55. offset_bottom = 0.5
  56. grow_horizontal = 2
  57. grow_vertical = 2
  58. mouse_filter = 2
  59.  
  60. [node name="TileSprite" type="Sprite2D" parent="HBoxContainer/Left/Bg/TextureRoot"]
  61. centered = false
  62.  
  63. [node name="Brush" type="Control" parent="HBoxContainer/Left/Bg/TextureRoot"]
  64. layout_mode = 1
  65. anchors_preset = 15
  66. anchor_right = 1.0
  67. anchor_bottom = 1.0
  68. grow_horizontal = 2
  69. grow_vertical = 2
  70. mouse_filter = 2
  71. script = ExtResource("3_fic1t")
  72.  
  73. [node name="FocusBtn" type="TextureButton" parent="HBoxContainer/Left/Bg"]
  74. layout_mode = 1
  75. anchors_preset = 1
  76. anchor_left = 1.0
  77. anchor_right = 1.0
  78. offset_left = -79.0
  79. offset_top = 14.0
  80. offset_right = -15.0
  81. offset_bottom = 78.0
  82. grow_horizontal = 0
  83. tooltip_text = "聚焦"
  84. texture_normal = ExtResource("2_ntsra")
  85. ignore_texture_size = true
  86. stretch_mode = 5
  87.  
  88. [node name="Right" type="Panel" parent="HBoxContainer"]
  89. custom_minimum_size = Vector2(370, 0)
  90. layout_mode = 2
  91.  
  92. [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Right"]
  93. layout_mode = 1
  94. anchors_preset = 15
  95. anchor_right = 1.0
  96. anchor_bottom = 1.0
  97. offset_left = 4.0
  98. offset_top = 9.0
  99. offset_right = -4.0
  100. offset_bottom = -5.0
  101. grow_horizontal = 2
  102. grow_vertical = 2
  103. theme_override_constants/separation = 16
  104.  
  105. [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  106. layout_mode = 2
  107.  
  108. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer"]
  109. custom_minimum_size = Vector2(160, 0)
  110. layout_mode = 2
  111. text = "起始X"
  112.  
  113. [node name="StartX" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer"]
  114. layout_mode = 2
  115. size_flags_horizontal = 3
  116. max_value = 9999.0
  117.  
  118. [node name="HBoxContainer2" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  119. layout_mode = 2
  120.  
  121. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer2"]
  122. custom_minimum_size = Vector2(160, 0)
  123. layout_mode = 2
  124. text = "起始Y"
  125.  
  126. [node name="StartY" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer2"]
  127. layout_mode = 2
  128. size_flags_horizontal = 3
  129. max_value = 9999.0
  130.  
  131. [node name="HBoxContainer3" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  132. layout_mode = 2
  133.  
  134. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer3"]
  135. custom_minimum_size = Vector2(160, 0)
  136. layout_mode = 2
  137. text = "间距X"
  138.  
  139. [node name="OffsetX" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer3"]
  140. layout_mode = 2
  141. size_flags_horizontal = 3
  142. max_value = 9999.0
  143.  
  144. [node name="HBoxContainer4" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  145. layout_mode = 2
  146.  
  147. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer4"]
  148. custom_minimum_size = Vector2(160, 0)
  149. layout_mode = 2
  150. text = "间距Y"
  151.  
  152. [node name="OffsetY" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer4"]
  153. layout_mode = 2
  154. size_flags_horizontal = 3
  155. max_value = 9999.0
  156.  
  157. [node name="HBoxContainer5" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  158. layout_mode = 2
  159.  
  160. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer5"]
  161. custom_minimum_size = Vector2(160, 0)
  162. layout_mode = 2
  163. text = "横轴数量"
  164.  
  165. [node name="HCount" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer5"]
  166. layout_mode = 2
  167. size_flags_horizontal = 3
  168. max_value = 9999.0
  169.  
  170. [node name="HBoxContainer6" type="HBoxContainer" parent="HBoxContainer/Right/VBoxContainer"]
  171. layout_mode = 2
  172.  
  173. [node name="Label" type="Label" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer6"]
  174. custom_minimum_size = Vector2(160, 0)
  175. layout_mode = 2
  176. text = "纵轴数量"
  177.  
  178. [node name="VCount" type="SpinBox" parent="HBoxContainer/Right/VBoxContainer/HBoxContainer6"]
  179. layout_mode = 2
  180. size_flags_horizontal = 3
  181. max_value = 9999.0