Module ui.widget.progresswidget

Widget for displaying progress bar.

Configurable attributes:

  • width
  • height
  • margin_v -- vertical margin between border and fill bar
  • margin_h -- horizontal margin between border and fill bar
  • radius
  • bordersize
  • bordercolor
  • bgcolor
  • fillcolor -- color of the main fill bar
  • altcolor -- color of the alt fill bar
  • ticks (list) -- default to nil, use this if you want to insert markers
  • tick_width
  • last -- maximum tick, used with ticks

Example:

local foo_bar = ProgressWidget:new{
    width = Screen:scaleBySize(400),
    height = Screen:scaleBySize(10),
    percentage = 50/100,
}
UIManager:show(foo_bar)



generated by LDoc 1.5.0 Last updated 2024-11-08 18:39:44