From 10469c1962172db954d02a3912053a99e2a0dfa3 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Thu, 28 Sep 2017 13:07:20 +0300 Subject: Document some of the VisualScript classes. --- doc/classes/VisualScript.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'doc/classes/VisualScript.xml') diff --git a/doc/classes/VisualScript.xml b/doc/classes/VisualScript.xml index 0875aafcf..db516c229 100644 --- a/doc/classes/VisualScript.xml +++ b/doc/classes/VisualScript.xml @@ -1,8 +1,12 @@ + A script implemented in the Visual Script programming environment. + A script implemented in the Visual Script programming environment. The script exends the functionality of all objects that instance it. + [method Object.set_script] extends an existing object, if that object's class matches one of the script's base classes. + You are most likely to use this class via the Visual Script editor or when writing plugins for it. @@ -15,6 +19,7 @@ + Add a custom signal with the specified name to the VisualScript. @@ -23,6 +28,7 @@ + Add a function with the specified name to the VisualScript. @@ -37,6 +43,7 @@ + Add a node to a function of the VisualScript. @@ -49,6 +56,7 @@ + Add a variable to the VisualScript, optionally giving it a default value or marking it as exported. @@ -63,6 +71,7 @@ + Add an argument to a custom signal added with [method add_custom_signal]. @@ -71,6 +80,7 @@ + Get the count of a custom signal's arguments. @@ -81,6 +91,7 @@ + Get the name of a custom signal's argument. @@ -91,6 +102,7 @@ + Get the type of a custom signal's argument. @@ -101,6 +113,7 @@ + Remove a specific custom signal's argument. @@ -113,6 +126,7 @@ + Rename a custom signal's argument. @@ -125,6 +139,7 @@ + Change the type of a custom signal's argument. @@ -137,6 +152,7 @@ + Swap two of the arguments of a custom signal. @@ -153,6 +169,7 @@ + Connect two data ports. The value of [code]from_node[/code]'s [code]from_port[/code] would be fed into [code]to_node[/code]'s [code]to_port[/code]. @@ -169,6 +186,7 @@ + Disconnect two data ports previously connected with [method data_connect]. @@ -177,6 +195,7 @@ + Returns the id of a function's entry point node. @@ -185,6 +204,7 @@ + Returns the position of the center of the screen for a given function. @@ -195,6 +215,7 @@ + Returns a node given its id and its function. @@ -205,6 +226,7 @@ + Returns a node's position in pixels. @@ -213,6 +235,7 @@ + Returns the default (initial) value of a variable. @@ -221,6 +244,7 @@ + Returns whether a variable is exported. @@ -229,6 +253,7 @@ + Returns the info for a given variable as a dictionary. The information includes its name, type, hint and usage. @@ -237,6 +262,7 @@ + Returns whether a signal exists with the specified name. @@ -253,6 +279,7 @@ + Returns whether the specified data ports are connected. @@ -261,6 +288,7 @@ + Returns whether a function exists with the specified name. @@ -271,6 +299,7 @@ + Returns whether a node exists with the given id. @@ -285,6 +314,7 @@ + Returns whether the specified sequence ports are connected. @@ -293,6 +323,7 @@ + Returns whether a variable exists with the specified name. @@ -301,6 +332,7 @@ + Remove a custom signal with the given name. @@ -309,6 +341,7 @@ + Remove a specific function and its nodes from the script. @@ -319,6 +352,7 @@ + Remove a specific node. @@ -327,6 +361,7 @@ + Remove a variable with the given name. @@ -337,6 +372,7 @@ + Change the name of a custom signal. @@ -347,6 +383,7 @@ + Change the name of a function. @@ -357,6 +394,7 @@ + Change the name of a variable. @@ -371,6 +409,8 @@ + Connect two sequence ports. The execution will flow from of [code]from_node[/code]'s [code]from_output[/code] into [code]to_node[/code]. + Unlike [method data_connect], there isn't a [code]to_port[/code], since the target node can have only one sequence port. @@ -385,6 +425,7 @@ + Disconnect two sequence ports previously connected with [method sequence_connect]. @@ -395,6 +436,7 @@ + Position the center of the screen for a function. @@ -403,6 +445,7 @@ + Set the base type of the script. @@ -415,6 +458,7 @@ + Position a node on the screen. @@ -425,6 +469,7 @@ + Change the default (initial) value of a variable. @@ -435,6 +480,7 @@ + Change whether a variable is exported. @@ -445,6 +491,7 @@ + Set a variable's info, using the same format as [method get_variable_info]. @@ -459,6 +506,7 @@ + Emitted when the ports of a node are changed. -- cgit v1.2.3-70-g09d2