igiBeginMainMenuBar

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

Syntax:

igiBeginMainMenuBar:Int()


Parameters

None



Returns

1 if the bar is showing.



Summary

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.



Example
If igiBeginMainMenuBar() Then
    If igiBeginMenu("Debug") Then
        If igiMenuItem("Reset level") Then ResetLevel()
        igiEndMenu()
    EndIf
    igiEndMainMenuBar()
EndIf

BambooBasic © 2026 Michael Denathorn