igiBeginEx

Category: IGI (in-game GUI) — Windows

Syntax:

igiBeginEx:Int(title:String, x:Int, y:Int, w:Int, h:Int, flags:Int)


Parameters

Returns

1 if the window's contents are showing, 0 if it is folded up.



Summary

Opens a window with a starting position and size, and flags. The position and size are only used the first time the window appears, so the user can move it afterwards; to place it every frame use igiSetNextWindowPos first. Flags: IGI_WINDOW_NOTITLEBAR, NORESIZE, NOMOVE, NOSCROLLBAR, NOCOLLAPSE, AUTORESIZE (fits its contents), NOBACKGROUND, NOMOUSEINPUTS (clicks pass through to the game), MENUBAR (for igiBeginMenuBar), HORIZONTALSCROLLBAR and CLOSEBOX (an X in the title bar - see igiWindowIsOpen). Call igiEnd afterwards either way.

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



Example
igiBeginEx("Inventory", 20, 40, 300, 400, IGI_WINDOW_CLOSEBOX + IGI_WINDOW_NOCOLLAPSE)
If Not igiWindowIsOpen() Then showInventory = False
; ...
igiEnd()

BambooBasic © 2026 Michael Denathorn