igiBeginPopup

A small popup (for example a right-click menu). Takes id (The popup's name). Returns: 1 while the popup is open.

IGI

Parameters & Returns

Parameters

id String

Returns

Int

Quick Summary

A small popup (for example a right-click menu). Takes id (The popup's name). Returns: 1 while the popup is open.

Technical Exegesis...

A small popup (for example a right-click menu). It opens with igiOpenPopup and closes when the user clicks elsewhere or igiCloseCurrentPopup is called. When it returns 1, add its contents and call igiEndPopup.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.

Returns: 1 while the popup is open.

Example

Example.bam
If igiBeginPopup("actions") Then
    If igiMenuItem("Drop") Then DropItem()
    igiEndPopup()
EndIf