This PR adds a show_toast entity action type, and new classes: CustomToast for displaying a toast with configurable text and duration, CustomToastData, used for serializing data to be used for displaying CustomToasts, and CustomToastViewer (duck interface), mostly for implementing S2C packet transaction for displaying a toast from the server to the client
The show_toast entity action type accepts these fields:
If specified, the texture with this ID will be used as the texture of the toast. If the texture does not exist, the default texture will be used instead.
This PR adds a
show_toast
entity action type, and new classes:CustomToast
for displaying a toast with configurable text and duration,CustomToastData
, used for serializing data to be used for displayingCustomToast
s, andCustomToastViewer
(duck interface), mostly for implementing S2C packet transaction for displaying a toast from the server to the clientThe
show_toast
entity action type accepts these fields:title
description
texture
"apoli:toast/custom"
icon
duration
5000