diff options
Diffstat (limited to 'client/menu/menu.gd')
-rw-r--r-- | client/menu/menu.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/menu/menu.gd b/client/menu/menu.gd index 7f4a1fb6..2e63a1fe 100644 --- a/client/menu/menu.gd +++ b/client/menu/menu.gd @@ -85,12 +85,13 @@ func quit(): await exit() get_parent().quit() -func replace_menu(path: String): +func replace_menu(path: String, data_ = null): print("Replace menu: ", path) if popup != null: await popup.exit() _disable_recursive(self, true) await _menu_exit() var new_popup = load(path).instantiate() + new_popup.data = data_ get_parent().add_child(new_popup) if parent_menu != null: parent_menu.popup = new_popup queue_free() |