class_progressbar.rst 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ProgressBar.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ProgressBar:
  6. ProgressBar
  7. ===========
  8. **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. General-purpose progress bar.
  10. Description
  11. -----------
  12. General-purpose progress bar. Shows fill percentage from right to left.
  13. Properties
  14. ----------
  15. +---------------------------+--------------------------------------------------------------------+------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`percent_visible<class_ProgressBar_property_percent_visible>` | ``true`` |
  17. +---------------------------+--------------------------------------------------------------------+------------------------------+
  18. | :ref:`int<class_int>` | size_flags_vertical | ``0`` *(parent override)* |
  19. +---------------------------+--------------------------------------------------------------------+------------------------------+
  20. | :ref:`float<class_float>` | step | ``0.01`` *(parent override)* |
  21. +---------------------------+--------------------------------------------------------------------+------------------------------+
  22. Theme Properties
  23. ----------------
  24. +---------------------------------+-------------------+------------------------------+
  25. | :ref:`StyleBox<class_StyleBox>` | bg | |
  26. +---------------------------------+-------------------+------------------------------+
  27. | :ref:`StyleBox<class_StyleBox>` | fg | |
  28. +---------------------------------+-------------------+------------------------------+
  29. | :ref:`Font<class_Font>` | font | |
  30. +---------------------------------+-------------------+------------------------------+
  31. | :ref:`Color<class_Color>` | font_color | Color( 0.94, 0.94, 0.94, 1 ) |
  32. +---------------------------------+-------------------+------------------------------+
  33. | :ref:`Color<class_Color>` | font_color_shadow | Color( 0, 0, 0, 1 ) |
  34. +---------------------------------+-------------------+------------------------------+
  35. Property Descriptions
  36. ---------------------
  37. .. _class_ProgressBar_property_percent_visible:
  38. - :ref:`bool<class_bool>` **percent_visible**
  39. +-----------+----------------------------+
  40. | *Default* | ``true`` |
  41. +-----------+----------------------------+
  42. | *Setter* | set_percent_visible(value) |
  43. +-----------+----------------------------+
  44. | *Getter* | is_percent_visible() |
  45. +-----------+----------------------------+
  46. If ``true``, the fill percentage is displayed on the bar.
  47. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  48. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  49. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`