summaryrefslogtreecommitdiff
path: root/doc/classes/Script.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Script.xml')
-rw-r--r--doc/classes/Script.xml24
1 files changed, 7 insertions, 17 deletions
diff --git a/doc/classes/Script.xml b/doc/classes/Script.xml
index c7df24879e..787d2c24bf 100644
--- a/doc/classes/Script.xml
+++ b/doc/classes/Script.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<class name="Script" inherits="Resource" category="Core" version="3.0-beta">
+<class name="Script" inherits="Resource" category="Core" version="3.0-stable">
<brief_description>
A class stored as a resource.
</brief_description>
@@ -8,6 +8,7 @@
The 'new' method of a script subclass creates a new instance. [method Object.set_script] extends an existing object, if that object's class matches one of the script's base classes.
</description>
<tutorials>
+ http://docs.godotengine.org/en/3.0/getting_started/step_by_step/scripting.html
</tutorials>
<demos>
</demos>
@@ -31,13 +32,6 @@
<description>
</description>
</method>
- <method name="get_source_code" qualifiers="const">
- <return type="String">
- </return>
- <description>
- Returns the script source code, or an empty string if source code is not available.
- </description>
- </method>
<method name="has_script_signal" qualifiers="const">
<return type="bool">
</return>
@@ -79,16 +73,12 @@
Reloads the script's class implementation. Returns an error code.
</description>
</method>
- <method name="set_source_code">
- <return type="void">
- </return>
- <argument index="0" name="source" type="String">
- </argument>
- <description>
- Sets the script source code. Does not reload the class implementation.
- </description>
- </method>
</methods>
+ <members>
+ <member name="source_code" type="String" setter="set_source_code" getter="get_source_code">
+ The script source code, or an empty string if source code is not available. When set, does not reload the class implementation automatically.
+ </member>
+ </members>
<constants>
</constants>
</class>