Appearance
ShowModalDialog ​
GameserverMessageShowModalDialog · inbound · 88 bytes
Subscribe with Engine.on("ShowModalDialog", fn). Print the live usage block with Engine.help("ShowModalDialog").
lua
local Engine = require("sdk.engine")
Engine.on("ShowModalDialog", function(ev)
print(ev.window_id, ev.title, ev.text)
end)| Name | Kind | Nested |
|---|---|---|
window_id | u32 | — |
title | str | — |
text | str | — |
choices | rep | LabelValuePair |
buttons | rep | LabelValuePair |
enter_button | u32 | — |
escape_button | u32 | — |
priority | u8 | — |