Added description for camera2D missing members

Also fixed typo in AudioEffectFilter.
[ci skip]
This commit is contained in:
Henrique Campos 2017-10-25 11:07:45 -02:00 committed by Rémi Verschelde
parent d135008acf
commit 1063ddfeb5
2 changed files with 8 additions and 4 deletions

View file

@ -75,7 +75,7 @@
<member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB"> <member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB">
</member> </member>
<member name="gain" type="float" setter="set_gain" getter="get_gain"> <member name="gain" type="float" setter="set_gain" getter="get_gain">
Gain amount of the frequences after the filter. Gain amount of the frequencies after the filter.
</member> </member>
<member name="resonance" type="float" setter="set_resonance" getter="get_resonance"> <member name="resonance" type="float" setter="set_resonance" getter="get_resonance">
Amount of boost in the overtones near the cutoff frequency. Amount of boost in the overtones near the cutoff frequency.

View file

@ -348,10 +348,13 @@
If [code]true[/code] the camera only moves when reaching the vertical drag margins. If [code]false[/code] the camera moves vertically regardless of margins. Default value: [code]true[/code]. If [code]true[/code] the camera only moves when reaching the vertical drag margins. If [code]false[/code] the camera moves vertically regardless of margins. Default value: [code]true[/code].
</member> </member>
<member name="editor_draw_drag_margin" type="bool" setter="set_margin_drawing_enabled" getter="is_margin_drawing_enabled"> <member name="editor_draw_drag_margin" type="bool" setter="set_margin_drawing_enabled" getter="is_margin_drawing_enabled">
If [code]true[/code] draws the camera's drag margin rectangle in the editor. Default value: [code]false[/code]
</member> </member>
<member name="editor_draw_limits" type="bool" setter="set_limit_drawing_enabled" getter="is_limit_drawing_enabled"> <member name="editor_draw_limits" type="bool" setter="set_limit_drawing_enabled" getter="is_limit_drawing_enabled">
If [code]true[/code] draws the camera's limits rectangle in the editor. Default value: [code]true[/code]
</member> </member>
<member name="editor_draw_screen" type="bool" setter="set_screen_drawing_enabled" getter="is_screen_drawing_enabled"> <member name="editor_draw_screen" type="bool" setter="set_screen_drawing_enabled" getter="is_screen_drawing_enabled">
If [code]true[/code] draws the camera's screen rectangle in the editor. Default value: [code]false[/code]
</member> </member>
<member name="limit_bottom" type="int" setter="set_limit" getter="get_limit"> <member name="limit_bottom" type="int" setter="set_limit" getter="get_limit">
Bottom scroll limit in pixels. The camera stops moving when reaching this value. Bottom scroll limit in pixels. The camera stops moving when reaching this value.
@ -363,6 +366,7 @@
Right scroll limit in pixels. The camera stops moving when reaching this value. Right scroll limit in pixels. The camera stops moving when reaching this value.
</member> </member>
<member name="limit_smoothed" type="bool" setter="set_limit_smoothing_enabled" getter="is_limit_smoothing_enabled"> <member name="limit_smoothed" type="bool" setter="set_limit_smoothing_enabled" getter="is_limit_smoothing_enabled">
If [code]true[/code] the camera smoothly stops when reaches its limits. Default value: [code]false[/code]
</member> </member>
<member name="limit_top" type="int" setter="set_limit" getter="get_limit"> <member name="limit_top" type="int" setter="set_limit" getter="get_limit">
Top scroll limit in pixels. The camera stops moving when reaching this value. Top scroll limit in pixels. The camera stops moving when reaching this value.
@ -371,13 +375,13 @@
The camera's offset, useful for looking around or camera shake animations. The camera's offset, useful for looking around or camera shake animations.
</member> </member>
<member name="rotating" type="bool" setter="set_rotating" getter="is_rotating"> <member name="rotating" type="bool" setter="set_rotating" getter="is_rotating">
If [code]true[/code] the camera can rotate during gameplay. Default value: [code]false[/code]. If [code]true[/code] the camera rotates with the target. Default value: [code]false[/code]
</member> </member>
<member name="smoothing_enabled" type="bool" setter="set_enable_follow_smoothing" getter="is_follow_smoothing_enabled"> <member name="smoothing_enabled" type="bool" setter="set_enable_follow_smoothing" getter="is_follow_smoothing_enabled">
If [code]true[/code] the camera's velocity changes gradually, preventing sudden starts and stops. Default value: [code]false[/code]. If [code]true[/code] the camera smoothly moves towards the target at [member smoothing_speed]. Default value: [code]false[/code]
</member> </member>
<member name="smoothing_speed" type="float" setter="set_follow_smoothing" getter="get_follow_smoothing"> <member name="smoothing_speed" type="float" setter="set_follow_smoothing" getter="get_follow_smoothing">
How fast the camera's velocity changes if smoothing is enabled. Speed in pixels per second of the camera's smoothing effect when [member smoothing_enabled] is [code]true[/code]
</member> </member>
<member name="zoom" type="Vector2" setter="set_zoom" getter="get_zoom"> <member name="zoom" type="Vector2" setter="set_zoom" getter="get_zoom">
The camera's zoom relative to the viewport. Values larger than [code]Vector2(1, 1)[/code] zoom out and smaller values zoom in. For an example, use [code]Vector2(0.5, 0.5)[/code] for a 2x zoom in, and [code]Vector2(4, 4)[/code] for a 4x zoom out. The camera's zoom relative to the viewport. Values larger than [code]Vector2(1, 1)[/code] zoom out and smaller values zoom in. For an example, use [code]Vector2(0.5, 0.5)[/code] for a 2x zoom in, and [code]Vector2(4, 4)[/code] for a 4x zoom out.