Menu Sessions
Menu Sessions
Section titled “Menu Sessions”The easiest way to understand DaisyCore menus is to split them into two layers.
Definition layer
Section titled “Definition layer”DaisyMenu is the reusable menu definition. It describes slots, render logic, and click behavior.
Runtime layer
Section titled “Runtime layer”When a player opens that menu, DaisyCore creates a DaisyMenuSession.
That session is where runtime concerns live:
- the open inventory
- refresh scheduling
- invalidation
- player-specific state
Why this split is useful
Section titled “Why this split is useful”It keeps your reusable menu definitions clean while still letting the library handle per-player state safely.