igiBeginMenu

A menu in a menu bar (or a sub-menu inside another menu). Takes label (The menu's name). Returns: 1 while the menu is open.

IGI

Parameters & Returns

Parameters

label String

Returns

Int

Quick Summary

A menu in a menu bar (or a sub-menu inside another menu). Takes label (The menu's name). Returns: 1 while the menu is open.

Technical Exegesis...

A menu in a menu bar (or a sub-menu inside another menu). When it returns 1, add items and then call igiEndMenu.

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

Returns: 1 while the menu is open.

Example

Example.bam
If igiBeginMenu("View") Then
    If igiMenuItem("Map") Then showMap = True
    igiEndMenu()
EndIf