Category: IGI (in-game GUI) — Trees, tabs and menus
Syntax:
igiBeginMainMenuBar:Int()
None
1 if the bar is showing.
Starts a menu bar across the top of the screen - common in editors and debug tools. Add menus with igiBeginMenu, then call igiEndMainMenuBar.
Call it every frame, between drawing your game and b2dFlip. See the IGI guide.
If igiBeginMainMenuBar() Then
If igiBeginMenu("Debug") Then
If igiMenuItem("Reset level") Then ResetLevel()
igiEndMenu()
EndIf
igiEndMainMenuBar()
EndIf
BambooBasic © 2026 Michael Denathorn