2
0

ScriptEditor.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditor" inherits="PanelContainer" version="3.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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. <argument index="0" name="point" type="Vector2" />
  15. <argument index="1" name="data" type="Variant" />
  16. <argument index="2" name="from" type="Control" />
  17. <description>
  18. </description>
  19. </method>
  20. <method name="drop_data_fw">
  21. <return type="void" />
  22. <argument index="0" name="point" type="Vector2" />
  23. <argument index="1" name="data" type="Variant" />
  24. <argument index="2" name="from" type="Control" />
  25. <description>
  26. </description>
  27. </method>
  28. <method name="get_current_script">
  29. <return type="Script" />
  30. <description>
  31. Returns a [Script] that is currently active in editor.
  32. </description>
  33. </method>
  34. <method name="get_drag_data_fw">
  35. <return type="Variant" />
  36. <argument index="0" name="point" type="Vector2" />
  37. <argument index="1" name="from" type="Control" />
  38. <description>
  39. </description>
  40. </method>
  41. <method name="get_open_scripts" qualifiers="const">
  42. <return type="Array" />
  43. <description>
  44. Returns an array with all [Script] objects which are currently open in editor.
  45. </description>
  46. </method>
  47. <method name="goto_line">
  48. <return type="void" />
  49. <argument index="0" name="line_number" type="int" />
  50. <description>
  51. Goes to the specified line in the current script.
  52. </description>
  53. </method>
  54. <method name="open_script_create_dialog">
  55. <return type="void" />
  56. <argument index="0" name="base_name" type="String" />
  57. <argument index="1" name="base_path" type="String" />
  58. <description>
  59. 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.
  60. </description>
  61. </method>
  62. <method name="reload_scripts">
  63. <return type="void" />
  64. <description>
  65. Reload all currently opened scripts from disk in case the file contents are newer.
  66. </description>
  67. </method>
  68. </methods>
  69. <signals>
  70. <signal name="editor_script_changed">
  71. <argument index="0" name="script" type="Script" />
  72. <description>
  73. Emitted when user changed active script. Argument is a freshly activated [Script].
  74. </description>
  75. </signal>
  76. <signal name="script_close">
  77. <argument index="0" name="script" type="Script" />
  78. <description>
  79. Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed.
  80. </description>
  81. </signal>
  82. </signals>
  83. <constants>
  84. </constants>
  85. </class>