ScriptEditor.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditor" inherits="PanelContainer" version="3.3">
  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. Opens the script create dialog. The script will extend [code]base_name[/code]. The file extension can be omitted from [code]base_path[/code]. It will be added based on the selected scripting language.
  78. </description>
  79. </method>
  80. </methods>
  81. <signals>
  82. <signal name="editor_script_changed">
  83. <argument index="0" name="script" type="Script">
  84. </argument>
  85. <description>
  86. Emitted when user changed active script. Argument is a freshly activated [Script].
  87. </description>
  88. </signal>
  89. <signal name="script_close">
  90. <argument index="0" name="script" type="Script">
  91. </argument>
  92. <description>
  93. Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed.
  94. </description>
  95. </signal>
  96. </signals>
  97. <constants>
  98. </constants>
  99. </class>