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

281 lines
13 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_ProgressBar:
ProgressBar
===========
**Успадковує:** :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:`TextureProgressBar<class_TextureProgressBar>`.
.. rst-class:: classref-reftable-group
Властивості
----------------------
.. table::
:widths: auto
+-------------------------+----------------------------------------------------------------------------------------------+-----------+
| :ref:`bool<class_bool>` | :ref:`editor_preview_indeterminate<class_ProgressBar_property_editor_preview_indeterminate>` | |
+-------------------------+----------------------------------------------------------------------------------------------+-----------+
| :ref:`int<class_int>` | :ref:`fill_mode<class_ProgressBar_property_fill_mode>` | ``0`` |
+-------------------------+----------------------------------------------------------------------------------------------+-----------+
| :ref:`bool<class_bool>` | :ref:`indeterminate<class_ProgressBar_property_indeterminate>` | ``false`` |
+-------------------------+----------------------------------------------------------------------------------------------+-----------+
| :ref:`bool<class_bool>` | :ref:`show_percentage<class_ProgressBar_property_show_percentage>` | ``true`` |
+-------------------------+----------------------------------------------------------------------------------------------+-----------+
.. rst-class:: classref-reftable-group
Властивості теми
--------------------------------
.. table::
:widths: auto
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`Color<class_Color>` | :ref:`font_color<class_ProgressBar_theme_color_font_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`Color<class_Color>` | :ref:`font_outline_color<class_ProgressBar_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`int<class_int>` | :ref:`outline_size<class_ProgressBar_theme_constant_outline_size>` | ``0`` |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`Font<class_Font>` | :ref:`font<class_ProgressBar_theme_font_font>` | |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`int<class_int>` | :ref:`font_size<class_ProgressBar_theme_font_size_font_size>` | |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`background<class_ProgressBar_theme_style_background>` | |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`fill<class_ProgressBar_theme_style_fill>` | |
+---------------------------------+-----------------------------------------------------------------------------+--------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Переліки
----------------
.. _enum_ProgressBar_FillMode:
.. rst-class:: classref-enumeration
enum **FillMode**: :ref:`🔗<enum_ProgressBar_FillMode>`
.. _class_ProgressBar_constant_FILL_BEGIN_TO_END:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_BEGIN_TO_END** = ``0``
Бар прогресу заповнюється від початку горизонтально, відповідно до мовного напрямку. Якщо :ref:`Control.is_layout_rtl()<class_Control_method_is_layout_rtl>` повертає ``false``, він заповнюється зліва направо, і якщо він повертає ``true``, він заповнюється зліва.
.. _class_ProgressBar_constant_FILL_END_TO_BEGIN:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_END_TO_BEGIN** = ``1``
Бар прогресу заповнюється з кінця, щоб почати горизонтально, відповідно до мовного напрямку. Якщо :ref:`Control.is_layout_rtl()<class_Control_method_is_layout_rtl>` повертає ``false``, він заповнюється зліва, і якщо він повертає ``true``, він заповнює зліва направо.
.. _class_ProgressBar_constant_FILL_TOP_TO_BOTTOM:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_TOP_TO_BOTTOM** = ``2``
Прогрес заповнюється зверху вниз.
.. _class_ProgressBar_constant_FILL_BOTTOM_TO_TOP:
.. rst-class:: classref-enumeration-constant
:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_BOTTOM_TO_TOP** = ``3``
Прогрес заповнюється зверху вниз.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи властивостей
------------------------------------
.. _class_ProgressBar_property_editor_preview_indeterminate:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **editor_preview_indeterminate** :ref:`🔗<class_ProgressBar_property_editor_preview_indeterminate>`
.. rst-class:: classref-property-setget
- |void| **set_editor_preview_indeterminate**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_editor_preview_indeterminate_enabled**\ (\ )
Якщо ``false``, то в редакторі буде записана анімація :ref:`indeterminate<class_ProgressBar_property_indeterminate>`.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_property_fill_mode:
.. rst-class:: classref-property
:ref:`int<class_int>` **fill_mode** = ``0`` :ref:`🔗<class_ProgressBar_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_ProgressBar_FillMode>` для можливих значень.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_property_indeterminate:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **indeterminate** = ``false`` :ref:`🔗<class_ProgressBar_property_indeterminate>`
.. rst-class:: classref-property-setget
- |void| **set_indeterminate**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_indeterminate**\ (\ )
При налаштуванні до ``true``, рядок прогресу вказує, що щось відбувається з анімацією, але не показує відсоток заповнення або значення.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_property_show_percentage:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_percentage** = ``true`` :ref:`🔗<class_ProgressBar_property_show_percentage>`
.. rst-class:: classref-property-setget
- |void| **set_show_percentage**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_percentage_shown**\ (\ )
Якщо ``true``, відсоток заповнення відображається на панелі.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи тематичної нерухомості
--------------------------------------------------------
.. _class_ProgressBar_theme_color_font_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **font_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`🔗<class_ProgressBar_theme_color_font_color>`
Колір тексту.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_color_font_outline_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_ProgressBar_theme_color_font_outline_color>`
Текст тексту **ProgressBar**.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_constant_outline_size:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **outline_size** = ``0`` :ref:`🔗<class_ProgressBar_theme_constant_outline_size>`
Розмір контуру тексту.
\ **Примітка.** Якщо використовується шрифт із увімкненим :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>`, для його :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` має бути принаймні *вдвічі* значення :ref:`outline_size<class_ProgressBar_theme_constant_outline_size>` щоб рендеринг контуру виглядав правильно. Інакше контур може здатися обрізаним раніше, ніж передбачалося.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_font_font:
.. rst-class:: classref-themeproperty
:ref:`Font<class_Font>` **font** :ref:`🔗<class_ProgressBar_theme_font_font>`
Шрифт використовується для відображення відсотка заповнення, якщо :ref:`show_percentage<class_ProgressBar_property_show_percentage>` ``true``.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_font_size_font_size:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **font_size** :ref:`🔗<class_ProgressBar_theme_font_size_font_size>`
Розмір шрифту, який використовується для малювання відсотка, якщо :ref:`show_percentage<class_ProgressBar_property_show_percentage>` ``true``.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_style_background:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **background** :ref:`🔗<class_ProgressBar_theme_style_background>`
Стиль фону.
.. rst-class:: classref-item-separator
----
.. _class_ProgressBar_theme_style_fill:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **fill** :ref:`🔗<class_ProgressBar_theme_style_fill>`
Стиль прогресу (тобто частина, яка заповнює бар).
.. |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 (Значення не повертається.)`