Skip to content

Commit

Permalink
Add im.treenode() overload where you can pass flags
Browse files Browse the repository at this point in the history
  • Loading branch information
binji committed Jan 31, 2025
1 parent 7a9485c commit 66fbd5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/imgui.lobster
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ def treenode(label, body):
treenode_end()
return open

def treenode(label, flags, body):
let open = treenode_start(label, flags)
if open:
body()
treenode_end()
return open

def treenode_open(label, body):
let open = treenode_start(label, treenode_default_open)
if open:
Expand Down

0 comments on commit 66fbd5d

Please sign in to comment.