igiCodeEditor

Category: IGI (in-game GUI) — Code editor

Syntax:

igiCodeEditor:Void(editor:Int, width:Int, height:Int)


Parameters

Returns

Nothing



Summary

Draws the editor inside the current window. Click it to type. Keys: arrows (Ctrl for a word at a time), Home / End, Ctrl+Home / End, Page Up / Down, Shift to select, Ctrl+A / C / X / V, Ctrl+Z / Y, Tab and Shift+Tab (indent a selection), Enter keeps the indent. Double-click selects a word.

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



Example
igiBegin("Script")
igiCodeEditor(editor, 0, 0)
igiEnd()

BambooBasic © 2026 Michael Denathorn