From 832933fe51d26c3f6680236b7f5e2d89f6ffd941 Mon Sep 17 00:00:00 2001 From: myin Date: Mon, 22 May 2023 15:38:37 +0200 Subject: [PATCH] Menu: ignore some children --- addons/menu-system/Menu.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/menu-system/Menu.gd b/addons/menu-system/Menu.gd index b097c35..ebbd063 100644 --- a/addons/menu-system/Menu.gd +++ b/addons/menu-system/Menu.gd @@ -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: