class_scripteditor.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:`bool<class_bool>` | :ref:`can_drop_data_fw<class_ScriptEditor_can_drop_data_fw>` **(** :ref:`Vector2<class_vector2>` point, :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` from **)** const |
  15. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`drop_data_fw<class_ScriptEditor_drop_data_fw>` **(** :ref:`Vector2<class_vector2>` point, :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` from **)** |
  17. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Script<class_script>` | :ref:`get_current_script<class_ScriptEditor_get_current_script>` **(** **)** |
  19. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Variant<class_variant>` | :ref:`get_drag_data_fw<class_ScriptEditor_get_drag_data_fw>` **(** :ref:`Vector2<class_vector2>` point, :ref:`Control<class_control>` from **)** |
  21. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Array<class_array>` | :ref:`get_open_scripts<class_ScriptEditor_get_open_scripts>` **(** **)** const |
  23. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`open_script_create_dialog<class_ScriptEditor_open_script_create_dialog>` **(** :ref:`String<class_string>` base_name, :ref:`String<class_string>` base_path **)** |
  25. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. Signals
  27. -------
  28. .. _class_ScriptEditor_editor_script_changed:
  29. - **editor_script_changed** **(** :ref:`Object<class_object>` script **)**
  30. Emitted when user changed active script. Argument is a freshly activated :ref:`Script<class_script>`.
  31. .. _class_ScriptEditor_script_close:
  32. - **script_close** **(** :ref:`Object<class_object>` script **)**
  33. Emitted when editor is about to close the active script. Argument is a :ref:`Script<class_script>` that is going to be closed.
  34. Member Function Description
  35. ---------------------------
  36. .. _class_ScriptEditor_can_drop_data_fw:
  37. - :ref:`bool<class_bool>` **can_drop_data_fw** **(** :ref:`Vector2<class_vector2>` point, :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` from **)** const
  38. .. _class_ScriptEditor_drop_data_fw:
  39. - void **drop_data_fw** **(** :ref:`Vector2<class_vector2>` point, :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` from **)**
  40. .. _class_ScriptEditor_get_current_script:
  41. - :ref:`Script<class_script>` **get_current_script** **(** **)**
  42. Returns a :ref:`Script<class_script>` that is currently active in editor.
  43. .. _class_ScriptEditor_get_drag_data_fw:
  44. - :ref:`Variant<class_variant>` **get_drag_data_fw** **(** :ref:`Vector2<class_vector2>` point, :ref:`Control<class_control>` from **)**
  45. .. _class_ScriptEditor_get_open_scripts:
  46. - :ref:`Array<class_array>` **get_open_scripts** **(** **)** const
  47. Returns an array with all :ref:`Script<class_script>` objects which are currently open in editor.
  48. .. _class_ScriptEditor_open_script_create_dialog:
  49. - void **open_script_create_dialog** **(** :ref:`String<class_string>` base_name, :ref:`String<class_string>` base_path **)**