diff options
author | tpart <tpart120@proton.me> | 2024-08-10 23:55:22 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-08-10 23:55:22 +0200 |
commit | fbcc21f2cb8c19e32a3e4b542535479ab7343169 (patch) | |
tree | 0bf4114e4c15d6095a08979e3efceef1feca07c2 /client/menu/scroll_container_custom.gd | |
parent | 519dc4d6b77ba59028c20c61c81f3801fcb811d2 (diff) | |
download | hurrycurry-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.gd | 3 |
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 |