#(4.4) Center/middle item of the screen is always focused (Help)

1 messages · Page 1 of 1 (latest)

boreal ocean
#

I want to do a scroll where the center of the container is selected and focused but have no idea how to do it
The images attached are a mock up in photoshop

#

Just thought of an existing example (Taiko Drum)

reef flicker
#

Perhaps a scroll container with SCROLL_MODE_SHOW_NEVER and implement custom scroll logic, setting scroll_vertical in set increments based on however you want the interaction with the menu to be handled. could set scroll_vertical_custom_step to be the fixed interval too so that it can be scrolled like normal. then just put a vbox with buttons in it or whatever you want

#

Ive never used it, but could try follow_focus = true too, and see if that follows the button focus if you implemented the focus navigation in the sub container of the scroll container

amber warren
# boreal ocean I want to do a scroll where the center of the container is selected and focused ...

The type of menu you're looking for as a carousel menu, it's not in godot natively as far as I'm aware but there's plenty of recreations of it online. Random tutorial of one, doesn't seem to have drag you can add it if needed: https://www.youtube.com/watch?v=z6sUvOBYpT4

boreal ocean