Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditor.tscn
@小李xl 小李xl on 11 Mar 2024 5 KB 制作图鉴
  1. [gd_scene load_steps=8 format=3 uid="uid://dn5brsxa6w3l6"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditor/TileSetEditorPanel.cs" id="1_rgx4n"]
  4. [ext_resource type="Texture2D" uid="uid://cajcnlimvoxk" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_naycu"]
  5. [ext_resource type="Texture2D" uid="uid://cat35d7ueu7gu" path="res://resource/sprite/ui/commonIcon/Save.png" id="3_bcuxk"]
  6. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="4_t8bqb"]
  7. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="4_u8gg1"]
  8. [ext_resource type="Texture2D" uid="uid://c5778ntk2rdon" path="res://resource/sprite/ui/commonIcon/Delete.png" id="5_gepb1"]
  9. [ext_resource type="Texture2D" uid="uid://c4ltpf5a3egu1" path="res://resource/sprite/ui/commonIcon/Error_mini.png" id="7_2tur5"]
  10.  
  11. [node name="TileSetEditor" type="Control"]
  12. layout_mode = 3
  13. anchors_preset = 15
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. grow_horizontal = 2
  17. grow_vertical = 2
  18. script = ExtResource("1_rgx4n")
  19.  
  20. [node name="Bg" type="Panel" parent="."]
  21. layout_mode = 1
  22. anchors_preset = 15
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. grow_horizontal = 2
  26. grow_vertical = 2
  27.  
  28. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  29. layout_mode = 1
  30. anchors_preset = 15
  31. anchor_right = 1.0
  32. anchor_bottom = 1.0
  33. grow_horizontal = 2
  34. grow_vertical = 2
  35. theme_override_constants/separation = 0
  36.  
  37. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  38. custom_minimum_size = Vector2(0, 70)
  39. layout_mode = 2
  40.  
  41. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  42. layout_mode = 2
  43. offset_left = 2.0
  44. offset_top = 2.0
  45. offset_right = 62.0
  46. offset_bottom = 68.0
  47. size_flags_horizontal = 0
  48. icon = ExtResource("2_naycu")
  49. icon_alignment = 1
  50.  
  51. [node name="Save" type="Button" parent="Bg/VBoxContainer/Head"]
  52. layout_mode = 0
  53. offset_left = 64.0
  54. offset_top = 2.0
  55. offset_right = 124.0
  56. offset_bottom = 68.0
  57. grow_vertical = 2
  58. size_flags_horizontal = 0
  59. icon = ExtResource("3_bcuxk")
  60. icon_alignment = 1
  61.  
  62. [node name="Title" type="Label" parent="Bg/VBoxContainer/Head"]
  63. layout_mode = 0
  64. offset_left = 136.0
  65. offset_top = 2.0
  66. offset_right = 272.0
  67. offset_bottom = 68.0
  68. text = "正在编辑"
  69. vertical_alignment = 1
  70.  
  71. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  72. layout_mode = 2
  73. size_flags_vertical = 3
  74. theme_override_constants/separation = 0
  75.  
  76. [node name="LeftRoot" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  77. layout_mode = 2
  78. size_flags_horizontal = 3
  79.  
  80. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot"]
  81. layout_mode = 1
  82. anchors_preset = 15
  83. anchor_right = 1.0
  84. anchor_bottom = 1.0
  85. offset_left = 2.0
  86. offset_top = 2.0
  87. offset_right = -2.0
  88. offset_bottom = -2.0
  89. grow_horizontal = 2
  90. grow_vertical = 2
  91.  
  92. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  93. custom_minimum_size = Vector2(0, 50)
  94. layout_mode = 2
  95.  
  96. [node name="Label" type="Label" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  97. layout_mode = 2
  98. size_flags_horizontal = 3
  99. text = "资源:"
  100.  
  101. [node name="AddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  102. layout_mode = 2
  103. icon = ExtResource("4_u8gg1")
  104.  
  105. [node name="DeleteButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  106. layout_mode = 2
  107. icon = ExtResource("5_gepb1")
  108.  
  109. [node name="OptionButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  110. custom_minimum_size = Vector2(0, 50)
  111. layout_mode = 2
  112. size_flags_horizontal = 3
  113.  
  114. [node name="ColorRect" type="ColorRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  115. custom_minimum_size = Vector2(0, 3)
  116. layout_mode = 2
  117. color = Color(0.188235, 0.188235, 0.188235, 1)
  118.  
  119. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  120. layout_mode = 2
  121. size_flags_vertical = 3
  122.  
  123. [node name="Tab" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer"]
  124. custom_minimum_size = Vector2(0, 60)
  125. layout_mode = 2
  126. size_flags_horizontal = 3
  127. text = "页签"
  128. flat = true
  129.  
  130. [node name="ErrorIcon" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer/Tab"]
  131. layout_mode = 1
  132. anchors_preset = 6
  133. anchor_left = 1.0
  134. anchor_top = 0.5
  135. anchor_right = 1.0
  136. anchor_bottom = 0.5
  137. offset_left = -45.0
  138. offset_top = -20.0
  139. offset_right = -5.0
  140. offset_bottom = 20.0
  141. grow_horizontal = 0
  142. grow_vertical = 2
  143. mouse_filter = 2
  144. texture = ExtResource("7_2tur5")
  145.  
  146. [node name="Select" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer/Tab"]
  147. layout_mode = 1
  148. anchors_preset = 15
  149. anchor_right = 1.0
  150. anchor_bottom = 1.0
  151. grow_horizontal = 2
  152. grow_vertical = 2
  153. texture = ExtResource("4_t8bqb")
  154. region_rect = Rect2(0, 0, 36, 36)
  155. patch_margin_left = 4
  156. patch_margin_top = 4
  157. patch_margin_right = 4
  158. patch_margin_bottom = 4
  159.  
  160. [node name="RightRoot" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  161. clip_children = 2
  162. layout_mode = 2
  163. size_flags_horizontal = 3
  164. size_flags_stretch_ratio = 6.0