bitburner-src/doc/source/netscript/basicfunctions/toast.rst

18 lines
413 B
ReStructuredText
Raw Normal View History

2021-10-14 08:07:05 +02:00
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
2021-10-17 04:36:49 +02:00
Spawns a toast (those bottom right notifications).
2021-10-14 08:07:05 +02:00
Example:
.. code-block:: javascript
toast("Reached $1b");
toast("Failed to hack home", "error");