igiPushID

IGI tells widgets apart by their label, so two buttons both called "Buy" would be the same button. Takes id (Any text that is different for each repeat - usually ToString of a loop counter).

IGI

Parameters & Returns

Parameters

id String

Returns

Void

Quick Summary

IGI tells widgets apart by their label, so two buttons both called "Buy" would be the same button. Takes id (Any text that is different for each repeat - usually ToString of a loop counter).

Technical Exegesis...

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

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