Advertisement
Mangus875

Debug Module Progress Bar Type

Apr 18th, 2023 (edited)
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -- Default Progress Bar Settings:
  2. {
  3.     Title = '',
  4.     Size = 20,
  5.     PercentSettings = {
  6.         Show = true,
  7.         Position = 3,       -- 1 = before everything, 2 = after title, before bar, 3 = after everything
  8.         RoundTo = 0.1,
  9.         Mode = 'percent'    -- 'percent' or 'fraction'  e.g. 50% or current..'/'..max
  10.     },
  11.     Fill = '#',
  12.     Empty = '.',
  13.     Ends = {' [','] '}
  14. }
  15. -- Default progress bar:
  16. -- [#######.............] 35.0%
  17.  
  18. type ProgressBarSettings =
  19. {
  20.     Title : string?,
  21.     Size : number?,
  22.     PercentSettings: { Show : boolean?, Position : number?, RoundTo : number?, Mode : string? }?,
  23.     Fill : string?,
  24.     Empty : string?,
  25.     Ends : { [number] : string } | string?
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement