doc: Sync classref with current source

This commit is contained in:
Rémi Verschelde 2018-12-04 21:57:07 +01:00
parent 09474ba4c4
commit 8fda8769d1
9 changed files with 29 additions and 9 deletions

View File

@ -110,6 +110,12 @@
Get the actual playing speed of current animation or 0 if not playing. This speed is the [code]playback_speed[/code] property multiplied by [code]custom_speed[/code] argument specified when calling the [code]play[/code] method. Get the actual playing speed of current animation or 0 if not playing. This speed is the [code]playback_speed[/code] property multiplied by [code]custom_speed[/code] argument specified when calling the [code]play[/code] method.
</description> </description>
</method> </method>
<method name="get_queue">
<return type="PoolStringArray">
</return>
<description>
</description>
</method>
<method name="has_animation" qualifiers="const"> <method name="has_animation" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>

View File

@ -127,11 +127,11 @@
</member> </member>
<member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio"> <member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio">
</member> </member>
<member name="scale" type="float" setter="set_param" getter="get_param"> <member name="scale_amount" type="float" setter="set_param" getter="get_param">
</member> </member>
<member name="scale_curve" type="Curve" setter="set_param_curve" getter="get_param_curve"> <member name="scale_amount_curve" type="Curve" setter="set_param_curve" getter="get_param_curve">
</member> </member>
<member name="scale_random" type="float" setter="set_param_randomness" getter="get_param_randomness"> <member name="scale_amount_random" type="float" setter="set_param_randomness" getter="get_param_randomness">
</member> </member>
<member name="speed_scale" type="float" setter="set_speed_scale" getter="get_speed_scale"> <member name="speed_scale" type="float" setter="set_speed_scale" getter="get_speed_scale">
</member> </member>

View File

@ -123,11 +123,11 @@
</member> </member>
<member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio"> <member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio">
</member> </member>
<member name="scale" type="float" setter="set_param" getter="get_param"> <member name="scale_amount" type="float" setter="set_param" getter="get_param">
</member> </member>
<member name="scale_curve" type="Curve" setter="set_param_curve" getter="get_param_curve"> <member name="scale_amount_curve" type="Curve" setter="set_param_curve" getter="get_param_curve">
</member> </member>
<member name="scale_random" type="float" setter="set_param_randomness" getter="get_param_randomness"> <member name="scale_amount_random" type="float" setter="set_param_randomness" getter="get_param_randomness">
</member> </member>
<member name="speed_scale" type="float" setter="set_speed_scale" getter="get_speed_scale"> <member name="speed_scale" type="float" setter="set_speed_scale" getter="get_speed_scale">
</member> </member>

View File

@ -159,6 +159,8 @@
<member name="glow_enabled" type="bool" setter="set_glow_enabled" getter="is_glow_enabled"> <member name="glow_enabled" type="bool" setter="set_glow_enabled" getter="is_glow_enabled">
Enables glow rendering. Enables glow rendering.
</member> </member>
<member name="glow_hdr_luminance_cap" type="float" setter="set_glow_hdr_luminance_cap" getter="get_glow_hdr_luminance_cap">
</member>
<member name="glow_hdr_scale" type="float" setter="set_glow_hdr_bleed_scale" getter="get_glow_hdr_bleed_scale"> <member name="glow_hdr_scale" type="float" setter="set_glow_hdr_bleed_scale" getter="get_glow_hdr_bleed_scale">
Bleed scale of the HDR glow. Bleed scale of the HDR glow.
</member> </member>

View File

@ -242,6 +242,8 @@
</member> </member>
<member name="linear_spring_z/stiffness" type="float" setter="set_param_z" getter="get_param_z"> <member name="linear_spring_z/stiffness" type="float" setter="set_param_z" getter="get_param_z">
</member> </member>
<member name="precision" type="int" setter="set_precision" getter="get_precision">
</member>
</members> </members>
<constants> <constants>
<constant name="PARAM_LINEAR_LOWER_LIMIT" value="0" enum="Param"> <constant name="PARAM_LINEAR_LOWER_LIMIT" value="0" enum="Param">

View File

@ -467,7 +467,9 @@
<constant name="MENU_UNDO" value="5" enum="MenuItems"> <constant name="MENU_UNDO" value="5" enum="MenuItems">
Undoes the previous action. Undoes the previous action.
</constant> </constant>
<constant name="MENU_MAX" value="6" enum="MenuItems"> <constant name="MENU_REDO" value="6" enum="MenuItems">
</constant>
<constant name="MENU_MAX" value="7" enum="MenuItems">
</constant> </constant>
</constants> </constants>
<theme_items> <theme_items>

View File

@ -12,6 +12,12 @@
<demos> <demos>
</demos> </demos>
<methods> <methods>
<method name="clear">
<return type="void">
</return>
<description>
</description>
</method>
<method name="clear_color"> <method name="clear_color">
<return type="void"> <return type="void">
</return> </return>

View File

@ -1161,7 +1161,9 @@
</argument> </argument>
<argument index="8" name="hdr_bleed_scale" type="float"> <argument index="8" name="hdr_bleed_scale" type="float">
</argument> </argument>
<argument index="9" name="bicubic_upscale" type="bool"> <argument index="9" name="hdr_luminance_cap" type="float">
</argument>
<argument index="10" name="bicubic_upscale" type="bool">
</argument> </argument>
<description> <description>
</description> </description>

View File

@ -1909,7 +1909,7 @@ void VisualServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("environment_set_ambient_light", "env", "color", "energy", "sky_contibution"), &VisualServer::environment_set_ambient_light, DEFVAL(1.0), DEFVAL(0.0)); ClassDB::bind_method(D_METHOD("environment_set_ambient_light", "env", "color", "energy", "sky_contibution"), &VisualServer::environment_set_ambient_light, DEFVAL(1.0), DEFVAL(0.0));
ClassDB::bind_method(D_METHOD("environment_set_dof_blur_near", "env", "enable", "distance", "transition", "far_amount", "quality"), &VisualServer::environment_set_dof_blur_near); ClassDB::bind_method(D_METHOD("environment_set_dof_blur_near", "env", "enable", "distance", "transition", "far_amount", "quality"), &VisualServer::environment_set_dof_blur_near);
ClassDB::bind_method(D_METHOD("environment_set_dof_blur_far", "env", "enable", "distance", "transition", "far_amount", "quality"), &VisualServer::environment_set_dof_blur_far); ClassDB::bind_method(D_METHOD("environment_set_dof_blur_far", "env", "enable", "distance", "transition", "far_amount", "quality"), &VisualServer::environment_set_dof_blur_far);
ClassDB::bind_method(D_METHOD("environment_set_glow", "env", "enable", "level_flags", "intensity", "strength", "bloom_threshold", "blend_mode", "hdr_bleed_threshold", "hdr_bleed_scale", "bicubic_upscale"), &VisualServer::environment_set_glow); ClassDB::bind_method(D_METHOD("environment_set_glow", "env", "enable", "level_flags", "intensity", "strength", "bloom_threshold", "blend_mode", "hdr_bleed_threshold", "hdr_bleed_scale", "hdr_luminance_cap", "bicubic_upscale"), &VisualServer::environment_set_glow);
ClassDB::bind_method(D_METHOD("environment_set_tonemap", "env", "tone_mapper", "exposure", "white", "auto_exposure", "min_luminance", "max_luminance", "auto_exp_speed", "auto_exp_grey"), &VisualServer::environment_set_tonemap); ClassDB::bind_method(D_METHOD("environment_set_tonemap", "env", "tone_mapper", "exposure", "white", "auto_exposure", "min_luminance", "max_luminance", "auto_exp_speed", "auto_exp_grey"), &VisualServer::environment_set_tonemap);
ClassDB::bind_method(D_METHOD("environment_set_adjustment", "env", "enable", "brightness", "contrast", "saturation", "ramp"), &VisualServer::environment_set_adjustment); ClassDB::bind_method(D_METHOD("environment_set_adjustment", "env", "enable", "brightness", "contrast", "saturation", "ramp"), &VisualServer::environment_set_adjustment);
ClassDB::bind_method(D_METHOD("environment_set_ssr", "env", "enable", "max_steps", "fade_in", "fade_out", "depth_tolerance", "roughness"), &VisualServer::environment_set_ssr); ClassDB::bind_method(D_METHOD("environment_set_ssr", "env", "enable", "max_steps", "fade_in", "fade_out", "depth_tolerance", "roughness"), &VisualServer::environment_set_ssr);