igiBeginPopupModal

A popup window that must be dealt with before anything else: the rest of the screen is dimmed and blocked. Takes title (The popup's title and name). Returns: 1 while the popup is open.

IGI

Parameters & Returns

Parameters

title String

Returns

Int

Quick Summary

A popup window that must be dealt with before anything else: the rest of the screen is dimmed and blocked. Takes title (The popup's title and name). Returns: 1 while the popup is open.

Technical Exegesis...

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.

Returns: 1 while the popup is open.

Example

Example.bam
If igiBeginPopupModal("Quit?") Then
    igiText("Really quit?")
    If igiButton("Yes") Then running = False
    igiSameLine()
    If igiButton("No") Then igiCloseCurrentPopup()
    igiEndPopup()
EndIf