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.

Topics - wallabie

Pages: 1 [2] 3 4
NGUI 3 Support / UIInput inactive text color - how to change.
« on: May 26, 2014, 09:59:29 AM »
I've got a use case where I need to change UIInput InactiveColor from code.  I found how to change the ActiveTextColor but cannot do it with InactiveColor.  I could not find this prop even in the UIInput script.

Use case:

ScrollView is dynamically populated, after it's populated, I need a  toggle a particular item to be highlighted.  Is there an event that's fired when the Scrollview has finished populating itself.

Use Case:

In a scrollView, the user clicks an object that is half way out of the clipping area.  ATM I'm using the CenterOnClick component and it springs the item to the center of the scrollView.  Instead of springing the item all the way to the center, I would like the item to move only a little so that it just inside of the clipping area.  In cases where items are already fully within the clipping area, do not move at all.  How can something be done.

NGUI 3 Support / How to detect Change in ScrollView's CenterOnChild
« on: May 19, 2014, 01:08:07 AM »
The use case:

I'm using UICenterOnChild on a Grid.  As the user is scrolling through the scrollView, is there an event that can be subscribed to to know when the Centered Child item has changed ?

Essentially, need events that tracks the entire cycle of : DragStart, Dragging, DragEnd .  Did notice that scrollView does have a OnDragFinished.

I'm trying to make a horizontal scrollView in which the user can re order the items. After which, the ordering is saved so that when the user comes back to the app, they can see the same ordering again.  It seems that the scrollView can reorder things graphically but the ChildList is not reflecting the correct index.

1. Horizontal ScrollView with 3 items, set to horizontal sorting.
2. When item1 is dragged to item2, graphically it replaces the item2 position.  Even in the Grid's hack code, it seems to try to reparent with the correct index.
3. Problem is that after it does it's reparenting, the index is not updated to the new position.

Link to repos.

1. Drag  item1 to item2
2. Click on any of the buttons to see the child list. 

Scene description:

1. Popup button turns on/off the Categories in the ScrollView with a Table.
2. Each Category contains a ScrollView with a Grid.
3. Each Category is a prefab that's dynamically added to the Table.

1. When the Categories are added, the items are not placed correctly. Have to click on the Category header to make it align properly.  In the code that generates the Category, Table.Reposition() was called.
2. items are not being clipped by the outer Category scrollView. This is intermittent,sometimes working other times not.
3. Item buttons disappear intermittently upon enabling,disabling of the Categories.
4. Edit:  Now in the video:  when there are multiple items in the row and the row is dragged to the left,  the entire Category row jumps to the right.  This was mentioned in another posting that has a prefab of the scene.

Here is a video clip showing the above problems.

I'm trying to put a horizontal scrollview inside of the accordion Example 9 .  Here is a link to the prefab with the problem.

Steps to reproduce problem:
1. click header "Exciting Delivery Quest" to expand.
2. drag the items in the scrollview to the left.
3. click header to close.
4. Repeat 1-3 a few times to see the header jump to the right.

Perhaps I've got something setup incorrectly.

Misc Archive / Noesis is quite an inspiration
« on: May 11, 2014, 01:00:07 AM »
I downloaded a trial Noesis GUI that's on sale at the moment and fell over because the amount of built-in components are mind boggling.  It has basically everything that one would ever need to build any kind of complex GUI without having to build everything from scratch.  To do this in NGUI will take quite some time and money.   Quite good performance on mobile, only problem is that it doesn't support web player.   The reason I mention Noesis so that the NGUI community can see what to expect from a current state of the art GUI system is about.  All of the basic components are there,  drop in an use.  If needing customization, then XAML designer can be used.  Perhaps the new Unity GUI can take some tips from Noesis.

NGUI 3 Support / Dragging only a Copy from one ScrollView to another.
« on: April 25, 2014, 10:37:53 AM »
1. user drags an item from A to B.
2. Do not drag A, only drag a copy of A to B.  Meaning that A is not moved at all.  Only a copy of A is dragged to B.

Separate from the question above but I thought I put this request in before I forget it.

I'm using PressAndHold to drag the items.  Can this be exposed so that we can set our own interval.  I am finding that 0.2f works well in my case.

      else if (restriction == Restriction.PressAndHold)
            if (mPressTime + 0.2f > RealTime.time) return;

NGUI 3 Support / Drag drop from one scrollView to another.
« on: April 25, 2014, 01:30:46 AM »
I have 2 scrollViews.

A: vertical scrolling, Grid: horizontal.
1 2 3
4 5 6
7 8 9

B: horizontal scrolling, Grid: horizontal.

1 2 3 4 5

This is on mobile, A is directly above B and no spaces left and right of both scrollViews.

I need to drag from A to B and vice versa.  When dragging from A to B, the item is being dropped but only to A.   

NGUI 3 Support / PopupList is underneath scrollView's items.
« on: April 23, 2014, 07:00:55 AM »
I've got a popupList that has a dropDownList which is displayed over a horizontal scrollList.  The problem is that no matter what the depth settings I use on the popupList, the dropDownList is always underneath the scrollList's items.  How should the popupList be setup?

NGUI 3 Support / ScrollView with Grid Vertical odd behaviour.
« on: April 23, 2014, 01:55:06 AM »
I'm trying to do something very simple but not getting the expected result.

1. ScrollView with Grid (vertical). MaxPerLine = 2,  Have 8 items, would like it to look like:

1 2
3 4
5 6
7 8

but instead, I'm getting:

1 2 3 4
5 6 7 8

the clipping window is set at 2 per row, so 3,4,7,8 are being clipped while scrolling vertically. 

-- It seems that the maxPerLine for Vertical in this case means 2 vertical lines.

How to set the max number of elements per ROW for a vertical scrollView?

NGUI 3 Support / Disabling button's sound when button is disabled
« on: April 21, 2014, 09:45:47 PM »
How to disable the sound on a button when button.enabled = false ?

ATM, the button is disabled but it still reacts to clicks.

NGUI 3 Support / Toggle group not working correctly on Scene Start.
« on: April 15, 2014, 11:36:06 AM »
1. Got 3 toggle buttons. Bt1,Bt2,Bt3
2. and 3 content panels. A,B,C
3. The first toggle has "starting state" checked.
4. Activate and Deactivate is set correctly for each toggle.
5. When the scene is initially fired off, content A,B are displayed simultaneously.
6. However, When clicking buttons manually, the contents are enabled/disabled correctly.
7. This problem doesn't occur when there is only 2 buttons and 2 content panels.

I would like to use the Infinite ScrollList because of the built-in pooling feature but do not want the scrollList to be scrolled infinitely.  Is there a setting to make it scroll like a normal scrollList stopping at left and right.

Pages: 1 [2] 3 4