Desk methods
Lamp
These methods control the desk lamp on your workbench.
Returns
true
if the lamp is on,false
otherwise.
desk.SetLampState( state boolean )
Passing
true
tostate
will set the lamp on, andfalse
will turn it off.
desk.SetLampColor( color color )
Sets the lamp's color to
color
.
Minitool
These methods control the Minitool status screen on your desk.
In all methods containing the argument persistent
, this argument tells whether to keep the message forever or if it should disappear after a few seconds.
desk.ShowMessage( message string, persistent boolean )
Displays a message
message
with a blue background.
desk.ShowWarning( message string, persistent boolean )
Displays a message
message
with a flashing yellow background.
desk.ShowError( message string, persistent boolean )
Displays a message
message
with a flashing red background.
If there is currently a persistent message being displayed, this will clear the Minitool.