EditorTest.tscn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [gd_scene load_steps=3 format=3 uid="uid://b6vfotuimp4ay"]
  2. [ext_resource type="Script" uid="uid://do4egrkh2y7ec" path="res://Scripts/editor_test.gd" id="1_xvgr4"]
  3. [ext_resource type="Texture2D" uid="uid://bkbthijjqw52q" path="res://icon.svg" id="2_xvgr4"]
  4. [node name="Control" type="Control"]
  5. layout_mode = 3
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. grow_horizontal = 2
  10. grow_vertical = 2
  11. script = ExtResource("1_xvgr4")
  12. [node name="Button" type="Button" parent="."]
  13. layout_mode = 1
  14. offset_left = 33.0
  15. offset_top = 486.0
  16. offset_right = 291.0
  17. offset_bottom = 589.0
  18. text = "test"
  19. [node name="Panel" type="Panel" parent="."]
  20. layout_mode = 1
  21. offset_left = 27.0
  22. offset_top = 68.0
  23. offset_right = 318.0
  24. offset_bottom = 454.0
  25. [node name="TextureRect" type="TextureRect" parent="."]
  26. layout_mode = 1
  27. offset_left = 394.0
  28. offset_top = 78.0
  29. offset_right = 644.0
  30. offset_bottom = 457.0
  31. texture = ExtResource("2_xvgr4")
  32. [node name="Label" type="Label" parent="."]
  33. layout_mode = 0
  34. offset_left = 445.0
  35. offset_top = 462.0
  36. offset_right = 584.0
  37. offset_bottom = 584.0
  38. text = "drop here"
  39. [node name="FileDialog" type="FileDialog" parent="."]
  40. title = "Open File(s)"
  41. initial_position = 2
  42. ok_button_text = "Open"
  43. dialog_hide_on_ok = true
  44. file_mode = 1
  45. access = 2
  46. filters = PackedStringArray("*.png")
  47. use_native_dialog = true
  48. [connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
  49. [connection signal="files_selected" from="FileDialog" to="." method="_on_file_dialog_files_selected"]