igiButton

A button, sized to its text. Takes label (The button's text). Returns: 1 on the frame the button is clicked, otherwise 0.

IGI

Parameters & Returns

Parameters

label String

Returns

Int

Quick Summary

A button, sized to its text. Takes label (The button's text). Returns: 1 on the frame the button is clicked, otherwise 0.

Technical Exegesis...

A button, sized to its text.

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

Returns: 1 on the frame the button is clicked, otherwise 0.

Example

Example.bam
If igiButton("Start") Then StartGame()