Category: IGI (in-game GUI) — Trees, tabs and menus
Syntax:
igiBeginPopupModal:Int(title:String)
1 while the popup is open.
A popup window that must be dealt with before anything else: the rest of the screen is dimmed and blocked. It opens with igiOpenPopup and closes with igiCloseCurrentPopup. When it returns 1, add its contents and call igiEndPopup.
Call it every frame, between drawing your game and b2dFlip. See the IGI guide.
If igiBeginPopupModal("Quit?") Then
igiText("Really quit?")
If igiButton("Yes") Then running = False
igiSameLine()
If igiButton("No") Then igiCloseCurrentPopup()
igiEndPopup()
EndIf
BambooBasic © 2026 Michael Denathorn