Skip to main content

DrawProgressBar

Callable

  • DrawProgressBar(x: number, y: number, w: number, h: number, value: number, foreground?: string, background?: string): void

  • Draws a progress bar with color


    Parameters

    • x: number

      Position of the bar on the X axis

    • y: number

      Position of the bar on the Y axis

    • w: number

      Width of the bar

    • h: number

      Height of the bar

    • value: number

      Current progress to display on the bar

    • optionalforeground: string = "#66FF66"

      Color of the first part of the bar

    • optionalbackground: string = "red"

      Color of the bar background

    Returns void

    • Nothing