:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ProgressBar.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ProgressBar: ProgressBar =========== **Inherits:** :ref:`Range` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` General-purpose progress bar. Description ----------- General-purpose progress bar. Shows fill percentage from right to left. Properties ---------- +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`percent_visible` | ``true`` | +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+ | :ref:`int` | size_flags_vertical | ``0`` (overrides :ref:`Control`) | +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+ | :ref:`float` | step | ``0.01`` (overrides :ref:`Range`) | +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+ Theme Properties ---------------- +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`Color` | :ref:`font_color` | ``Color(0.95, 0.95, 0.95, 1)`` | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`Color` | :ref:`font_outline_color` | ``Color(1, 1, 1, 1)`` | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`Color` | :ref:`font_shadow_color` | ``Color(0, 0, 0, 1)`` | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`int` | :ref:`outline_size` | ``0`` | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`Font` | :ref:`font` | | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`int` | :ref:`font_size` | | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`StyleBox` | :ref:`bg` | | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ | :ref:`StyleBox` | :ref:`fg` | | +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+ Property Descriptions --------------------- .. _class_ProgressBar_property_percent_visible: - :ref:`bool` **percent_visible** +-----------+----------------------------+ | *Default* | ``true`` | +-----------+----------------------------+ | *Setter* | set_percent_visible(value) | +-----------+----------------------------+ | *Getter* | is_percent_visible() | +-----------+----------------------------+ If ``true``, the fill percentage is displayed on the bar. Theme Property Descriptions --------------------------- .. _class_ProgressBar_theme_color_font_color: - :ref:`Color` **font_color** +-----------+--------------------------------+ | *Default* | ``Color(0.95, 0.95, 0.95, 1)`` | +-----------+--------------------------------+ The color of the text. ---- .. _class_ProgressBar_theme_color_font_outline_color: - :ref:`Color` **font_outline_color** +-----------+-----------------------+ | *Default* | ``Color(1, 1, 1, 1)`` | +-----------+-----------------------+ The tint of text outline of the ``ProgressBar``. ---- .. _class_ProgressBar_theme_color_font_shadow_color: - :ref:`Color` **font_shadow_color** +-----------+-----------------------+ | *Default* | ``Color(0, 0, 0, 1)`` | +-----------+-----------------------+ The color of the text's shadow. ---- .. _class_ProgressBar_theme_constant_outline_size: - :ref:`int` **outline_size** +-----------+-------+ | *Default* | ``0`` | +-----------+-------+ The size of the text outline. ---- .. _class_ProgressBar_theme_font_font: - :ref:`Font` **font** Font used to draw the fill percentage if :ref:`percent_visible` is ``true``. ---- .. _class_ProgressBar_theme_font_size_font_size: - :ref:`int` **font_size** Font size used to draw the fill percentage if :ref:`percent_visible` is ``true``. ---- .. _class_ProgressBar_theme_style_bg: - :ref:`StyleBox` **bg** The style of the background. ---- .. _class_ProgressBar_theme_style_fg: - :ref:`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.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`