ScriptEditor.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditor" inherits="PanelContainer" version="3.2">
  3. <brief_description>
  4. Godot editor's script editor.
  5. </brief_description>
  6. <description>
  7. [b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_script_editor].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="can_drop_data_fw" qualifiers="const">
  13. <return type="bool">
  14. </return>
  15. <argument index="0" name="point" type="Vector2">
  16. </argument>
  17. <argument index="1" name="data" type="Variant">
  18. </argument>
  19. <argument index="2" name="from" type="Control">
  20. </argument>
  21. <description>
  22. </description>
  23. </method>
  24. <method name="drop_data_fw">
  25. <return type="void">
  26. </return>
  27. <argument index="0" name="point" type="Vector2">
  28. </argument>
  29. <argument index="1" name="data" type="Variant">
  30. </argument>
  31. <argument index="2" name="from" type="Control">
  32. </argument>
  33. <description>
  34. </description>
  35. </method>
  36. <method name="get_current_script">
  37. <return type="Script">
  38. </return>
  39. <description>
  40. Returns a [Script] that is currently active in editor.
  41. </description>
  42. </method>
  43. <method name="get_drag_data_fw">
  44. <return type="Variant">
  45. </return>
  46. <argument index="0" name="point" type="Vector2">
  47. </argument>
  48. <argument index="1" name="from" type="Control">
  49. </argument>
  50. <description>
  51. </description>
  52. </method>
  53. <method name="get_open_scripts" qualifiers="const">
  54. <return type="Array">
  55. </return>
  56. <description>
  57. Returns an array with all [Script] objects which are currently open in editor.
  58. </description>
  59. </method>
  60. <method name="goto_line">
  61. <return type="void">
  62. </return>
  63. <argument index="0" name="line_number" type="int">
  64. </argument>
  65. <description>
  66. Goes to the specified line in the current script.
  67. </description>
  68. </method>
  69. <method name="open_script_create_dialog">
  70. <return type="void">
  71. </return>
  72. <argument index="0" name="base_name" type="String">
  73. </argument>
  74. <argument index="1" name="base_path" type="String">
  75. </argument>
  76. <description>
  77. </description>
  78. </method>
  79. </methods>
  80. <signals>
  81. <signal name="editor_script_changed">
  82. <argument index="0" name="script" type="Script">
  83. </argument>
  84. <description>
  85. Emitted when user changed active script. Argument is a freshly activated [Script].
  86. </description>
  87. </signal>
  88. <signal name="script_close">
  89. <argument index="0" name="script" type="Script">
  90. </argument>
  91. <description>
  92. Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed.
  93. </description>
  94. </signal>
  95. </signals>
  96. <constants>
  97. </constants>
  98. </class>