igiRadio

Category: IGI (in-game GUI) — Values

Syntax:

igiRadio:Int(label:String, current:Int, value:Int)


Parameters

Returns

value if this button was clicked, otherwise current.



Summary

One button of a group where only one can be chosen. Use the same variable for every button in the group.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
quality = igiRadio("Low", quality, 0)
igiSameLine()
quality = igiRadio("High", quality, 1)

BambooBasic © 2026 Michael Denathorn