Skip to content

Search

Документация

widget_toast

The row a toast reads: how long it stays. The widget_toast component of the Balaur game engine: its 1 property, and the functions a script calls on it.

На тази страница

ui · 1 property · UI

The row a toast reads: how long it stays.

In a scene, widget_toast is the node key that applies it. A script reaches each property below as a field on node.widget_toast: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_toast.get() and node.widget_toast.set(table).

Properties

property type default description
duration float 3 How long a toast stays, in seconds, counting the half second it fades over; zero leaves it up until the game takes it away At least 0.