OPX//77
opx_infinitymenu

Events

Last updated on

Local events and page channels of the menu module.

Client-local only: they reach handlers inside opx_infinity's client VM, not other resources.

opx:on:menu:action

Client, local. Raised after the owner's callback for every action on every menu.

AddEventHandler('opx:on:menu:action', function(payload) end)

opx:on:menu:state

Client, local. A menu opened, or the last one closed. Raised on change only. The HUD listens to it.

AddEventHandler('opx:on:menu:state', function(state) end)
  • state: table — { open = boolean }

Page channels

All on the interactive surface. Every payload carries the menu handle; a payload with a stale handle is dropped.

ChannelDirectionPayloadMeaning
menu:keypage → Lua{ handle, key, repeat }key: up, down, left, right, enter or back. Only sent when the page holds the keyboard (focus = 'full').
menu:choosepage → Lua{ handle, index }A row was clicked: move there and activate it.
menu:dismisspage → Lua{ handle }Escape on the page; closes with reason dismissed.
focus:setpage → Lua{ owner, focus }Shared by every view; the menu answers for owner menu only.
menu:openLua → pagefirst frame plus anchor, width, maxHeight, height, focus, closableRe-sent until the page is ready.
menu:frameLua → page{ handle, title, trail, rows, first, total, hint }The visible window of rows.
menu:closeLua → page{ handle }Take the menu down.

On this page