Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorProject.tscn
  1. [gd_scene load_steps=6 format=3 uid="uid://bxrpxwsvveq8i"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorProject/TileSetEditorProjectPanel.cs" id="1_rklha"]
  4. [ext_resource type="Texture2D" uid="uid://cajcnlimvoxk" path="res://resource/sprite/ui/commonIcon/Back.png" id="2_4prd2"]
  5. [ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="3_htmoo"]
  6. [ext_resource type="Texture2D" uid="uid://n4atvj5fkcpg" path="res://resource/sprite/ui/commonIcon/Add.png" id="4_6incc"]
  7. [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="5_l4lwx"]
  8.  
  9. [node name="TileSetEditorProject" 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. script = ExtResource("1_rklha")
  17.  
  18. [node name="Bg" type="Panel" parent="."]
  19. layout_mode = 1
  20. anchors_preset = 15
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. grow_horizontal = 2
  24. grow_vertical = 2
  25.  
  26. [node name="VBoxContainer" type="VBoxContainer" parent="Bg"]
  27. layout_mode = 1
  28. anchors_preset = 15
  29. anchor_right = 1.0
  30. anchor_bottom = 1.0
  31. grow_horizontal = 2
  32. grow_vertical = 2
  33. theme_override_constants/separation = 0
  34.  
  35. [node name="Head" type="Panel" parent="Bg/VBoxContainer"]
  36. custom_minimum_size = Vector2(0, 70)
  37. layout_mode = 2
  38.  
  39. [node name="Back" type="Button" parent="Bg/VBoxContainer/Head"]
  40. layout_mode = 2
  41. offset_left = 2.0
  42. offset_top = 2.0
  43. offset_right = 62.0
  44. offset_bottom = 68.0
  45. size_flags_horizontal = 0
  46. icon = ExtResource("2_4prd2")
  47. icon_alignment = 1
  48.  
  49. [node name="Title" type="Label" parent="Bg/VBoxContainer/Head"]
  50. layout_mode = 1
  51. anchors_preset = 8
  52. anchor_left = 0.5
  53. anchor_top = 0.5
  54. anchor_right = 0.5
  55. anchor_bottom = 0.5
  56. offset_left = -4.5
  57. offset_top = -20.0
  58. offset_right = 4.5
  59. offset_bottom = 20.0
  60. grow_horizontal = 2
  61. grow_vertical = 2
  62. text = "图块集管理器"
  63.  
  64. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer"]
  65. layout_mode = 2
  66. size_flags_vertical = 3
  67. theme_override_constants/separation = 0
  68.  
  69. [node name="Panel" type="Panel" parent="Bg/VBoxContainer/HBoxContainer"]
  70. layout_mode = 2
  71. size_flags_horizontal = 3
  72. size_flags_stretch_ratio = 2.0
  73.  
  74. [node name="MarginContainer" type="MarginContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel"]
  75. layout_mode = 1
  76. anchors_preset = 15
  77. anchor_right = 1.0
  78. anchor_bottom = 1.0
  79. grow_horizontal = 2
  80. grow_vertical = 2
  81. theme_override_constants/margin_left = 12
  82. theme_override_constants/margin_top = 12
  83. theme_override_constants/margin_right = 12
  84. theme_override_constants/margin_bottom = 12
  85.  
  86. [node name="VBoxContainer" type="VBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer"]
  87. custom_minimum_size = Vector2(0, 45)
  88. layout_mode = 2
  89.  
  90. [node name="HBoxContainer" type="HBoxContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  91. custom_minimum_size = Vector2(0, 45)
  92. layout_mode = 2
  93.  
  94. [node name="TileSearchInput" type="LineEdit" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  95. custom_minimum_size = Vector2(400, 0)
  96. layout_mode = 2
  97. placeholder_text = "搜索"
  98.  
  99. [node name="TileSearchButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  100. layout_mode = 2
  101. icon = ExtResource("3_htmoo")
  102.  
  103. [node name="TileAddButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  104. layout_mode = 2
  105. icon = ExtResource("4_6incc")
  106.  
  107. [node name="ScrollContainer" type="ScrollContainer" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer"]
  108. layout_mode = 2
  109. size_flags_vertical = 3
  110.  
  111. [node name="TileButton" type="Button" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer"]
  112. custom_minimum_size = Vector2(200, 239)
  113. layout_mode = 2
  114.  
  115. [node name="PreviewImage" type="TextureRect" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/TileButton"]
  116. layout_mode = 1
  117. anchors_preset = 15
  118. anchor_right = 1.0
  119. anchor_bottom = 1.0
  120. offset_left = 2.0
  121. offset_top = 2.0
  122. offset_right = -2.0
  123. offset_bottom = -41.0
  124. grow_horizontal = 2
  125. grow_vertical = 2
  126. mouse_filter = 2
  127. stretch_mode = 5
  128.  
  129. [node name="TileName" type="Label" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/TileButton"]
  130. layout_mode = 1
  131. anchors_preset = 12
  132. anchor_top = 1.0
  133. anchor_right = 1.0
  134. anchor_bottom = 1.0
  135. offset_top = -46.0
  136. offset_bottom = -3.0
  137. grow_horizontal = 2
  138. grow_vertical = 0
  139. text = "Name"
  140. horizontal_alignment = 1
  141. clip_text = true
  142. text_overrun_behavior = 3
  143.  
  144. [node name="SelectTexture" type="NinePatchRect" parent="Bg/VBoxContainer/HBoxContainer/Panel/MarginContainer/VBoxContainer/ScrollContainer/TileButton"]
  145. layout_mode = 1
  146. anchors_preset = 15
  147. anchor_right = 1.0
  148. anchor_bottom = 1.0
  149. grow_horizontal = 2
  150. grow_vertical = 2
  151. texture = ExtResource("5_l4lwx")
  152. region_rect = Rect2(0, 0, 36, 36)
  153. patch_margin_left = 3
  154. patch_margin_top = 3
  155. patch_margin_right = 3
  156. patch_margin_bottom = 3