Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorImport.tscn
  1. [gd_scene load_steps=3 format=3 uid="uid://d4h6gt4jkx25e"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorImport/TileSetEditorImportPanel.cs" id="1_rkxih"]
  4. [ext_resource type="Texture2D" uid="uid://duos2p6if4kcp" path="res://resource/sprite/ui/commonIcon/Import.png" id="2_cc6ug"]
  5.  
  6. [node name="TileSetEditorImport" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_rkxih")
  14.  
  15. [node name="ImportPreviewBg" type="ColorRect" parent="."]
  16. layout_mode = 1
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. color = Color(0.278431, 0.278431, 0.278431, 1)
  23.  
  24. [node name="ImportButton" type="Button" parent="."]
  25. layout_mode = 1
  26. anchors_preset = 15
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31. flat = true
  32.  
  33. [node name="ImportLabel" type="Label" parent="."]
  34. layout_mode = 1
  35. anchors_preset = 8
  36. anchor_left = 0.5
  37. anchor_top = 0.5
  38. anchor_right = 0.5
  39. anchor_bottom = 0.5
  40. offset_left = -388.0
  41. offset_top = 39.0
  42. offset_right = 388.0
  43. offset_bottom = 79.0
  44. grow_horizontal = 2
  45. grow_vertical = 2
  46. text = "点击导入纹理或者将纹理拖拽到该区域, 格式为'.png'"
  47.  
  48. [node name="ImportIcon" type="TextureRect" parent="."]
  49. layout_mode = 1
  50. anchors_preset = 8
  51. anchor_left = 0.5
  52. anchor_top = 0.5
  53. anchor_right = 0.5
  54. anchor_bottom = 0.5
  55. offset_left = -32.0
  56. offset_top = -32.0
  57. offset_right = 32.0
  58. offset_bottom = 32.0
  59. grow_horizontal = 2
  60. grow_vertical = 2
  61. mouse_filter = 2
  62. texture = ExtResource("2_cc6ug")
  63.  
  64. [node name="Control" type="Control" parent="."]
  65. layout_mode = 1
  66. anchors_preset = 8
  67. anchor_left = 0.5
  68. anchor_top = 0.5
  69. anchor_right = 0.5
  70. anchor_bottom = 0.5
  71. offset_left = -0.5
  72. offset_top = -0.5
  73. offset_right = 0.5
  74. offset_bottom = 0.5
  75. grow_horizontal = 2
  76. grow_vertical = 2
  77. mouse_filter = 2
  78.  
  79. [node name="ImportPreview" type="Sprite2D" parent="Control"]
  80.  
  81. [node name="ImportColorPicker" type="Button" parent="."]
  82. layout_mode = 1
  83. anchors_preset = 1
  84. anchor_left = 1.0
  85. anchor_right = 1.0
  86. offset_left = -269.0
  87. offset_top = 50.0
  88. offset_right = -65.0
  89. offset_bottom = 107.0
  90. grow_horizontal = 0
  91. text = "背景颜色"
  92.  
  93. [node name="ReimportButton" type="Button" parent="."]
  94. layout_mode = 1
  95. anchors_preset = 1
  96. anchor_left = 1.0
  97. anchor_right = 1.0
  98. offset_left = -269.0
  99. offset_top = 131.0
  100. offset_right = -65.0
  101. offset_bottom = 188.0
  102. grow_horizontal = 0
  103. text = "重新导入"