mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
78 lines
4.5 KiB
ReStructuredText
78 lines
4.5 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the ScriptEditor.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_ScriptEditor:
|
|
|
|
ScriptEditor
|
|
============
|
|
|
|
**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>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`can_drop_data_fw<class_ScriptEditor_can_drop_data_fw>` **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Variant<class_variant>` arg1, :ref:`Control<class_control>` arg2 **)** const |
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`drop_data_fw<class_ScriptEditor_drop_data_fw>` **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Variant<class_variant>` arg1, :ref:`Control<class_control>` arg2 **)** |
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Script<class_script>` | :ref:`get_current_script<class_ScriptEditor_get_current_script>` **(** **)** |
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Variant<class_variant>` | :ref:`get_drag_data_fw<class_ScriptEditor_get_drag_data_fw>` **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Control<class_control>` arg1 **)** |
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Array<class_array>` | :ref:`get_open_scripts<class_ScriptEditor_get_open_scripts>` **(** **)** const |
|
|
+--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Signals
|
|
-------
|
|
|
|
.. _class_ScriptEditor_editor_script_changed:
|
|
|
|
- **editor_script_changed** **(** :ref:`Object<class_object>` script **)**
|
|
|
|
Emitted when user changed active script. Argument is a freshly activated :ref:`Script<class_script>`.
|
|
|
|
.. _class_ScriptEditor_script_close:
|
|
|
|
- **script_close** **(** :ref:`Object<class_object>` script **)**
|
|
|
|
Emitted when editor is about to close the active script. Argument is a :ref:`Script<class_script>` that is going to be closed.
|
|
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_ScriptEditor_can_drop_data_fw:
|
|
|
|
- :ref:`bool<class_bool>` **can_drop_data_fw** **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Variant<class_variant>` arg1, :ref:`Control<class_control>` arg2 **)** const
|
|
|
|
.. _class_ScriptEditor_drop_data_fw:
|
|
|
|
- void **drop_data_fw** **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Variant<class_variant>` arg1, :ref:`Control<class_control>` arg2 **)**
|
|
|
|
.. _class_ScriptEditor_get_current_script:
|
|
|
|
- :ref:`Script<class_script>` **get_current_script** **(** **)**
|
|
|
|
Returns a :ref:`Script<class_script>` that is currently active in editor.
|
|
|
|
.. _class_ScriptEditor_get_drag_data_fw:
|
|
|
|
- :ref:`Variant<class_variant>` **get_drag_data_fw** **(** :ref:`Vector2<class_vector2>` arg0, :ref:`Control<class_control>` arg1 **)**
|
|
|
|
.. _class_ScriptEditor_get_open_scripts:
|
|
|
|
- :ref:`Array<class_array>` **get_open_scripts** **(** **)** const
|
|
|
|
Returns an array with all :ref:`Script<class_script>` objects which are currently open in editor.
|
|
|
|
|