igiListBox

A list where one item can be chosen. Takes label (The text beside it), selected (The chosen item, from 0), items (The items in one string, separated by |), height (How many items show at once (0 = ImGui chooses)). Returns: The chosen item, from 0.

IGI

Parameters & Returns

Parameters

label String
selected Int
items String
height Int

Returns

Int

Quick Summary

A list where one item can be chosen. Takes label (The text beside it), selected (The chosen item, from 0), items (The items in one string, separated by |), height (How many items show at once (0 = ImGui chooses)). Returns: The chosen item, from 0.

Technical Exegesis...

A list where one item can be chosen. It scrolls when there are more items than fit.

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

Returns: The chosen item, from 0.

Example

Example.bam
level = igiListBox("Level", level, "Forest|Cave|Castle|Moon", 4)