Files
godot-docs-l10n/classes/uk/class_textureprogressbar.rst

491 lines
32 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_TextureProgressBar:
TextureProgressBar
==================
**Успадковує:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
Бар на основі текстури. Корисно для завантаження екранів і термінів життя або стеміна.
.. rst-class:: classref-introduction-group
Опис
--------
ТекстураПрогрес Бар працює як :ref:`ProgressBar<class_ProgressBar>`, але використовує до 3 текстур замість ресурсу Godot. Використовується для створення горизонтальних, вертикальних і радіальних грабів.
.. rst-class:: classref-reftable-group
Властивості
----------------------
.. 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
Методи
------------
.. 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
Переліки
----------------
.. _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``
:ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється зліва направо.
.. _class_TextureProgressBar_constant_FILL_RIGHT_TO_LEFT:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_RIGHT_TO_LEFT** = ``1``
:ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється справа наліво.
.. _class_TextureProgressBar_constant_FILL_TOP_TO_BOTTOM:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_TOP_TO_BOTTOM** = ``2``
:ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється зверху вниз.
.. _class_TextureProgressBar_constant_FILL_BOTTOM_TO_TOP:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BOTTOM_TO_TOP** = ``3``
:ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється знизу вгору.
.. _class_TextureProgressBar_constant_FILL_CLOCKWISE:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_CLOCKWISE** = ``4``
Перетворює вузол на радіальну смугу. :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється за годинниковою стрілкою. Див. :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` та :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` для керування способом заповнення смуги.
.. _class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_COUNTER_CLOCKWISE** = ``5``
Перетворює вузол на радіальний стрижень. :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється проти годинникової стрілки. Див. :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` та :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>` для керування способом заповнення стрижня.
.. _class_TextureProgressBar_constant_FILL_BILINEAR_LEFT_AND_RIGHT:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BILINEAR_LEFT_AND_RIGHT** = ``6``
Елемент :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється від центру, розширюючись як ліворуч, так і праворуч.
.. _class_TextureProgressBar_constant_FILL_BILINEAR_TOP_AND_BOTTOM:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_BILINEAR_TOP_AND_BOTTOM** = ``7``
Елемент :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється від центру, розширюючись як угору, так і вниз.
.. _class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_TextureProgressBar_FillMode>` **FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE** = ``8``
Перетворює вузол на радіальну смугу. :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` заповнюється радіально від центру, розширюючись як за годинниковою стрілкою, так і проти неї. Див. :ref:`radial_center_offset<class_TextureProgressBar_property_radial_center_offset>`, :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` та :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>`, щоб керувати способом заповнення смуги.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи властивостей
------------------------------------
.. _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**\ (\ )
Наповнювач. Подивитися :ref:`FillMode<enum_TextureProgressBar_FillMode>` для можливих значень.
.. 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**\ (\ )
Якщо ``true``, Godot обробляє текстури панелі так само, як у :ref:`NinePatchRect<class_NinePatchRect>`. Використовуйте властивості ``stretch_margin_*``, такі як :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>`, щоб налаштувати сітку 3×3 для дев’яти патчів. Якщо використовується радіальний :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>`, цей параметр увімкне розтягування лише для :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, тоді як :ref:`texture_under<class_TextureProgressBar_property_texture_under>` і :ref:`texture_over<class_TextureProgressBar_property_texture_over>` оброблятимуться як у :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**\ (\ )
Зміщує :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, якщо :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` має значення :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` або :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`.
\ **Примітка:** Ефективний радіальний центр завжди залишається в межах :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`. Якщо вам потрібно перемістити його за межі текстури, змініть :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, щоб додати додатковий порожній простір, де це необхідно.
.. 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**\ (\ )
Верхня межа заповнення :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, якщо :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` має значення :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` або :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`. Коли значення ``value`` вузла дорівнює його максимальному значенню ``max_value``, текстура заповнюється до цього кута.
Див. :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**\ (\ )
Початковий кут для заповнення :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`, якщо :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>` має значення :ref:`FILL_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE>`, :ref:`FILL_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_COUNTER_CLOCKWISE>` або :ref:`FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE<class_TextureProgressBar_constant_FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE>`. Коли значення ``value`` вузла дорівнює його мінімальному значенню ``min_value``, текстура взагалі не відображається. Коли значення ``value`` збільшується, текстура заповнюється та прагне до :ref:`radial_fill_degrees<class_TextureProgressBar_property_radial_fill_degrees>`.
\ **Примітка:** :ref:`radial_initial_angle<class_TextureProgressBar_property_radial_initial_angle>` знаходиться між ``0`` та ``360`` градусами (включно).
.. 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|
Висота низу 9-патч. Помаранжування 16 означає, що нижні кути 9-х і бічні будуть мати висоту 16 пікселів. Ви можете встановити всі значення 4 запасів індивідуально для створення панелей з неоднорідними кордонами. ``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|
Ширина лівого стовпа 9-патч. ``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|
Ширина правого стовпа 9-патч. ``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|
Висота верхнього ряду 9-патчів. ``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>`, що виводить над ходом бару. Використовуйте його, щоб додати родзинки або верхній кадр, який приховує частину :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>`, яка обрізає значення вузла на основі значення ``value`` та режиму заповнення :ref:`fill_mode<class_TextureProgressBar_property_fill_mode>`. Зі збільшенням значення ``value`` текстура заповнюється. Вона повністю відображається, коли значення ``value`` досягає значення ``max_value``. Вона взагалі не відображається, якщо значення ``value`` дорівнює мінімальному значенню ``мін. value``.
Властивість значення ``value`` походить від значення :ref:`Range<class_Range>`. Див. :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**\ (\ )
Зсув :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>`. Корисно для :ref:`texture_over<class_TextureProgressBar_property_texture_over>` та :ref:`texture_under<class_TextureProgressBar_property_texture_under>` з вигадливими рамками, щоб уникнути прозорих полів у вашій текстурі прогресу.
.. 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>`, що виводить під хід бару. фон бара.
.. 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**\ (\ )
Множить колір текстури :ref:`texture_over<class_TextureProgressBar_property_texture_over>` смужки. Ефект подібний до :ref:`CanvasItem.modulate<class_CanvasItem_property_modulate>`, за винятком того, що він впливає лише на цю конкретну текстуру, а не на весь вузол.
.. 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**\ (\ )
Множить колір текстури :ref:`texture_progress<class_TextureProgressBar_property_texture_progress>` смужки.
.. 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**\ (\ )
Множить колір елемента texture_under смужки :ref:`texture_under<class_TextureProgressBar_property_texture_under>`.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи методів
--------------------------
.. _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>`
Повертає поле розтягування із заданим індексом. Див. :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` та пов'язані властивості.
.. 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>`
Встановлює поле розтягування з заданим індексом. Див. :ref:`stretch_margin_bottom<class_TextureProgressBar_property_stretch_margin_bottom>` та пов'язані властивості.
.. |virtual| replace:: :abbr:`virtual (Зазвичай, цей метод перевизначається користувачем, щоб він мав вплив.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Цей метод не має побічних ефектів. Не змінює ніяку змінну екземпляра об'єкта.)`
.. |vararg| replace:: :abbr:`vararg (Цей метод приймає будь-яке число аргументів після описаних тут.)`
.. |constructor| replace:: :abbr:`constructor (Цей метод використовується для побудови типів.)`
.. |static| replace:: :abbr:`static (Цей метод не потребує екземпляра для виклику, його можна викликати безпосередньо за допомогою назви класу.)`
.. |operator| replace:: :abbr:`operator (Цей метод описує дійсний оператор для взаємодії з цим типом як з лівим операндом.)`
.. |bitfield| replace:: :abbr:`BitField (Це значення є цілим числом, складеним у вигляді бітової маски з наступних прапорів.)`
.. |void| replace:: :abbr:`void (Значення не повертається.)`