Update classref and docs, fix missing parameters' name

This commit is contained in:
Poommetee Ketson 2018-03-24 00:57:58 +07:00
parent 0f6fdb77c5
commit 72aa87758a
No known key found for this signature in database
GPG Key ID: A96C7CF5B077909D
11 changed files with 21 additions and 24 deletions

View File

@ -1032,9 +1032,9 @@ void _OS::_bind_methods() {
//ClassDB::bind_method(D_METHOD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0)); //ClassDB::bind_method(D_METHOD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_video_driver_count"), &_OS::get_video_driver_count); ClassDB::bind_method(D_METHOD("get_video_driver_count"), &_OS::get_video_driver_count);
ClassDB::bind_method(D_METHOD("get_video_driver_name"), &_OS::get_video_driver_name); ClassDB::bind_method(D_METHOD("get_video_driver_name", "driver"), &_OS::get_video_driver_name);
ClassDB::bind_method(D_METHOD("get_audio_driver_count"), &_OS::get_audio_driver_count); ClassDB::bind_method(D_METHOD("get_audio_driver_count"), &_OS::get_audio_driver_count);
ClassDB::bind_method(D_METHOD("get_audio_driver_name"), &_OS::get_audio_driver_name); ClassDB::bind_method(D_METHOD("get_audio_driver_name", "driver"), &_OS::get_audio_driver_name);
ClassDB::bind_method(D_METHOD("get_screen_count"), &_OS::get_screen_count); ClassDB::bind_method(D_METHOD("get_screen_count"), &_OS::get_screen_count);
ClassDB::bind_method(D_METHOD("get_current_screen"), &_OS::get_current_screen); ClassDB::bind_method(D_METHOD("get_current_screen"), &_OS::get_current_screen);

View File

@ -40,6 +40,7 @@
<return type="Transform"> <return type="Transform">
</return> </return>
<description> <description>
Returns the primary interface's transformation.
</description> </description>
</method> </method>
<method name="get_interface" qualifiers="const"> <method name="get_interface" qualifiers="const">
@ -83,12 +84,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_primary_interface" qualifiers="const">
<return type="ARVRInterface">
</return>
<description>
</description>
</method>
<method name="get_reference_frame" qualifiers="const"> <method name="get_reference_frame" qualifiers="const">
<return type="Transform"> <return type="Transform">
</return> </return>
@ -112,17 +107,10 @@
Get the number of trackers currently registered. Get the number of trackers currently registered.
</description> </description>
</method> </method>
<method name="set_primary_interface">
<return type="void">
</return>
<argument index="0" name="interface" type="ARVRInterface">
</argument>
<description>
Changes the primary interface to the specified interface. Again mostly exposed for GDNative interfaces.
</description>
</method>
</methods> </methods>
<members> <members>
<member name="primary_interface" type="ARVRInterface" setter="set_primary_interface" getter="get_primary_interface">
</member>
<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale"> <member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale">
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 meter in the real world. Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 meter in the real world.
</member> </member>

View File

@ -17,7 +17,7 @@
<argument index="0" name="enable_next" type="bool" default="true"> <argument index="0" name="enable_next" type="bool" default="true">
</argument> </argument>
<description> <description>
If this is the current Camera, remove it from being current. If it is inside the node tree and [code]enabled_next[/code] is [code]true[/true], request to make the next Camera current, if any. If this is the current Camera, remove it from being current. If [code]enable_next[/code] is true, request to make the next Camera current, if any.
</description> </description>
</method> </method>
<method name="get_camera_transform" qualifiers="const"> <method name="get_camera_transform" qualifiers="const">

View File

@ -114,6 +114,7 @@
<argument index="3" name="ud" type="Variant" default="null"> <argument index="3" name="ud" type="Variant" default="null">
</argument> </argument>
<description> <description>
Adds a custom menu to 'Project > Tools' as [code]name[/code] that calls [code]callback[/code] on an instance of [code]handler[/code] with a parameter [code]ud[/code] when user activates it.
</description> </description>
</method> </method>
<method name="add_tool_submenu_item"> <method name="add_tool_submenu_item">
@ -367,6 +368,7 @@
<argument index="0" name="name" type="String"> <argument index="0" name="name" type="String">
</argument> </argument>
<description> <description>
Removes a menu [code]name[/code] from 'Project > Tools'.
</description> </description>
</method> </method>
<method name="save_external_data" qualifiers="virtual"> <method name="save_external_data" qualifiers="virtual">

View File

@ -148,6 +148,7 @@
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Returns [code]true[/code] if one or more items are selected.
</description> </description>
</method> </method>
<method name="is_item_disabled" qualifiers="const"> <method name="is_item_disabled" qualifiers="const">
@ -189,11 +190,12 @@
<method name="move_item"> <method name="move_item">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="p_from_idx" type="int"> <argument index="0" name="from_idx" type="int">
</argument> </argument>
<argument index="1" name="p_to_idx" type="int"> <argument index="1" name="to_idx" type="int">
</argument> </argument>
<description> <description>
Moves item at index [code]from_idx[/code] to [code]to_idx[/code].
</description> </description>
</method> </method>
<method name="remove_item"> <method name="remove_item">
@ -346,6 +348,7 @@
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Ensure there are no items selected.
</description> </description>
</method> </method>
</methods> </methods>

View File

@ -127,7 +127,7 @@
<method name="get_audio_driver_name" qualifiers="const"> <method name="get_audio_driver_name" qualifiers="const">
<return type="String"> <return type="String">
</return> </return>
<argument index="0" name="arg0" type="int"> <argument index="0" name="driver" type="int">
</argument> </argument>
<description> <description>
Returns the audio driver name for the given index. Returns the audio driver name for the given index.
@ -418,7 +418,7 @@
<method name="get_video_driver_name" qualifiers="const"> <method name="get_video_driver_name" qualifiers="const">
<return type="String"> <return type="String">
</return> </return>
<argument index="0" name="arg0" type="int"> <argument index="0" name="driver" type="int">
</argument> </argument>
<description> <description>
</description> </description>

View File

@ -198,6 +198,7 @@
<argument index="0" name="ID" type="int"> <argument index="0" name="ID" type="int">
</argument> </argument>
<description> <description>
This signal is emitted when user navigated to an item using [code]ui_up[/code] or [code]ui_down[/code] action. ID of the item selected is passed as argument (if no IDs were added, ID will be just the item index).
</description> </description>
</signal> </signal>
<signal name="item_selected"> <signal name="item_selected">

View File

@ -495,6 +495,7 @@
<argument index="0" name="ID" type="int"> <argument index="0" name="ID" type="int">
</argument> </argument>
<description> <description>
This event is emitted when user navigated to an item of some id using [code]ui_up[/code] or [code]ui_down[/code] action.
</description> </description>
</signal> </signal>
<signal name="id_pressed"> <signal name="id_pressed">

View File

@ -87,7 +87,7 @@
<argument index="0" name="with" type="Vector2"> <argument index="0" name="with" type="Vector2">
</argument> </argument>
<description> <description>
Returns the 2-dimensional analog of the cross product with [code]b[/code]. Returns the 2-dimensional analog of the cross product with the given Vector2.
</description> </description>
</method> </method>
<method name="cubic_interpolate"> <method name="cubic_interpolate">

View File

@ -1434,7 +1434,7 @@ void ItemList::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_selected", "idx"), &ItemList::is_selected); ClassDB::bind_method(D_METHOD("is_selected", "idx"), &ItemList::is_selected);
ClassDB::bind_method(D_METHOD("get_selected_items"), &ItemList::get_selected_items); ClassDB::bind_method(D_METHOD("get_selected_items"), &ItemList::get_selected_items);
ClassDB::bind_method(D_METHOD("move_item", "p_from_idx", "p_to_idx"), &ItemList::move_item); ClassDB::bind_method(D_METHOD("move_item", "from_idx", "to_idx"), &ItemList::move_item);
ClassDB::bind_method(D_METHOD("get_item_count"), &ItemList::get_item_count); ClassDB::bind_method(D_METHOD("get_item_count"), &ItemList::get_item_count);
ClassDB::bind_method(D_METHOD("remove_item", "idx"), &ItemList::remove_item); ClassDB::bind_method(D_METHOD("remove_item", "idx"), &ItemList::remove_item);

View File

@ -58,6 +58,8 @@ void ARVRServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_primary_interface"), &ARVRServer::get_primary_interface); ClassDB::bind_method(D_METHOD("get_primary_interface"), &ARVRServer::get_primary_interface);
ClassDB::bind_method(D_METHOD("set_primary_interface", "interface"), &ARVRServer::set_primary_interface); ClassDB::bind_method(D_METHOD("set_primary_interface", "interface"), &ARVRServer::set_primary_interface);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "primary_interface"), "set_primary_interface", "get_primary_interface");
ClassDB::bind_method(D_METHOD("get_last_process_usec"), &ARVRServer::get_last_process_usec); ClassDB::bind_method(D_METHOD("get_last_process_usec"), &ARVRServer::get_last_process_usec);
ClassDB::bind_method(D_METHOD("get_last_commit_usec"), &ARVRServer::get_last_commit_usec); ClassDB::bind_method(D_METHOD("get_last_commit_usec"), &ARVRServer::get_last_commit_usec);
ClassDB::bind_method(D_METHOD("get_last_frame_usec"), &ARVRServer::get_last_frame_usec); ClassDB::bind_method(D_METHOD("get_last_frame_usec"), &ARVRServer::get_last_frame_usec);