aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-08 20:05:39 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-08 20:05:39 +0200
commit3a93493437182a20040cd50cf83a3d3196b046fc (patch)
treeba561e6e5438c5570a56bf6342b8d315c24e29dc /client/global.gd
parentc0d4eb9da614c02dc5dc4a15db420014f592ba45 (diff)
downloadhurrycurry-3a93493437182a20040cd50cf83a3d3196b046fc.tar
hurrycurry-3a93493437182a20040cd50cf83a3d3196b046fc.tar.bz2
hurrycurry-3a93493437182a20040cd50cf83a3d3196b046fc.tar.zst
open book menu when interacting with the tile
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd
index a9df1329..691a85c7 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -213,3 +213,7 @@ func interpolate_angle(current, target, dt):
else:
target -= PI * 2
return target + (current - target) * exp(-dt)
+
+func find_menu(node: Node) -> Menu:
+ if node is Menu: return node
+ else: return find_menu(node.get_parent())