Category: IGI (in-game GUI) — Windows
Syntax:
igiWindowIsOpen:Int()
None
0 on the frame the window's X was clicked, otherwise 1.
For a window opened with IGI_WINDOW_CLOSEBOX: tells you the user clicked its X. IGI doesn't hide the window itself - stop calling igiBeginEx for it, as in the example.
Call it every frame, between drawing your game and b2dFlip. See the IGI guide.
If showHelp Then
igiBeginEx("Help", -1, -1, 0, 0, IGI_WINDOW_CLOSEBOX)
If Not igiWindowIsOpen() Then showHelp = False
igiText("Arrow keys move")
igiEnd()
EndIf
BambooBasic © 2026 Michael Denathorn