form.openWaitDialog¶
since 1.5.10
Open a wait dialog.
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
title |
string | yes | the title of the dialog |
message |
string | yes | the message of the dialog |
progress |
boolean | optional (default true) |
adds a progress bar to the dialog |
wakeup |
function | yes | handler called on each loop |
close |
function | yes | handler called on close |
Returns¶
WaitDialog
Examples¶
From the official Ethos documentation
local dialog = form.openWaitDialog({
title = "Wait demo",
message = "This is a first message",
progress = true,
wakeup = function() print("Wait Dialog wakeup ...") end,
close = function() print("Wait Dialog close ...") end
})
dialog:message("This is a second message")
dialog:value(50)
dialog:closeAllowed(false)
dialog:close()
Used in¶
Real-world usage¶
Called 4 times across 3 open-source Ethos Lua projects. A few short excerpts: