2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-02-14 13:18:53 +00:00
|
|
|
<class name="Slider" inherits="Range" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Base class for GUI sliders.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Base class for GUI sliders.
|
2020-08-08 11:54:57 +00:00
|
|
|
[b]Note:[/b] The [signal Range.changed] and [signal Range.value_changed] signals are part of the [Range] class which this class inherits from.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<members>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="editable" type="bool" setter="set_editable" getter="is_editable" default="true">
|
2019-04-19 09:21:09 +00:00
|
|
|
If [code]true[/code], the slider can be interacted with. If [code]false[/code], the value can be changed only by code.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
2022-11-06 19:27:24 +00:00
|
|
|
<member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" overrides="Control" enum="Control.FocusMode" default="2" />
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="scrollable" type="bool" setter="set_scrollable" getter="is_scrollable" default="true">
|
2019-04-19 09:21:09 +00:00
|
|
|
If [code]true[/code], the value can be changed using the mouse wheel.
|
2018-07-26 09:56:21 +00:00
|
|
|
</member>
|
2022-11-06 19:27:24 +00:00
|
|
|
<member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" overrides="Control" default="0" />
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="tick_count" type="int" setter="set_ticks" getter="get_ticks" default="0">
|
2019-04-19 09:21:09 +00:00
|
|
|
Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="ticks_on_borders" type="bool" setter="set_ticks_on_borders" getter="get_ticks_on_borders" default="false">
|
2019-04-19 09:21:09 +00:00
|
|
|
If [code]true[/code], the slider will display ticks for minimum and maximum values.
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
2021-12-10 03:19:10 +00:00
|
|
|
<signals>
|
|
|
|
<signal name="drag_ended">
|
2022-08-06 18:11:48 +00:00
|
|
|
<param index="0" name="value_changed" type="bool" />
|
2021-12-10 03:19:10 +00:00
|
|
|
<description>
|
2022-08-10 02:00:19 +00:00
|
|
|
Emitted when dragging stops. If [param value_changed] is true, [member Range.value] is different from the value when you started the dragging.
|
2021-12-10 03:19:10 +00:00
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
<signal name="drag_started">
|
|
|
|
<description>
|
|
|
|
Emitted when dragging is started.
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
2017-09-12 20:42:36 +00:00
|
|
|
</class>
|