igiTreeNode

Category: IGI (in-game GUI) — Trees, tabs and menus

Syntax:

igiTreeNode:Int(label:String)


Parameters

Returns

1 if the node is open.



Summary

A node that opens and closes. When it returns 1, show its contents and then call igiTreePop.

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



Example
If igiTreeNode("Player") Then
    igiText("Lives: " & ToString(lives))
    igiTreePop()
EndIf

BambooBasic © 2026 Michael Denathorn