class_progressbar.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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:`Color<class_Color>` | :ref:`font_color<class_ProgressBar_theme_color_font_color>` | ``Color( 0.94, 0.94, 0.94, 1 )`` |
  26. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  27. | :ref:`Color<class_Color>` | :ref:`font_color_shadow<class_ProgressBar_theme_color_font_color_shadow>` | ``Color( 0, 0, 0, 1 )`` |
  28. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  29. | :ref:`Font<class_Font>` | :ref:`font<class_ProgressBar_theme_font_font>` | |
  30. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  31. | :ref:`StyleBox<class_StyleBox>` | :ref:`bg<class_ProgressBar_theme_style_bg>` | |
  32. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  33. | :ref:`StyleBox<class_StyleBox>` | :ref:`fg<class_ProgressBar_theme_style_fg>` | |
  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. Theme Property Descriptions
  48. ---------------------------
  49. .. _class_ProgressBar_theme_color_font_color:
  50. - :ref:`Color<class_Color>` **font_color**
  51. +-----------+----------------------------------+
  52. | *Default* | ``Color( 0.94, 0.94, 0.94, 1 )`` |
  53. +-----------+----------------------------------+
  54. The color of the text.
  55. ----
  56. .. _class_ProgressBar_theme_color_font_color_shadow:
  57. - :ref:`Color<class_Color>` **font_color_shadow**
  58. +-----------+-------------------------+
  59. | *Default* | ``Color( 0, 0, 0, 1 )`` |
  60. +-----------+-------------------------+
  61. The color of the text's shadow.
  62. ----
  63. .. _class_ProgressBar_theme_font_font:
  64. - :ref:`Font<class_Font>` **font**
  65. Font used to draw the fill percentage if :ref:`percent_visible<class_ProgressBar_property_percent_visible>` is ``true``.
  66. ----
  67. .. _class_ProgressBar_theme_style_bg:
  68. - :ref:`StyleBox<class_StyleBox>` **bg**
  69. The style of the background.
  70. ----
  71. .. _class_ProgressBar_theme_style_fg:
  72. - :ref:`StyleBox<class_StyleBox>` **fg**
  73. The style of the progress (i.e. the part that fills the bar).
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`