mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 22:23:51 +01:00
18 lines
434 B
ReStructuredText
18 lines
434 B
ReStructuredText
toast() Netscript Function
|
|
============================
|
|
|
|
.. js:function:: toast(message[, variant])
|
|
|
|
:RAM cost: 0 GB
|
|
:param string message: message to display
|
|
:param success|info|warning|error variant: color of the toast
|
|
|
|
Spawns a toast (those bottom right notifications, like "Game Saved!" ).
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
toast("Reached $1b");
|
|
toast("Failed to hack home", "error");
|