You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description of VerticalScrollView's onValueChanged attribute reads:
When a selection is made, its name is sent to a function with this name.
This makes it sound like a VerticalScrollView has some 'selection' which changes, and callback function is called whenever that selection changes (when a user selects something?). However instead I observe that the callback is called constantly when the VerticalScrollView is visible, the arguments given to the callback are a player, a string containing a couple of numbers which seem related to the ScrollView's scroll position and position, and the id of the ScrollView itself.
I'd like to create a UI that shows a list of items that the user can select from, sort of like a <Dropdown> but with a scrollable view. VerticalScrollView's docs make it sound like it could do the job but I haven't found how to make it work.
docs/ui/layoutgrouping.md
The description of VerticalScrollView's onValueChanged attribute reads:
This makes it sound like a VerticalScrollView has some 'selection' which changes, and callback function is called whenever that selection changes (when a user selects something?). However instead I observe that the callback is called constantly when the VerticalScrollView is visible, the arguments given to the callback are a player, a string containing a couple of numbers which seem related to the ScrollView's scroll position and position, and the id of the ScrollView itself.
I'd like to create a UI that shows a list of items that the user can select from, sort of like a <Dropdown> but with a scrollable view. VerticalScrollView's docs make it sound like it could do the job but I haven't found how to make it work.
-- lua script
-- UI xml snippet
The text was updated successfully, but these errors were encountered: