Skip to main content

dispatch_dialog_closes_to_script

Function dispatch_dialog_closes_to_script 

Source
pub fn dispatch_dialog_closes_to_script<H: ScriptHost + Resource<Mutability = Mutable>>(
    host: ResMut<'_, H>,
    events: MessageReader<'_, '_, DialogClosed>,
    out: MessageWriter<'_, ScriptCommandEvent>,
)
Expand description

Forward lumen_core::input::DialogClosed (W5 dialog contract) to the script: accepted = true routes as on_dialog_accepted(id) / on("dialog_accepted", id, fn), accepted = false as on_dialog_rejected(id) / on("dialog_rejected", id, fn). The emitter guarantees exactly one message per open->close cycle.