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. Layer = null
  16.  
  17. [node name="ImportPreviewBg" type="ColorRect" parent="."]
  18. layout_mode = 1
  19. anchors_preset = 15
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. grow_horizontal = 2
  23. grow_vertical = 2
  24. color = Color(0.145098, 0.145098, 0.145098, 1)
  25.  
  26. [node name="ImportButton" type="Button" parent="."]
  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. flat = true
  34.  
  35. [node name="ImportLabel" type="Label" parent="."]
  36. layout_mode = 1
  37. anchors_preset = 8
  38. anchor_left = 0.5
  39. anchor_top = 0.5
  40. anchor_right = 0.5
  41. anchor_bottom = 0.5
  42. offset_left = -388.0
  43. offset_top = 39.0
  44. offset_right = 388.0
  45. offset_bottom = 79.0
  46. grow_horizontal = 2
  47. grow_vertical = 2
  48. text = "点击导入纹理或者将纹理拖拽到该区域, 格式为'.png'"
  49.  
  50. [node name="ImportIcon" type="TextureRect" parent="."]
  51. layout_mode = 1
  52. anchors_preset = 8
  53. anchor_left = 0.5
  54. anchor_top = 0.5
  55. anchor_right = 0.5
  56. anchor_bottom = 0.5
  57. offset_left = -32.0
  58. offset_top = -32.0
  59. offset_right = 32.0
  60. offset_bottom = 32.0
  61. grow_horizontal = 2
  62. grow_vertical = 2
  63. mouse_filter = 2
  64. texture = ExtResource("2_cc6ug")
  65.  
  66. [node name="Control" type="Control" parent="."]
  67. layout_mode = 1
  68. anchors_preset = 8
  69. anchor_left = 0.5
  70. anchor_top = 0.5
  71. anchor_right = 0.5
  72. anchor_bottom = 0.5
  73. offset_left = -0.5
  74. offset_top = -0.5
  75. offset_right = 0.5
  76. offset_bottom = 0.5
  77. grow_horizontal = 2
  78. grow_vertical = 2
  79. mouse_filter = 2
  80.  
  81. [node name="ImportPreview" type="Sprite2D" parent="Control"]
  82.  
  83. [node name="ImportColorPicker" type="Button" parent="."]
  84. layout_mode = 1
  85. anchors_preset = 1
  86. anchor_left = 1.0
  87. anchor_right = 1.0
  88. offset_left = -269.0
  89. offset_top = 50.0
  90. offset_right = -65.0
  91. offset_bottom = 107.0
  92. grow_horizontal = 0
  93. text = "背景颜色"
  94.  
  95. [node name="ReimportButton" type="Button" parent="."]
  96. layout_mode = 1
  97. anchors_preset = 1
  98. anchor_left = 1.0
  99. anchor_right = 1.0
  100. offset_left = -269.0
  101. offset_top = 131.0
  102. offset_right = -65.0
  103. offset_bottom = 188.0
  104. grow_horizontal = 0
  105. text = "重新导入"
  106.  
  107. [node name="FocusBtn" type="TextureButton" parent="."]
  108. layout_mode = 1
  109. anchors_preset = 1
  110. anchor_left = 1.0
  111. anchor_right = 1.0
  112. offset_left = -129.0
  113. offset_top = 212.0
  114. offset_right = -65.0
  115. offset_bottom = 276.0
  116. grow_horizontal = 0
  117. tooltip_text = "聚焦"
  118. texture_normal = ExtResource("3_tbedj")
  119. ignore_texture_size = true
  120. stretch_mode = 5