mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
110 lines
5.5 KiB
ReStructuredText
110 lines
5.5 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the Slider.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_Slider:
|
|
|
|
Slider
|
|
======
|
|
|
|
**Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
**Inherited By:** :ref:`HSlider<class_HSlider>`, :ref:`VSlider<class_VSlider>`
|
|
|
|
Clase base para los deslizadores GUI.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Base class for GUI sliders.
|
|
|
|
\ **Note:** The :ref:`Range.changed<class_Range_signal_changed>` and :ref:`Range.value_changed<class_Range_signal_value_changed>` signals are part of the :ref:`Range<class_Range>` class which this class inherits from.
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`editable<class_Slider_property_editable>` | ``true`` |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``2`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`scrollable<class_Slider_property_scrollable>` | ``true`` |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | size_flags_vertical | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`tick_count<class_Slider_property_tick_count>` | ``0`` |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`ticks_on_borders<class_Slider_property_ticks_on_borders>` | ``false`` |
|
|
+------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_Slider_property_editable:
|
|
|
|
- :ref:`bool<class_bool>` **editable**
|
|
|
|
+-----------+---------------------+
|
|
| *Default* | ``true`` |
|
|
+-----------+---------------------+
|
|
| *Setter* | set_editable(value) |
|
|
+-----------+---------------------+
|
|
| *Getter* | is_editable() |
|
|
+-----------+---------------------+
|
|
|
|
Si ``true``, se puede interactuar con el deslizador. Si ``false``, el valor puede ser cambiado sólo por el código.
|
|
|
|
----
|
|
|
|
.. _class_Slider_property_scrollable:
|
|
|
|
- :ref:`bool<class_bool>` **scrollable**
|
|
|
|
+-----------+-----------------------+
|
|
| *Default* | ``true`` |
|
|
+-----------+-----------------------+
|
|
| *Setter* | set_scrollable(value) |
|
|
+-----------+-----------------------+
|
|
| *Getter* | is_scrollable() |
|
|
+-----------+-----------------------+
|
|
|
|
Si ``true``, el valor puede ser cambiado usando la rueda del ratón.
|
|
|
|
----
|
|
|
|
.. _class_Slider_property_tick_count:
|
|
|
|
- :ref:`int<class_int>` **tick_count**
|
|
|
|
+-----------+------------------+
|
|
| *Default* | ``0`` |
|
|
+-----------+------------------+
|
|
| *Setter* | set_ticks(value) |
|
|
+-----------+------------------+
|
|
| *Getter* | get_ticks() |
|
|
+-----------+------------------+
|
|
|
|
Número de marcas que aparecen en el deslizador, incluyendo las marcas de los bordes. Las marcas son marcadores de valor uniformemente distribuidos.
|
|
|
|
----
|
|
|
|
.. _class_Slider_property_ticks_on_borders:
|
|
|
|
- :ref:`bool<class_bool>` **ticks_on_borders**
|
|
|
|
+-----------+-----------------------------+
|
|
| *Default* | ``false`` |
|
|
+-----------+-----------------------------+
|
|
| *Setter* | set_ticks_on_borders(value) |
|
|
+-----------+-----------------------------+
|
|
| *Getter* | get_ticks_on_borders() |
|
|
+-----------+-----------------------------+
|
|
|
|
Si ``true``, el deslizador mostrará las marcas de los valores mínimo y máximo.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|