Add horizontal scrolling and support for nesting ScrollingPanes#72
Conversation
Some of those prefabs thought they were 1920 units wide. It was causing problems.
ScrollTo() calls now propogate up all nested scroll panes. The first ScrollToIfOnMenuShow() call prevents any other scroll pane under the same MenuScreen hierarchy from firing it again.
|
Before I mark this as ready for review, I was hoping I could get a bit of help with an odd navigation order issue. On the first page of the "Scrolling Pane Tests" menu I built, The content is structured: For the most part this is working as expected, except for some reason, Navigating left and right between the two scroll panes always focuses the middle button in the group - button 7 - regardless of which button you're navigating from or what the state of either scroll pane is. I don't have a good grasp of how the navigation is set up, but that behaviour doesn't seem correct to me. I'd expect to either navigate to what is visually the closest selectable to the side of the one I was on is, or maybe to go to the top of the next pane over. Would anyone mind taking a look and trying to sort out what's going on there and if it's correct or not? 😅 |
|
After discussing with Flibber, it seems like that issue is related to the |
ScrollAxes is now a flags enum, EnumerateDescendants Predicate is now a Func, and .RectTransform extension is used in place of casts/etc.
|
As with the other PR, feel free to make some noise in Discord if you want a release before the other extant PRs are gotten to |
Summary of Changes
This adds:
ScrollingPanes within otherScrollingPanes(no version bump due to 4 open PRs at time of writing)
Checklist