ProgressBar.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ProgressBar" inherits="Range" version="4.0">
  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. <members>
  12. <member name="percent_visible" type="bool" setter="set_percent_visible" getter="is_percent_visible" default="true">
  13. If [code]true[/code], the fill percentage is displayed on the bar.
  14. </member>
  15. <member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" override="true" default="0" />
  16. <member name="step" type="float" setter="set_step" getter="get_step" override="true" default="0.01" />
  17. </members>
  18. <theme_items>
  19. <theme_item name="bg" data_type="style" type="StyleBox">
  20. The style of the background.
  21. </theme_item>
  22. <theme_item name="fg" data_type="style" type="StyleBox">
  23. The style of the progress (i.e. the part that fills the bar).
  24. </theme_item>
  25. <theme_item name="font" data_type="font" type="Font">
  26. Font used to draw the fill percentage if [member percent_visible] is [code]true[/code].
  27. </theme_item>
  28. <theme_item name="font_color" data_type="color" type="Color" default="Color(0.94, 0.94, 0.94, 1)">
  29. The color of the text.
  30. </theme_item>
  31. <theme_item name="font_outline_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
  32. The tint of text outline of the [ProgressBar].
  33. </theme_item>
  34. <theme_item name="font_shadow_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
  35. The color of the text's shadow.
  36. </theme_item>
  37. <theme_item name="font_size" data_type="font_size" type="int">
  38. Font size used to draw the fill percentage if [member percent_visible] is [code]true[/code].
  39. </theme_item>
  40. <theme_item name="outline_size" data_type="constant" type="int" default="0">
  41. The size of the text outline.
  42. </theme_item>
  43. </theme_items>
  44. </class>