impulseWorkbar

A progress bar that advances automagically.

Functions

impulseWorkbar:Init()

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Called when the panel is initialized.

impulseWorkbar:Paint(w, h)

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Called when the panel is painted.

Parameters

  • w int

    The width of the panel.

  • h int

    The height of the panel.

impulseWorkbar:SetEndTime(endtime)

View source »

Sets the time the progress bar will take to complete.

Parameters

  • endtime number

    The time in seconds the progress bar will take to complete. Do CurTime() + (time in seconds) to get the end time.

impulseWorkbar:SetText(text)

View source »

Sets the text to display on the progress bar.

Parameters

  • text string

    The text to display on the progress bar.

impulseWorkbar:Think()

Internal

This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.

View source »

Called every tick.