Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditor.tscn
@小李xl 小李xl on 5 Jan 2024 4 KB TileSet编辑器编辑资源
  1. [gd_scene load_steps=7 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.  
  10. [node name="TileSetEditor" 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. script = ExtResource("1_rgx4n")
  18.  
  19. [node name="Bg" type="Panel" parent="."]
  20. layout_mode = 1
  21. anchors_preset = 15
  22. anchor_right = 1.0
  23. anchor_bottom = 1.0
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26.  
  27. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  28. layout_mode = 1
  29. anchors_preset = 15
  30. anchor_right = 1.0
  31. anchor_bottom = 1.0
  32. grow_horizontal = 2
  33. grow_vertical = 2
  34. theme_override_constants/separation = 0
  35.  
  36. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  37. custom_minimum_size = Vector2(0, 70)
  38. layout_mode = 2
  39.  
  40. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  41. layout_mode = 2
  42. offset_left = 2.0
  43. offset_top = 2.0
  44. offset_right = 62.0
  45. offset_bottom = 68.0
  46. size_flags_horizontal = 0
  47. icon = ExtResource("2_naycu")
  48. icon_alignment = 1
  49.  
  50. [node name="Save" type="Button" parent="Bg/VBoxContainer/Head"]
  51. layout_mode = 0
  52. offset_left = 64.0
  53. offset_top = 2.0
  54. offset_right = 124.0
  55. offset_bottom = 68.0
  56. grow_vertical = 2
  57. size_flags_horizontal = 0
  58. icon = ExtResource("3_bcuxk")
  59. icon_alignment = 1
  60.  
  61. [node name="Title" type="Label" parent="Bg/VBoxContainer/Head"]
  62. layout_mode = 0
  63. offset_left = 136.0
  64. offset_top = 2.0
  65. offset_right = 272.0
  66. offset_bottom = 68.0
  67. text = "正在编辑"
  68. vertical_alignment = 1
  69.  
  70. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  71. layout_mode = 2
  72. size_flags_vertical = 3
  73. theme_override_constants/separation = 0
  74.  
  75. [node name="LeftRoot" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  76. layout_mode = 2
  77. size_flags_horizontal = 3
  78.  
  79. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot"]
  80. layout_mode = 2
  81. offset_left = 2.0
  82. offset_top = 5.0
  83. offset_right = 272.0
  84. offset_bottom = 1008.0
  85.  
  86. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  87. custom_minimum_size = Vector2(0, 50)
  88. layout_mode = 2
  89.  
  90. [node name="Label" type="Label" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  91. layout_mode = 2
  92. size_flags_horizontal = 3
  93. text = "资源:"
  94.  
  95. [node name="AddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  96. layout_mode = 2
  97. icon = ExtResource("4_u8gg1")
  98.  
  99. [node name="DeleteButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  100. layout_mode = 2
  101. icon = ExtResource("5_gepb1")
  102.  
  103. [node name="OptionButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  104. custom_minimum_size = Vector2(0, 50)
  105. layout_mode = 2
  106. size_flags_horizontal = 3
  107.  
  108. [node name="ColorRect" type="ColorRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  109. custom_minimum_size = Vector2(0, 3)
  110. layout_mode = 2
  111. color = Color(0.188235, 0.188235, 0.188235, 1)
  112.  
  113. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  114. layout_mode = 2
  115. size_flags_vertical = 3
  116.  
  117. [node name="Tab" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer"]
  118. custom_minimum_size = Vector2(0, 60)
  119. layout_mode = 2
  120. size_flags_horizontal = 3
  121. text = "页签"
  122. flat = true
  123.  
  124. [node name="Select" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer/Tab"]
  125. layout_mode = 1
  126. anchors_preset = 15
  127. anchor_right = 1.0
  128. anchor_bottom = 1.0
  129. grow_horizontal = 2
  130. grow_vertical = 2
  131. texture = ExtResource("4_t8bqb")
  132. region_rect = Rect2(0, 0, 36, 36)
  133. patch_margin_left = 3
  134. patch_margin_top = 3
  135. patch_margin_right = 3
  136. patch_margin_bottom = 3
  137.  
  138. [node name="RightRoot" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  139. clip_children = 2
  140. layout_mode = 2
  141. size_flags_horizontal = 3
  142. size_flags_stretch_ratio = 6.0