public open(layerX as Int, layerY as Int, layerWidth as Int, layerHeight as Int, menuX as Int, menuY as Int) as Void
Opens the popup inside an overlay layer.
The menu is automatically moved when necessary to remain inside the provided layer bounds.
| Parameter | Description |
|---|---|
layerX | Overlay left coordinate. |
layerY | Overlay top coordinate. |
layerWidth | Overlay width. |
layerHeight | Overlay height. |
menuX | Requested popup left coordinate. |
menuY | Requested popup top coordinate. |
menu.open(panel.x, panel.y, panel.width, panel.height, event.x, event.y)