igiDragInt

A number you change by dragging left and right (or double-click to type). Takes label (The text beside it), value (The current value), speed (How much the value changes per pixel dragged), minValue (The lowest value), maxValue (The highest value (min = max means no limits)). Returns: The new value.

IGI

Parameters & Returns

Parameters

label String
value Int
speed Double
minValue Int
maxValue Int

Returns

Int

Quick Summary

A number you change by dragging left and right (or double-click to type). Takes label (The text beside it), value (The current value), speed (How much the value changes per pixel dragged), minValue (The lowest value), maxValue (The highest value (min = max means no limits)). Returns: The new value.

Technical Exegesis...

A number you change by dragging left and right (or double-click to type). Good for values with no natural range.

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

Returns: The new value.

Example

Example.bam
gold = igiDragInt("Gold", gold, 1.0, 0, 0)