|
Basic HUD clock. Displays the current simulation time offset from some base. More...
Public Member Functions | |
float | getTime () |
Returns the current time, in seconds. | |
void | setTime (float timeInSeconds=60) |
Sets the current base time for the clock. | |
Public Attributes | |
Misc | |
ColorF | fillColor |
Standard color for the background of the control. | |
ColorF | frameColor |
Color for the control's frame. | |
bool | showFill |
If true, draws a background color behind the control. | |
bool | showFrame |
If true, draws a frame around the control. | |
ColorF | textColor |
Color for the text on this control. |
Basic HUD clock. Displays the current simulation time offset from some base.
new GuiClockHud(){ fillColor = "0.0 1.0 0.0 1.0"; // Fills with a solid green color frameColor = "1.0 1.0 1.0 1.0"; // Solid white frame color textColor = "1.0 1.0 1.0 1.0"; // Solid white text Color showFill = "true"; showFrame = "true"; };
float GuiClockHud::getTime | ( | ) |
Returns the current time, in seconds.
// Get the current time from the GuiClockHud control
%timeInSeconds = %guiClockHud.getTime();
void GuiClockHud::setTime | ( | float | timeInSeconds = 60 |
) |
Sets the current base time for the clock.
timeInSeconds | Time to set the clock, in seconds (IE: 00:02 would be 120) |
// Define the time, in seconds %timeInSeconds = 120; // Change the time on the GuiClockHud control %guiClockHud.setTime(%timeInSeconds);
ColorF GuiClockHud::fillColor |
Standard color for the background of the control.
ColorF GuiClockHud::frameColor |
Color for the control's frame.
If true, draws a background color behind the control.
If true, draws a frame around the control.
ColorF GuiClockHud::textColor |
Color for the text on this control.