Custom menu actions
Let’s add a button that shows a recording’s ID. We will register a callback in the real menu registry, then reference it fromgui.details.items.
Get the menu registry
On a lobby server:Register the callback
example:show_idis the action’s namespaced ID.contextdescribes the current menu interaction and selected replay, if one exists.parameterscontains the string parameters configured on the clicked item.hasReplay()protectsrequireReplay()from being called on an item without a replay selection.
Put the action on a button
Merge this item into the lobby or standalone player’sgui.yml:
label and send the selected UUID.
Use navigation from the context
The context also provides menu navigation:openDetails(replayId), back(), close(), refresh(), and page navigation. Use them instead of reaching into Inventory Framework objects. replay() can be null; not every catalog background item belongs to a recording.

