123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/ProgressBar.xml.
- .. _class_ProgressBar:
- ProgressBar
- ===========
- **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- General-purpose progress bar.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- General-purpose progress bar. Shows fill percentage from right to left.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`percent_visible<class_ProgressBar_property_percent_visible>` | ``true`` |
- +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | size_flags_vertical | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
- +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | step | ``0.01`` (overrides :ref:`Range<class_Range_property_step>`) |
- +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Theme Properties
- ----------------
- .. table::
- :widths: auto
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_color<class_ProgressBar_theme_color_font_color>` | ``Color( 0.94, 0.94, 0.94, 1 )`` |
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_color_shadow<class_ProgressBar_theme_color_font_color_shadow>` | ``Color( 0, 0, 0, 1 )`` |
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- | :ref:`Font<class_Font>` | :ref:`font<class_ProgressBar_theme_font_font>` | |
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`bg<class_ProgressBar_theme_style_bg>` | |
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`fg<class_ProgressBar_theme_style_fg>` | |
- +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_ProgressBar_property_percent_visible:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **percent_visible** = ``true``
- .. rst-class:: classref-property-setget
- - void **set_percent_visible** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_percent_visible** **(** **)**
- If ``true``, the fill percentage is displayed on the bar.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Theme Property Descriptions
- ---------------------------
- .. _class_ProgressBar_theme_color_font_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_color** = ``Color( 0.94, 0.94, 0.94, 1 )``
- The color of the text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_ProgressBar_theme_color_font_color_shadow:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_color_shadow** = ``Color( 0, 0, 0, 1 )``
- The color of the text's shadow.
- .. rst-class:: classref-item-separator
- ----
- .. _class_ProgressBar_theme_font_font:
- .. rst-class:: classref-themeproperty
- :ref:`Font<class_Font>` **font**
- Font used to draw the fill percentage if :ref:`percent_visible<class_ProgressBar_property_percent_visible>` is ``true``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_ProgressBar_theme_style_bg:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **bg**
- The style of the background.
- .. rst-class:: classref-item-separator
- ----
- .. _class_ProgressBar_theme_style_fg:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **fg**
- The style of the progress (i.e. the part that fills the bar).
- .. |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.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
|