igiRadio

One button of a group where only one can be chosen. Takes label (The text beside the button), current (The group's current choice), value (The value this button stands for). Returns value if this button was clicked, otherwise current.

IGI

Parameters & Returns

Parameters

label String
current Int
value Int

Returns

Int

Quick Summary

One button of a group where only one can be chosen. Takes label (The text beside the button), current (The group's current choice), value (The value this button stands for). Returns value if this button was clicked, otherwise current.

Technical Exegesis...

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.

Returns: value if this button was clicked, otherwise current.

Example

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