mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
491 lines
30 KiB
ReStructuredText
491 lines
30 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_TextureProgressBar:
|
||
|
||
TextureProgressBar
|
||
==================
|
||
|
||
**Hereda:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||
|
||
Barra de progreso basada en la textura. Útil para cargar pantallas y barras de vida o resistencia.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Descripción
|
||
----------------------
|
||
|
||
TextureProgressBar funciona como :ref:`ProgressBar<class_ProgressBar>`, pero utiliza hasta 3 texturas en lugar del recurso :ref:`Theme<class_Theme>` de Godot. Se puede utilizar para crear barras de progreso horizontales, verticales y radiales.
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Propiedades
|
||
----------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` | ``0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``1`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`nine_patch_stretch<class_TextureProgressBar_property_nine_patch_stretch>` | ``false`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Vector2<class_Vector2>` | :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>` | ``Vector2(0, 0)`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` | ``360.0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` | ``0.0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| |bitfield|\[:ref:`SizeFlags<enum_Control_SizeFlags>`\] | size_flags_vertical | ``1`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | step | ``1.0`` (overrides :ref:`Range<class_Range_property_step>`) |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` | ``0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`stretch_margin_left<class_TextureProgressBar_property_stretch_margin_left>` | ``0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`stretch_margin_right<class_TextureProgressBar_property_stretch_margin_right>` | ``0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`stretch_margin_top<class_TextureProgressBar_property_stretch_margin_top>` | ``0`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Texture2D<class_Texture2D>` | :ref:`texture_over<class_TextureProgressBar_property_texture_over>` | |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Texture2D<class_Texture2D>` | :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` | |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Vector2<class_Vector2>` | :ref:`texture_progress_offset<class_TextureProgressBar_property_texture_progress_offset>` | ``Vector2(0, 0)`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Texture2D<class_Texture2D>` | :ref:`texture_under<class_TextureProgressBar_property_texture_under>` | |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`tint_over<class_TextureProgressBar_property_tint_over>` | ``Color(1, 1, 1, 1)`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`tint_progress<class_TextureProgressBar_property_tint_progress>` | ``Color(1, 1, 1, 1)`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`tint_under<class_TextureProgressBar_property_tint_under>` | ``Color(1, 1, 1, 1)`` |
|
||
+--------------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Métodos
|
||
--------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_stretch_margin<class_TextureProgressBar_method_get_stretch_margin>`\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const| |
|
||
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_stretch_margin<class_TextureProgressBar_method_set_stretch_margin>`\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ ) |
|
||
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Enumeraciones
|
||
--------------------------
|
||
|
||
.. _enum_TextureProgressBar_FillMode:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **FillMode**: :ref:`🔗<enum_TextureProgressBar_FillMode>`
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_LEFT_TO_RIGHT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_LEFT_TO_RIGHT** = ``0``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena de izquierda a derecha.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_RIGHT_TO_LEFT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_RIGHT_TO_LEFT** = ``1``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena de derecha a izquierda.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_TOP_TO_BOTTOM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_TOP_TO_BOTTOM** = ``2``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena de arriba a abajo.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_BOTTOM_TO_TOP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BOTTOM_TO_TOP** = ``3``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena de abajo a arriba.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_CLOCKWISE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_CLOCKWISE** = ``4``
|
||
|
||
Convierte el nodo en una barra radial. El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena en el sentido de las agujas del reloj. Véase :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` y :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` para controlar la forma en que la barra se llena.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_COUNTER_CLOCKWISE** = ``5``
|
||
|
||
Convierte el nodo en una barra radial. El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena en sentido contrario a las agujas del reloj. Véase :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` y :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` para controlar la forma en que la barra se llena.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_BILINEAR_LEFT_AND_RIGHT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BILINEAR_LEFT_AND_RIGHT** = ``6``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena desde el centro, expandiéndose tanto hacia la izquierda como hacia la derecha.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_BILINEAR_TOP_AND_BOTTOM:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BILINEAR_TOP_AND_BOTTOM** = ``7``
|
||
|
||
El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena desde el centro, expandiéndose tanto hacia arriba como hacia abajo.
|
||
|
||
.. _class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE** = ``8``
|
||
|
||
Convierte el nodo en una barra radial. El :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` se llena radialmente desde el centro, expandiéndose tanto en sentido horario como antihorario. Véase :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` y :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` para controlar la forma en que la barra se llena.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descripciones de Propiedades
|
||
--------------------------------------------------------
|
||
|
||
.. _class_TextureProgressBar_property_fill_mode:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **fill_mode** = ``0`` :ref:`🔗<class_TextureProgressBar_property_fill_mode>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_fill_mode**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_fill_mode**\ (\ )
|
||
|
||
La dirección de llenado. Véase :ref:`FillMode<enum_TextureProgressBar_FillMode>` para los posibles valores.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_nine_patch_stretch:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **nine_patch_stretch** = ``false`` :ref:`🔗<class_TextureProgressBar_property_nine_patch_stretch>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_nine_patch_stretch**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **get_nine_patch_stretch**\ (\ )
|
||
|
||
Si es ``true``, Godot trata las texturas de la barra como en :ref:`NinePatchRect<class_NinePatchRect>`. Usa las propiedades ``stretch_margin_*`` como :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` para configurar la cuadrícula de 3×3 del nine patch. Cuando se utiliza un :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` radial, este ajuste solo habilitará el estiramiento para :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, mientras que :ref:`texture_under<class_TextureProgressBar_property_texture_under>` y :ref:`texture_over<class_TextureProgressBar_property_texture_over>` se tratarán como en :ref:`NinePatchRect<class_NinePatchRect>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_radial_center_offset:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Vector2<class_Vector2>` **radial_center_offset** = ``Vector2(0, 0)`` :ref:`🔗<class_TextureProgressBar_property_radial_center_offset>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_radial_center_offset**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
|
||
- :ref:`Vector2<class_Vector2>` **get_radial_center_offset**\ (\ )
|
||
|
||
Desplaza :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` si :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` es :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` o :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`.
|
||
|
||
\ **Nota:** El centro radial efectivo siempre permanece dentro de los límites de :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`. Si necesitas moverlo fuera de los límites de la textura, modifica :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` para que contenga espacio vacío adicional donde sea necesario.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_radial_fill_degrees:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **radial_fill_degrees** = ``360.0`` :ref:`🔗<class_TextureProgressBar_property_radial_fill_degrees>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_fill_degrees**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_fill_degrees**\ (\ )
|
||
|
||
Límite superior para el relleno de :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` si :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` es :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` o :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`. Cuando el ``value`` del nodo es igual a su ``max_value``, la textura se rellena hasta este ángulo.
|
||
|
||
Véase :ref:`Range.value<class_Range_property_value>`, :ref:`Range.max_value<class_Range_property_max_value>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_radial_initial_angle:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **radial_initial_angle** = ``0.0`` :ref:`🔗<class_TextureProgressBar_property_radial_initial_angle>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_radial_initial_angle**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_radial_initial_angle**\ (\ )
|
||
|
||
Ángulo inicial para el relleno de :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` si :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` es :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` o :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`. Cuando el ``value`` del nodo es igual a su ``min_value``, la textura no se muestra en absoluto. Cuando el ``value`` aumenta, la textura se llena y tiende hacia :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>`.
|
||
|
||
\ **Nota:** :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` se ajusta entre ``0`` y ``360`` grados (inclusive).
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_stretch_margin_bottom:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **stretch_margin_bottom** = ``0`` :ref:`🔗<class_TextureProgressBar_property_stretch_margin_bottom>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const|
|
||
|
||
La altura de la fila inferior del 9-patch. Un margen de 16 significa que las esquinas y el lado inferior del 9-patch tendrán una altura de 16 píxeles. Puede establecer los 4 valores de margen individualmente para crear paneles con bordes no uniformes. Solo es efectivo si :ref:`nine_patch_stretch<class_TextureProgressBar_property_nine_patch_stretch>` es ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_stretch_margin_left:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **stretch_margin_left** = ``0`` :ref:`🔗<class_TextureProgressBar_property_stretch_margin_left>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const|
|
||
|
||
El ancho de la columna izquierda del 9-patch. Solo es efectivo si :ref:`nine_patch_stretch<class_TextureProgressBar_property_nine_patch_stretch>` es ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_stretch_margin_right:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **stretch_margin_right** = ``0`` :ref:`🔗<class_TextureProgressBar_property_stretch_margin_right>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const|
|
||
|
||
El ancho de la columna derecha del 9-patch. Solo es efectivo si :ref:`nine_patch_stretch<class_TextureProgressBar_property_nine_patch_stretch>` es ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_stretch_margin_top:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **stretch_margin_top** = ``0`` :ref:`🔗<class_TextureProgressBar_property_stretch_margin_top>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const|
|
||
|
||
La altura de la fila superior del 9-patch. Solo es efectivo si :ref:`nine_patch_stretch<class_TextureProgressBar_property_nine_patch_stretch>` es ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_texture_over:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Texture2D<class_Texture2D>` **texture_over** :ref:`🔗<class_TextureProgressBar_property_texture_over>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_over_texture**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
|
||
- :ref:`Texture2D<class_Texture2D>` **get_over_texture**\ (\ )
|
||
|
||
:ref:`Texture2D<class_Texture2D>` que dibuja sobre la barra de progreso. Úsala para añadir resaltados o un marco superior que oculte parte de :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_texture_progress:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Texture2D<class_Texture2D>` **texture_progress** :ref:`🔗<class_TextureProgressBar_property_texture_progress>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_progress_texture**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
|
||
- :ref:`Texture2D<class_Texture2D>` **get_progress_texture**\ (\ )
|
||
|
||
:ref:`Texture2D<class_Texture2D>` que se recorta según el ``value`` del nodo y :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>`. A medida que aumenta ``value``, la textura se rellena. Se muestra por completo cuando ``value`` alcanza ``max_value``. No se muestra en absoluto si ``value`` es igual a ``min_value``.
|
||
|
||
La propiedad ``value`` proviene de :ref:`Range<class_Range>`. Véase :ref:`Range.value<class_Range_property_value>`, :ref:`Range.min_value<class_Range_property_min_value>`, :ref:`Range.max_value<class_Range_property_max_value>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_texture_progress_offset:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Vector2<class_Vector2>` **texture_progress_offset** = ``Vector2(0, 0)`` :ref:`🔗<class_TextureProgressBar_property_texture_progress_offset>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_texture_progress_offset**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
|
||
- :ref:`Vector2<class_Vector2>` **get_texture_progress_offset**\ (\ )
|
||
|
||
El desplazamiento de :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`. Útil para :ref:`texture_over<class_TextureProgressBar_property_texture_over>` y :ref:`texture_under<class_TextureProgressBar_property_texture_under>` con bordes sofisticados, para evitar márgenes transparentes en tu textura de progreso.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_texture_under:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Texture2D<class_Texture2D>` **texture_under** :ref:`🔗<class_TextureProgressBar_property_texture_under>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_under_texture**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
|
||
- :ref:`Texture2D<class_Texture2D>` **get_under_texture**\ (\ )
|
||
|
||
:ref:`Texture2D<class_Texture2D>` que se dibuja debajo de la barra de progreso. El fondo de la barra.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_tint_over:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Color<class_Color>` **tint_over** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_TextureProgressBar_property_tint_over>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tint_over**\ (\ value\: :ref:`Color<class_Color>`\ )
|
||
- :ref:`Color<class_Color>` **get_tint_over**\ (\ )
|
||
|
||
Multiplica el color de la textura :ref:`texture_over<class_TextureProgressBar_property_texture_over>` de la barra. El efecto es similar a :ref:`CanvasItem.modulate<class_CanvasItem_property_modulate>`, excepto que solo afecta a esta textura específica en lugar de a todo el nodo.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_tint_progress:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Color<class_Color>` **tint_progress** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_TextureProgressBar_property_tint_progress>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tint_progress**\ (\ value\: :ref:`Color<class_Color>`\ )
|
||
- :ref:`Color<class_Color>` **get_tint_progress**\ (\ )
|
||
|
||
Multiplica el color de la textura :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` de la barra.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_property_tint_under:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Color<class_Color>` **tint_under** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_TextureProgressBar_property_tint_under>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tint_under**\ (\ value\: :ref:`Color<class_Color>`\ )
|
||
- :ref:`Color<class_Color>` **get_tint_under**\ (\ )
|
||
|
||
Multiplica el color de la textura :ref:`texture_under<class_TextureProgressBar_property_texture_under>` de la barra.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descripciones de Métodos
|
||
------------------------------------------------
|
||
|
||
.. _class_TextureProgressBar_method_get_stretch_margin:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`\ ) |const| :ref:`🔗<class_TextureProgressBar_method_get_stretch_margin>`
|
||
|
||
Devuelve el margen de estiramiento con el índice especificado. Véase :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` y propiedades relacionadas.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_TextureProgressBar_method_set_stretch_margin:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_stretch_margin**\ (\ margin\: :ref:`Side<enum_@GlobalScope_Side>`, value\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TextureProgressBar_method_set_stretch_margin>`
|
||
|
||
Establece el margen de estiramiento con el índice especificado. Véase :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` y propiedades relacionadas.
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)`
|
||
.. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)`
|
||
.. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)`
|
||
.. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)`
|
||
.. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)`
|
||
.. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)`
|
||
.. |void| replace:: :abbr:`void (Sin valor de retorno.)`
|