igiPushID

Category: IGI (in-game GUI) — Layout

Syntax:

igiPushID:Void(id:String)


Parameters

Returns

Nothing



Summary

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.



Example
For i = 0 To 4
    igiPushID(ToString(i))
    If igiButton("Buy") Then BuyItem(i)
    igiPopID()
Next

BambooBasic © 2026 Michael Denathorn