aboutsummaryrefslogtreecommitdiff
path: root/client/menu/scroll_container_custom.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-10 23:55:22 +0200
committertpart <tpart120@proton.me>2024-08-10 23:55:22 +0200
commitfbcc21f2cb8c19e32a3e4b542535479ab7343169 (patch)
tree0bf4114e4c15d6095a08979e3efceef1feca07c2 /client/menu/scroll_container_custom.gd
parent519dc4d6b77ba59028c20c61c81f3801fcb811d2 (diff)
downloadhurrycurry-fbcc21f2cb8c19e32a3e4b542535479ab7343169.tar
hurrycurry-fbcc21f2cb8c19e32a3e4b542535479ab7343169.tar.bz2
hurrycurry-fbcc21f2cb8c19e32a3e4b542535479ab7343169.tar.zst
Show map list in lobby for quick selection
Diffstat (limited to 'client/menu/scroll_container_custom.gd')
-rw-r--r--client/menu/scroll_container_custom.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/menu/scroll_container_custom.gd b/client/menu/scroll_container_custom.gd
index 73780ae2..cc578bb1 100644
--- a/client/menu/scroll_container_custom.gd
+++ b/client/menu/scroll_container_custom.gd
@@ -21,6 +21,9 @@ class_name ScrollContainerCustom
const SCROLL_SPEED := 1000.
var velocity := 0.
+func _init():
+ follow_focus = true
+
func _process(delta):
velocity = G.interpolate(velocity, 0., delta * 5.)
velocity = 0. if abs(velocity) < .001 else velocity