class_scripteditor.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ScriptEditor.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ScriptEditor:
  5. ScriptEditor
  6. ============
  7. **Inherits:** :ref:`PanelContainer<class_panelcontainer>` **<** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +------------------------------+---------------------------------------------------------------------------------+
  14. | :ref:`Script<class_script>` | :ref:`get_current_script<class_ScriptEditor_get_current_script>` **(** **)** |
  15. +------------------------------+---------------------------------------------------------------------------------+
  16. | :ref:`Array<class_array>` | :ref:`get_open_scripts<class_ScriptEditor_get_open_scripts>` **(** **)** const |
  17. +------------------------------+---------------------------------------------------------------------------------+
  18. Signals
  19. -------
  20. - **editor_script_changed** **(** :ref:`Object<class_object>` script **)**
  21. Emitted when user changed active script. Argument is a freshly activated :ref:`Script<class_script>`.
  22. - **script_close** **(** :ref:`Object<class_object>` script **)**
  23. Emitted when editor is about to close the active script. Argument is a :ref:`Script<class_script>` that is going to be closed.
  24. Member Function Description
  25. ---------------------------
  26. .. _class_ScriptEditor_get_current_script:
  27. - :ref:`Script<class_script>` **get_current_script** **(** **)**
  28. Returns a :ref:`Script<class_script>` that is currently active in editor.
  29. .. _class_ScriptEditor_get_open_scripts:
  30. - :ref:`Array<class_array>` **get_open_scripts** **(** **)** const
  31. Returns an array with all :ref:`Script<class_script>` objects which are currently open in editor.