Category: IGI (in-game GUI) — Layout
Syntax:
igiPushID:Void(id:String)
Nothing
IGI tells widgets apart by their label, so two buttons both called "Buy" would be the same button. Put igiPushID / igiPopID round widgets that repeat, as in the example. (A label can also hide a unique part after ##: "Buy##sword".)
Call it every frame, between drawing your game and b2dFlip. See the IGI guide.
For i = 0 To 4
igiPushID(ToString(i))
If igiButton("Buy") Then BuyItem(i)
igiPopID()
Next
BambooBasic © 2026 Michael Denathorn