Skip to content

Commit

Permalink
Menu: ignore some children
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed May 22, 2023
1 parent 49b0bc9 commit 832933f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/menu-system/Menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func clear_menu():

func update_menu():
for child in get_children():
if child.name.begins_with("_") or not child is Control:
continue
child.hide()

if menu_stack.size() > 0:
Expand Down

0 comments on commit 832933f

Please sign in to comment.