Countdown HUD item. This is a HUD item that acts as a countdown. When the countdown is over, it fires a function of your choice.
More...
Countdown HUD item. This is a HUD item that acts as a countdown. When the countdown is over, it fires a function of your choice.
VSLib.HUD.Countdown.Countdown |
( |
string |
formatStr = "{hrs}:{min}:{sec}" , |
|
|
bool |
minutesOnly = false |
|
) |
| |
|
private |
Creates the HUD item with a format string.
- Parameters
-
formatStr | The format string; default will display as "00:14:23" for example |
minutesOnly | If true, hours will add to the minutes; e.g. 01:05:10 will display as 00:65:10 |
void VSLib.HUD.Countdown.Detach |
( |
| ) |
|
|
private |
Stops and detaches the HUD object.
string VSLib.HUD.Countdown.GetString |
( |
| ) |
|
|
private |
Returns the full formatted string
string VSLib.HUD.Countdown.GetTickString |
( |
string |
strFormated | ) |
|
|
private |
Returns the current formatted time as a string
void VSLib.HUD.Countdown.Start |
( |
function |
func, |
|
|
int |
hours = 0 , |
|
|
int |
minutes = 0 , |
|
|
int |
seconds = 0 |
|
) |
| |
|
private |
Starts the countdown from the specified time
void VSLib.HUD.Countdown.Stop |
( |
| ) |
|
|
private |
void VSLib.HUD.Countdown.Tick |
( |
| ) |
|
|
private |
Calculates time-based mechanisms such as blinking and function calling
VSLib.HUD.Countdown.void |
( |
int |
hours = 0 , |
|
|
int |
minutes = 0 , |
|
|
int |
seconds = 0 |
|
) |
| |
|
private |
Sets a time to begin blinking
The documentation for this class was generated from the following file: