aboutsummaryrefslogtreecommitdiff
path: root/client/menu/menu.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-18 12:39:48 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-18 12:39:48 +0200
commitefc29c03f7be043ae8d037a93efce8cfa7c384cc (patch)
tree243d0b1895d9b98c1273cd4df1821b54222b690f /client/menu/menu.gd
parent2a31d26fca33789ccf8ea28cdb214d20dd29f85d (diff)
parent0b67eafb3b4942ed511c802fa6289634c414af30 (diff)
downloadhurrycurry-efc29c03f7be043ae8d037a93efce8cfa7c384cc.tar
hurrycurry-efc29c03f7be043ae8d037a93efce8cfa7c384cc.tar.bz2
hurrycurry-efc29c03f7be043ae8d037a93efce8cfa7c384cc.tar.zst
Merge branch 'master' of https://codeberg.org/hurrycurry/hurrycurry
Diffstat (limited to 'client/menu/menu.gd')
-rw-r--r--client/menu/menu.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/menu/menu.gd b/client/menu/menu.gd
index d2da3529..6dd48fca 100644
--- a/client/menu/menu.gd
+++ b/client/menu/menu.gd
@@ -51,13 +51,13 @@ func menu_anim_cover(_state: bool):
pass
var popup: Menu = null
-func submenu(path: String, data = null):
+func submenu(path: String, data_ = null):
var prev_focus = Global.focused_node
if popup != null: return
_disable_recursive(self, true)
await menu_anim_cover(true)
popup = load(path).instantiate()
- popup.data = data
+ popup.data = data_
add_child(popup)
print("Submenu opened ", path)
await submenu_close