OPX//77
opx_infinityform

Events

Last updated on

The local event and page channels of the form module.

opx:on:form:answer

Client, local. Raised after the owner's callback for every submit and cancel. Reaches only code inside opx_infinity's client VM.

AddEventHandler('opx:on:form:answer', function(payload) end)

Page channels

All on the interactive surface; every payload carries the form handle.

ChannelDirectionPayloadMeaning
form:editpage → Lua{ handle, id, seq, text }Candidate text for a field. Lua answers with the accepted text in the next frame.
form:keypage → Lua{ handle, key, repeat }up, down, left, right or enter.
form:steppage → Lua{ handle, id, direction }Click on a choice/slider arrow; direction is 1 or -1.
form:focuspage → Lua{ handle, id }The player clicked into a field.
form:dismisspage → Lua{ handle }Escape; cancels with reason dismissed.
focus:setpage → Lua{ owner, focus }Shared (page-focus-set); the form answers for owner form (keyboard only).
form:openLua → pagefirst frame plus anchor, width, dimRe-sent until the page is ready.
form:frameLua → page{ handle, title, note, rows, hint, keys, status, statusBad }Every field, with ack (last seq ruled on) on text rows.
form:closeLua → page{ handle }Take the form down.

On this page