class_scripteditorbase.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ScriptEditorBase.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ScriptEditorBase:
  6. ScriptEditorBase
  7. ================
  8. **Inherits:** :ref:`VBoxContainer<class_VBoxContainer>` **<** :ref:`BoxContainer<class_BoxContainer>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Base editor for editing scripts in the :ref:`ScriptEditor<class_ScriptEditor>`.
  10. Description
  11. -----------
  12. Base editor for editing scripts in the :ref:`ScriptEditor<class_ScriptEditor>`, this does not include documentation items.
  13. Methods
  14. -------
  15. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`add_syntax_highlighter<class_ScriptEditorBase_method_add_syntax_highlighter>` **(** :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` highlighter **)** |
  17. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Control<class_Control>` | :ref:`get_base_editor<class_ScriptEditorBase_method_get_base_editor>` **(** **)** |const| |
  19. +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. Signals
  21. -------
  22. .. _class_ScriptEditorBase_signal_edited_script_changed:
  23. - **edited_script_changed** **(** **)**
  24. Emitted after script validation. For visual scripts on modification.
  25. ----
  26. .. _class_ScriptEditorBase_signal_go_to_help:
  27. - **go_to_help** **(** :ref:`String<class_String>` what **)**
  28. Emitted when the user requests a specific documentation page.
  29. ----
  30. .. _class_ScriptEditorBase_signal_name_changed:
  31. - **name_changed** **(** **)**
  32. Emitted after script validation or when the edited resource has changed. Not used by visual scripts.
  33. ----
  34. .. _class_ScriptEditorBase_signal_replace_in_files_requested:
  35. - **replace_in_files_requested** **(** :ref:`String<class_String>` text **)**
  36. Emitted when the user request to find and replace text in the file system. Not used by visual scripts.
  37. ----
  38. .. _class_ScriptEditorBase_signal_request_help:
  39. - **request_help** **(** :ref:`String<class_String>` topic **)**
  40. Emitted when the user requests contextual help.
  41. ----
  42. .. _class_ScriptEditorBase_signal_request_open_script_at_line:
  43. - **request_open_script_at_line** **(** :ref:`Object<class_Object>` script, :ref:`int<class_int>` line **)**
  44. Emitted when the user requests a script.
  45. ----
  46. .. _class_ScriptEditorBase_signal_request_save_history:
  47. - **request_save_history** **(** **)**
  48. Emitted when the user contextual goto and the item is in the same script.
  49. ----
  50. .. _class_ScriptEditorBase_signal_search_in_files_requested:
  51. - **search_in_files_requested** **(** :ref:`String<class_String>` text **)**
  52. Emitted when the user request to search text in the file system. Not used by visual scripts.
  53. Method Descriptions
  54. -------------------
  55. .. _class_ScriptEditorBase_method_add_syntax_highlighter:
  56. - void **add_syntax_highlighter** **(** :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` highlighter **)**
  57. Adds a :ref:`EditorSyntaxHighlighter<class_EditorSyntaxHighlighter>` to the open script.
  58. ----
  59. .. _class_ScriptEditorBase_method_get_base_editor:
  60. - :ref:`Control<class_Control>` **get_base_editor** **(** **)** |const|
  61. Returns the underlying :ref:`Control<class_Control>` used for editing scripts. This can be either :ref:`CodeEdit<class_CodeEdit>` (for text scripts) or :ref:`GraphEdit<class_GraphEdit>` (for visual scripts).
  62. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  63. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  64. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  65. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  66. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  67. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`