Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nguiman

Pages: [1] 2
1
Thanks! I think it has something to do with the UICenterOnChild as well.

2
Yeah I imagine there might need to be some special casing for the start and end.

But is there anyway to prevent the slight spring/settle on the list?

3
Thanks, thats close to what I want. But I find there's still a bit of a spring/settle when moving the elements, I notice there's a 'SpringPanel' being added to the scollview, how do I disable it? UIScrollView.DisableSpring didn't appear to work. Or would I need to do something else?

Also anyway to make this work with UICenterOnClick?

4
I have a scrollview and the elements are draggable within it.

How do I lock it so the first element can't be dragged further inside than the top or the last element can't be dragged further inside than the bottom? Like a standard scrollable list you'd find on a website.

5
NGUI 3 Support / Re: UIPanel/UIScrollview Position Reset
« on: April 30, 2014, 03:13:08 PM »
Thanks!

6
NGUI 3 Support / Re: UIGrid custom sort
« on: April 29, 2014, 10:05:28 AM »
thanks, i'm looking forward to using the latest version for the next game!
maybe i can import just that script

7
NGUI 3 Support / UIPanel/UIScrollview Position Reset
« on: April 29, 2014, 12:26:36 AM »
I have a UIPanel/UIScrollview (w/Alpha Clipping), and a UIGrid under that with a number of UIDragScrollViews as children. The children are instantiated once, the details and active state are enabled/disabled in place at runtime (meaning they are not destroyed just disabled).

I've noticed when going from a long list to a short list, the overall size of the grid doesn't change resulting in the shorter list potentially being shown offscreen. For example...

I instantiate a list of 15 items. All 15 are active, the containing UIPanel is using 'Alpha Clipping' to show 5 items at a time. I scroll to the bottom. I then load up a list of 3 items by replacing the values of the first 3 items and making the remaining 12 inactive. The 3 items and collider are now inaccessible outside the clipping region.

translating the UIPanel/Scrollview Transform relocates the Grid, but breaks the clipping region as that moves as well.

How can I reset the position of the panel/scrollview for the shorter list?

also I'm using NGUI v3.0.7f2, but can't upgrade due to other dependencies.

8
NGUI 3 Support / Re: UIPanel and UIWidget interoperability
« on: April 16, 2014, 02:18:35 PM »
are UIWidgets now able to Soft Clip? or has that feature been removed entirely?

9
NGUI 3 Support / Re: UIGrid custom sort
« on: April 16, 2014, 02:17:24 PM »
so Sorting.Custom is not being used? Thanks!

10
NGUI 3 Support / UIGrid custom sort
« on: April 11, 2014, 05:48:25 PM »
how do I use a custom sort for UIGrids?

11
NGUI 3 Support / Re: UIPanel and UIWidget interoperability
« on: April 11, 2014, 12:40:01 PM »
v3.0.7 f2, and its unlikely I can upgrade since that could break other UI dependencies.

Attached is what I'm seeing, trying to translate the UIPanel/UIGrid in the inspector. The entire panel and content flickers on and off (and not necessarily together) when within the panel's visible non-clipped region.

I'm further having difficulty placing the UIPanel and its hierarchy over a UISprite.

Also where is Soft Clip being set now?

12
NGUI 3 Support / UIPanel and UIWidget interoperability
« on: April 10, 2014, 09:08:12 PM »
I have a UIPanel/UIGrid (no UIScrollview) under a UIWidget container, I'm using the panel's 'Soft Clip' to constrict the grid to within the widget as it scrolls. But I find that the panel (and all elements under it) flicker as it scrolls and the UILabels (dynamic fonts) for each item are illegible (looks like white boxes that flicker as well).

I tried separating each by depth, but that didn't solve the issue.

How can I resolve this? and what is causing it?

13
NGUI 3 Support / Set the state of a UIButton and/or Collider in code
« on: March 30, 2014, 08:05:55 PM »
Is it possible to set the state of a UIButton to being 'pressed' in code? (via thru NGUI, its collider, or some other method)

There are situations that I want a UI element to be shown in the pressed state, when something else is pressed or some action has occurred. I know I can set the sprite's 'normal' state to use the 'pressed' graphic, but this would require management to reset it back after, I wanted to know if there was a more direct way.


14
NGUI 3 Support / Re: Adjusting the 'Next Page Threshold'
« on: March 30, 2014, 08:02:27 PM »
Thanks as always for the confirmation.

I just checked and it appears the setup of the scrollview/grid items is similar to the latter.

But I'm still receiving a zero for the index and no result when adjusting the threshold.

15
NGUI 3 Support / Re: Adjusting the 'Next Page Threshold'
« on: March 29, 2014, 03:21:08 PM »
looking at the code for UICenterOnChild, I saw that it was checking whether 'index > 0' before calculating which page to go to. Obviously since my index is 0 it never runs.

how can I adjust the threshold in the first setup shown (simple list of unparented children items)? Thank you.

Pages: [1] 2