Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorImport.tscn
  1. [gd_scene load_steps=4 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. [ext_resource type="Texture2D" uid="uid://d2wslibovwv7w" path="res://resource/sprite/ui/commonIcon/CenterTool.png" id="3_tbedj"]
  6.  
  7. [node name="TileSetEditorImport" type="Control"]
  8. layout_mode = 3
  9. anchors_preset = 15
  10. anchor_right = 1.0
  11. anchor_bottom = 1.0
  12. grow_horizontal = 2
  13. grow_vertical = 2
  14. script = ExtResource("1_rkxih")
  15.  
  16. [node name="ImportPreviewBg" type="ColorRect" parent="."]
  17. layout_mode = 1
  18. anchors_preset = 15
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. color = Color(0.278431, 0.278431, 0.278431, 1)
  24.  
  25. [node name="ImportButton" type="Button" parent="."]
  26. layout_mode = 1
  27. anchors_preset = 15
  28. anchor_right = 1.0
  29. anchor_bottom = 1.0
  30. grow_horizontal = 2
  31. grow_vertical = 2
  32. flat = true
  33.  
  34. [node name="ImportLabel" type="Label" parent="."]
  35. layout_mode = 1
  36. anchors_preset = 8
  37. anchor_left = 0.5
  38. anchor_top = 0.5
  39. anchor_right = 0.5
  40. anchor_bottom = 0.5
  41. offset_left = -388.0
  42. offset_top = 39.0
  43. offset_right = 388.0
  44. offset_bottom = 79.0
  45. grow_horizontal = 2
  46. grow_vertical = 2
  47. text = "点击导入纹理或者将纹理拖拽到该区域, 格式为'.png'"
  48.  
  49. [node name="ImportIcon" type="TextureRect" parent="."]
  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 = -32.0
  57. offset_top = -32.0
  58. offset_right = 32.0
  59. offset_bottom = 32.0
  60. grow_horizontal = 2
  61. grow_vertical = 2
  62. mouse_filter = 2
  63. texture = ExtResource("2_cc6ug")
  64.  
  65. [node name="Control" type="Control" parent="."]
  66. layout_mode = 1
  67. anchors_preset = 8
  68. anchor_left = 0.5
  69. anchor_top = 0.5
  70. anchor_right = 0.5
  71. anchor_bottom = 0.5
  72. offset_left = -0.5
  73. offset_top = -0.5
  74. offset_right = 0.5
  75. offset_bottom = 0.5
  76. grow_horizontal = 2
  77. grow_vertical = 2
  78. mouse_filter = 2
  79.  
  80. [node name="ImportPreview" type="Sprite2D" parent="Control"]
  81.  
  82. [node name="ImportColorPicker" type="Button" parent="."]
  83. layout_mode = 1
  84. anchors_preset = 1
  85. anchor_left = 1.0
  86. anchor_right = 1.0
  87. offset_left = -269.0
  88. offset_top = 50.0
  89. offset_right = -65.0
  90. offset_bottom = 107.0
  91. grow_horizontal = 0
  92. text = "背景颜色"
  93.  
  94. [node name="ReimportButton" type="Button" parent="."]
  95. layout_mode = 1
  96. anchors_preset = 1
  97. anchor_left = 1.0
  98. anchor_right = 1.0
  99. offset_left = -269.0
  100. offset_top = 131.0
  101. offset_right = -65.0
  102. offset_bottom = 188.0
  103. grow_horizontal = 0
  104. text = "重新导入"
  105.  
  106. [node name="FocusBtn" type="TextureButton" parent="."]
  107. layout_mode = 1
  108. anchors_preset = 1
  109. anchor_left = 1.0
  110. anchor_right = 1.0
  111. offset_left = -129.0
  112. offset_top = 212.0
  113. offset_right = -65.0
  114. offset_bottom = 276.0
  115. grow_horizontal = 0
  116. tooltip_text = "聚焦"
  117. texture_normal = ExtResource("3_tbedj")
  118. ignore_texture_size = true
  119. stretch_mode = 5