igiBeginMenu

Category: IGI (in-game GUI) — Trees, tabs and menus

Syntax:

igiBeginMenu:Int(label:String)


Parameters

Returns

1 while the menu is open.



Summary

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.



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

BambooBasic © 2026 Michael Denathorn