igiOpenPopup

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

Syntax:

igiOpenPopup:Void(id:String)


Parameters

Returns

Nothing



Summary

Asks for a popup to open. It opens the next time igiBeginPopup / igiBeginPopupModal with the same name is called, so this works from anywhere - a button, a menu item, or a key press.

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



Example
If igiMenuItem("About") Then igiOpenPopup("About")
; ... later, in the same window or anywhere ...
If igiBeginPopupModal("About") Then
    igiText("My Game v1.0")
    If igiButton("Close") Then igiCloseCurrentPopup()
    igiEndPopup()
EndIf

BambooBasic © 2026 Michael Denathorn