ScriptEditorBase.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditorBase" inherits="VBoxContainer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Base editor for editing scripts in the [ScriptEditor].
  5. </brief_description>
  6. <description>
  7. Base editor for editing scripts in the [ScriptEditor]. This does not include documentation items.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_syntax_highlighter">
  13. <return type="void" />
  14. <param index="0" name="highlighter" type="EditorSyntaxHighlighter" />
  15. <description>
  16. Adds a [EditorSyntaxHighlighter] to the open script.
  17. </description>
  18. </method>
  19. <method name="get_base_editor" qualifiers="const">
  20. <return type="Control" />
  21. <description>
  22. Returns the underlying [Control] used for editing scripts. For text scripts, this is a [CodeEdit].
  23. </description>
  24. </method>
  25. </methods>
  26. <signals>
  27. <signal name="edited_script_changed">
  28. <description>
  29. Emitted after script validation.
  30. </description>
  31. </signal>
  32. <signal name="go_to_help">
  33. <param index="0" name="what" type="String" />
  34. <description>
  35. Emitted when the user requests a specific documentation page.
  36. </description>
  37. </signal>
  38. <signal name="go_to_method">
  39. <param index="0" name="script" type="Object" />
  40. <param index="1" name="method" type="String" />
  41. <description>
  42. Emitted when the user requests to view a specific method of a script, similar to [signal request_open_script_at_line].
  43. </description>
  44. </signal>
  45. <signal name="name_changed">
  46. <description>
  47. Emitted after script validation or when the edited resource has changed.
  48. </description>
  49. </signal>
  50. <signal name="replace_in_files_requested">
  51. <param index="0" name="text" type="String" />
  52. <description>
  53. Emitted when the user request to find and replace text in the file system.
  54. </description>
  55. </signal>
  56. <signal name="request_help">
  57. <param index="0" name="topic" type="String" />
  58. <description>
  59. Emitted when the user requests contextual help.
  60. </description>
  61. </signal>
  62. <signal name="request_open_script_at_line">
  63. <param index="0" name="script" type="Object" />
  64. <param index="1" name="line" type="int" />
  65. <description>
  66. Emitted when the user requests to view a specific line of a script, similar to [signal go_to_method].
  67. </description>
  68. </signal>
  69. <signal name="request_save_history">
  70. <description>
  71. Emitted when the user contextual goto and the item is in the same script.
  72. </description>
  73. </signal>
  74. <signal name="request_save_previous_state">
  75. <param index="0" name="line" type="int" />
  76. <description>
  77. Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
  78. </description>
  79. </signal>
  80. <signal name="search_in_files_requested">
  81. <param index="0" name="text" type="String" />
  82. <description>
  83. Emitted when the user request to search text in the file system.
  84. </description>
  85. </signal>
  86. </signals>
  87. </class>