ProgressBar.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ProgressBar" inherits="Range" version="3.4">
  3. <brief_description>
  4. General-purpose progress bar.
  5. </brief_description>
  6. <description>
  7. General-purpose progress bar. Shows fill percentage from right to left.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="percent_visible" type="bool" setter="set_percent_visible" getter="is_percent_visible" default="true">
  15. If [code]true[/code], the fill percentage is displayed on the bar.
  16. </member>
  17. <member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" override="true" default="0" />
  18. <member name="step" type="float" setter="set_step" getter="get_step" override="true" default="0.01" />
  19. </members>
  20. <constants>
  21. </constants>
  22. <theme_items>
  23. <theme_item name="bg" type="StyleBox">
  24. The style of the background.
  25. </theme_item>
  26. <theme_item name="fg" type="StyleBox">
  27. The style of the progress (i.e. the part that fills the bar).
  28. </theme_item>
  29. <theme_item name="font" type="Font">
  30. Font used to draw the fill percentage if [member percent_visible] is [code]true[/code].
  31. </theme_item>
  32. <theme_item name="font_color" type="Color" default="Color( 0.94, 0.94, 0.94, 1 )">
  33. The color of the text.
  34. </theme_item>
  35. <theme_item name="font_color_shadow" type="Color" default="Color( 0, 0, 0, 1 )">
  36. The color of the text's shadow.
  37. </theme_item>
  38. </theme_items>
  39. </class>