2
0

ScriptEditor.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ScriptEditor" inherits="PanelContainer" category="Core" version="3.1">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. </description>
  7. <tutorials>
  8. </tutorials>
  9. <demos>
  10. </demos>
  11. <methods>
  12. <method name="can_drop_data_fw" qualifiers="const">
  13. <return type="bool">
  14. </return>
  15. <argument index="0" name="point" type="Vector2">
  16. </argument>
  17. <argument index="1" name="data" type="Variant">
  18. </argument>
  19. <argument index="2" name="from" type="Control">
  20. </argument>
  21. <description>
  22. </description>
  23. </method>
  24. <method name="drop_data_fw">
  25. <return type="void">
  26. </return>
  27. <argument index="0" name="point" type="Vector2">
  28. </argument>
  29. <argument index="1" name="data" type="Variant">
  30. </argument>
  31. <argument index="2" name="from" type="Control">
  32. </argument>
  33. <description>
  34. </description>
  35. </method>
  36. <method name="get_current_script">
  37. <return type="Script">
  38. </return>
  39. <description>
  40. Returns a [Script] that is currently active in editor.
  41. </description>
  42. </method>
  43. <method name="get_drag_data_fw">
  44. <return type="Variant">
  45. </return>
  46. <argument index="0" name="point" type="Vector2">
  47. </argument>
  48. <argument index="1" name="from" type="Control">
  49. </argument>
  50. <description>
  51. </description>
  52. </method>
  53. <method name="get_open_scripts" qualifiers="const">
  54. <return type="Array">
  55. </return>
  56. <description>
  57. Returns an array with all [Script] objects which are currently open in editor.
  58. </description>
  59. </method>
  60. <method name="open_script_create_dialog">
  61. <return type="void">
  62. </return>
  63. <argument index="0" name="base_name" type="String">
  64. </argument>
  65. <argument index="1" name="base_path" type="String">
  66. </argument>
  67. <description>
  68. </description>
  69. </method>
  70. </methods>
  71. <signals>
  72. <signal name="editor_script_changed">
  73. <argument index="0" name="script" type="Script">
  74. </argument>
  75. <description>
  76. Emitted when user changed active script. Argument is a freshly activated [Script].
  77. </description>
  78. </signal>
  79. <signal name="script_close">
  80. <argument index="0" name="script" type="Script">
  81. </argument>
  82. <description>
  83. Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed.
  84. </description>
  85. </signal>
  86. </signals>
  87. <constants>
  88. </constants>
  89. </class>