class_scripteditor.rst 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ScriptEditor.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ScriptEditor:
  6. ScriptEditor
  7. ============
  8. **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>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Methods
  13. -------
  14. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`can_drop_data_fw<class_ScriptEditor_method_can_drop_data_fw>` **(** :ref:`Vector2<class_Vector2>` point, :ref:`Variant<class_Variant>` data, :ref:`Control<class_Control>` from **)** const |
  16. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`drop_data_fw<class_ScriptEditor_method_drop_data_fw>` **(** :ref:`Vector2<class_Vector2>` point, :ref:`Variant<class_Variant>` data, :ref:`Control<class_Control>` from **)** |
  18. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Script<class_Script>` | :ref:`get_current_script<class_ScriptEditor_method_get_current_script>` **(** **)** |
  20. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Variant<class_Variant>` | :ref:`get_drag_data_fw<class_ScriptEditor_method_get_drag_data_fw>` **(** :ref:`Vector2<class_Vector2>` point, :ref:`Control<class_Control>` from **)** |
  22. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Array<class_Array>` | :ref:`get_open_scripts<class_ScriptEditor_method_get_open_scripts>` **(** **)** const |
  24. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`open_script_create_dialog<class_ScriptEditor_method_open_script_create_dialog>` **(** :ref:`String<class_String>` base_name, :ref:`String<class_String>` base_path **)** |
  26. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. Signals
  28. -------
  29. .. _class_ScriptEditor_signal_editor_script_changed:
  30. - **editor_script_changed** **(** :ref:`Script<class_Script>` script **)**
  31. Emitted when user changed active script. Argument is a freshly activated :ref:`Script<class_Script>`.
  32. ----
  33. .. _class_ScriptEditor_signal_script_close:
  34. - **script_close** **(** :ref:`Script<class_Script>` script **)**
  35. Emitted when editor is about to close the active script. Argument is a :ref:`Script<class_Script>` that is going to be closed.
  36. Method Descriptions
  37. -------------------
  38. .. _class_ScriptEditor_method_can_drop_data_fw:
  39. - :ref:`bool<class_bool>` **can_drop_data_fw** **(** :ref:`Vector2<class_Vector2>` point, :ref:`Variant<class_Variant>` data, :ref:`Control<class_Control>` from **)** const
  40. ----
  41. .. _class_ScriptEditor_method_drop_data_fw:
  42. - void **drop_data_fw** **(** :ref:`Vector2<class_Vector2>` point, :ref:`Variant<class_Variant>` data, :ref:`Control<class_Control>` from **)**
  43. ----
  44. .. _class_ScriptEditor_method_get_current_script:
  45. - :ref:`Script<class_Script>` **get_current_script** **(** **)**
  46. Returns a :ref:`Script<class_Script>` that is currently active in editor.
  47. ----
  48. .. _class_ScriptEditor_method_get_drag_data_fw:
  49. - :ref:`Variant<class_Variant>` **get_drag_data_fw** **(** :ref:`Vector2<class_Vector2>` point, :ref:`Control<class_Control>` from **)**
  50. ----
  51. .. _class_ScriptEditor_method_get_open_scripts:
  52. - :ref:`Array<class_Array>` **get_open_scripts** **(** **)** const
  53. Returns an array with all :ref:`Script<class_Script>` objects which are currently open in editor.
  54. ----
  55. .. _class_ScriptEditor_method_open_script_create_dialog:
  56. - void **open_script_create_dialog** **(** :ref:`String<class_String>` base_name, :ref:`String<class_String>` base_path **)**