Merge pull request #27937 from KoBeWi/sliderdocs

Added some documentation for Slider
This commit is contained in:
Max Hilbrunner 2019-04-16 15:31:50 +02:00 committed by GitHub
commit 73713b6d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -14,14 +14,18 @@
</methods> </methods>
<members> <members>
<member name="editable" type="bool" setter="set_editable" getter="is_editable"> <member name="editable" type="bool" setter="set_editable" getter="is_editable">
If [code]true[/code], the slider can be interacted with. If [code]false[/code], the value can be changed only by code.
</member> </member>
<member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" enum="Control.FocusMode"> <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" enum="Control.FocusMode">
</member> </member>
<member name="scrollable" type="bool" setter="set_scrollable" getter="is_scrollable"> <member name="scrollable" type="bool" setter="set_scrollable" getter="is_scrollable">
If [code]true[/code], the value can be changed using the mouse wheel.
</member> </member>
<member name="tick_count" type="int" setter="set_ticks" getter="get_ticks"> <member name="tick_count" type="int" setter="set_ticks" getter="get_ticks">
Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.
</member> </member>
<member name="ticks_on_borders" type="bool" setter="set_ticks_on_borders" getter="get_ticks_on_borders"> <member name="ticks_on_borders" type="bool" setter="set_ticks_on_borders" getter="get_ticks_on_borders">
If [code]true[/code], the slider will display ticks for minimum and maximum values.
</member> </member>
</members> </members>
<constants> <constants>

View File

@ -4,7 +4,7 @@
Vertical slider. Vertical slider.
</brief_description> </brief_description>
<description> <description>
Vertical slider. See [Slider]. This one goes from left (min) to right (max). Vertical slider. See [Slider]. This one goes from bottom (min) to top (max).
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>