Skip to content

Commit

Permalink
im.tab with font argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Nov 6, 2023
1 parent e6d3daa commit 8ef8651
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/imgui.lobster
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,17 @@ def tab(label, flags, body):
tab_end()
return open

def tab(label, font_idx, flags, body):
font_start(font_idx)
let open = tab_start(label, flags)
if open:
font_start(0)
body()
font_end()
tab_end()
font_end()
return open

def menu_bar(main, body):
let open = menu_bar_start(main)
if open:
Expand Down

0 comments on commit 8ef8651

Please sign in to comment.