igiImageButton

A button showing a b2d image. Takes id (A name for the button, unique within its window), image (A b2d image handle), w (Width (0 = the image's width)), h (Height (0 = the image's height)). Returns: 1 on the frame it's clicked, otherwise 0.

IGI

Parameters & Returns

Parameters

id String
image Int
w Int
h Int

Returns

Int

Quick Summary

A button showing a b2d image. Takes id (A name for the button, unique within its window), image (A b2d image handle), w (Width (0 = the image's width)), h (Height (0 = the image's height)). Returns: 1 on the frame it's clicked, otherwise 0.

Technical Exegesis...

A button showing a b2d image.

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

Returns: 1 on the frame it's clicked, otherwise 0.

Example

Example.bam
If igiImageButton("bomb", bombImage, 48, 48) Then UseBomb()