Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditor.tscn
  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 = 1
  81. anchors_preset = 15
  82. anchor_right = 1.0
  83. anchor_bottom = 1.0
  84. offset_left = 2.0
  85. offset_top = 2.0
  86. offset_right = -2.0
  87. offset_bottom = -2.0
  88. grow_horizontal = 2
  89. grow_vertical = 2
  90.  
  91. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  92. custom_minimum_size = Vector2(0, 50)
  93. layout_mode = 2
  94.  
  95. [node name="Label" type="Label" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  96. layout_mode = 2
  97. size_flags_horizontal = 3
  98. text = "资源:"
  99.  
  100. [node name="AddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  101. layout_mode = 2
  102. icon = ExtResource("4_u8gg1")
  103.  
  104. [node name="DeleteButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/HBoxContainer"]
  105. layout_mode = 2
  106. icon = ExtResource("5_gepb1")
  107.  
  108. [node name="OptionButton" type="OptionButton" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  109. custom_minimum_size = Vector2(0, 50)
  110. layout_mode = 2
  111. size_flags_horizontal = 3
  112.  
  113. [node name="ColorRect" type="ColorRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  114. custom_minimum_size = Vector2(0, 3)
  115. layout_mode = 2
  116. color = Color(0.188235, 0.188235, 0.188235, 1)
  117.  
  118. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer"]
  119. layout_mode = 2
  120. size_flags_vertical = 3
  121.  
  122. [node name="Tab" type="Button" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer"]
  123. custom_minimum_size = Vector2(0, 60)
  124. layout_mode = 2
  125. size_flags_horizontal = 3
  126. text = "页签"
  127. flat = true
  128.  
  129. [node name="Select" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/LeftRoot/VBoxContainer/ScrollContainer/Tab"]
  130. layout_mode = 1
  131. anchors_preset = 15
  132. anchor_right = 1.0
  133. anchor_bottom = 1.0
  134. grow_horizontal = 2
  135. grow_vertical = 2
  136. texture = ExtResource("4_t8bqb")
  137. region_rect = Rect2(0, 0, 36, 36)
  138. patch_margin_left = 3
  139. patch_margin_top = 3
  140. patch_margin_right = 3
  141. patch_margin_bottom = 3
  142.  
  143. [node name="RightRoot" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  144. clip_children = 2
  145. layout_mode = 2
  146. size_flags_horizontal = 3
  147. size_flags_stretch_ratio = 6.0