ScriptEditor.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditor" inherits="PanelContainer" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. </description>
  7. <tutorials>
  8. </tutorials>
  9. <demos>
  10. </demos>
  11. <methods>
  12. <method name="get_current_script">
  13. <return type="Script">
  14. </return>
  15. <description>
  16. Returns a [Script] that is currently active in editor.
  17. </description>
  18. </method>
  19. <method name="get_open_scripts" qualifiers="const">
  20. <return type="Array">
  21. </return>
  22. <description>
  23. Returns an array with all [Script] objects which are currently open in editor.
  24. </description>
  25. </method>
  26. </methods>
  27. <signals>
  28. <signal name="editor_script_changed">
  29. <argument index="0" name="script" type="Object">
  30. </argument>
  31. <description>
  32. Emitted when user changed active script. Argument is a freshly activated [Script].
  33. </description>
  34. </signal>
  35. <signal name="script_close">
  36. <argument index="0" name="script" type="Object">
  37. </argument>
  38. <description>
  39. Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed.
  40. </description>
  41. </signal>
  42. </signals>
  43. <constants>
  44. </constants>
  45. </class>