1
NGUI 3 Support / Re: Using DPAD with UIScrollBar
« on: December 13, 2016, 02:54:50 PM »
Hello
Sorry in the time to get back. We have been crazy with the PS4 port. When it's complete I'll send a full list of mods I've made to NGUI. There's only a couple, and they may be rejected, but they were what was needed to fully convert a touch game to dpad.
So with the problem I have right now - the pan control & dpad up / down are the same control.
I have a UIScrollView which has a UIGrid underneath. Inside that UIGrid I have a selection of UIButtons which all have UIKeyNavigation items on them and I can select the buttons up and down. What I want is, as I select the buttons I want the UIScrollView to always show the highlighted button.
However I am detecting OnPan messages coming to my UIScrollView which is then sent to the vertical scroll bar which then pans all of the content so my highlighted buttons scroll out of view. I'm wondering if there's a way I can ensure that the UIScrollView always displays the highlighted button?
Sorry in the time to get back. We have been crazy with the PS4 port. When it's complete I'll send a full list of mods I've made to NGUI. There's only a couple, and they may be rejected, but they were what was needed to fully convert a touch game to dpad.
So with the problem I have right now - the pan control & dpad up / down are the same control.
I have a UIScrollView which has a UIGrid underneath. Inside that UIGrid I have a selection of UIButtons which all have UIKeyNavigation items on them and I can select the buttons up and down. What I want is, as I select the buttons I want the UIScrollView to always show the highlighted button.
However I am detecting OnPan messages coming to my UIScrollView which is then sent to the vertical scroll bar which then pans all of the content so my highlighted buttons scroll out of view. I'm wondering if there's a way I can ensure that the UIScrollView always displays the highlighted button?
