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 / Tab buttons toggling.
« on: March 22, 2014, 11:17:15 PM »
Using the Tab example:

I would like to make the button keep a particular state when it is selected and toggle off the previously selected tab.  For instance,

1. given Tab1 and Tab2.
2. user clicks on one Tab1, Tab1 displays tabOn state and disabled.
3. user clicks on Tab2, Tab2 displays tabOn state and disabled.  Tab1 changes to tabOff state and becomes enabled.

Is there an example of how to do this. 



I would like to make a Tree that has drag/drop tree nodes.  What would you suggest to use as a starting base.  I was thinking of using the drag/drop scrollable list in the example.

I just got this error while running NGUI.

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced

Is this something NGUI related?

NGUI 3 Support / Scrollview API that's awesome.
« on: March 14, 2014, 04:42:11 AM »
Here is a link to a very good example of a well thought out ScrollView API and some examples of what can be built from the API.

Edit: ATM most of the GUI solutions for Unity is too focused on desktop.  Desktop GUI design paradigm is very different from Mobile.  For example,  on mobile, due to screen size, a new paradigm of user interaction was created to overcome the limitation.  Flicking and panning to view more content, pinching, etc.  Technically, at the very heart of this new paradigm is the ScrollView component.  As can be seen from the example link, many types of user interactions are possible with the ScrollView component as the foundation. 

A more robust ScrollView component in NGUI would enable Unity developers to be able to create Mobile user experiences that are more in line  with what user of IOS and Android are accustomed to and will come to expect.

Examples :

Scrollview API:

NGUI 3 Support / Nested scrollview Support in NGUI.
« on: March 12, 2014, 09:45:05 PM »
NGUI really needs to support Nested Scrollview. 

I've been working with DaikonForge and nested scrollviews are very well supported.  Additionally, their  helper methods to easily work with panning the content and scrolling are very well designed.  NGUI really need to step up on this area. 

NGUI 3 Support / How to do Automatic Panning within ScrollView.
« on: March 12, 2014, 12:09:22 PM »
Hi ArenMook,

I'm still working on the slider inside of a horizontal Scrollview.

1. The slider is 2x wider than the Scrollview visible window.
2. When the user drags the thumb of the slider to the left or right edge, I would like for the scrollview to auto pan in the dragging direction.  This way, the user doesn't have to stop and go down to the horizontalScrollBar to drag.

Thanks for any suggestions.

NGUI 3 Support / Scrollview and scrollbar blues
« on: March 12, 2014, 12:54:49 AM »
As your suggestion, I created a background and foreground sprite instead of using the slider. 

As you can see from the movie, the problem is that scrollbar is not behaving as it should.
1. Not updating the percentage correctly.
2. Disappears even when there is content to be scrolled.


This is the code is on the Left/Right Thumb Sprites: 

  1.         void OnDrag (Vector2 delta)
  2.         {
  3.                 Debug.Log ("targetWidth=" + target.width);
  4.                 var targetW = target.width;
  6.                 //Auto Stretch Slider
  7.                 //If max border of slider is reached, then stretch.
  8.                 var rightPos = targetW - 3f;
  10.                 if(thumbRight.cachedTransform == this.transform){
  12.                         thumbRight.cachedTransform.parent = thumb.cachedTransform;
  14.                         thumbRight.cachedTransform.localPosition = new Vector3(rightPos,0f,0f);
  15.                         var thumbPos = thumbRight.cachedTransform.localPosition + thumb.cachedTransform.localPosition ;
  17.                         slider.width = (int)thumbPos.x;
  18.                         scrollView.UpdateScrollbars(true);
  19. }

NGUI 3 Support / Jitter Bug Blues
« on: March 10, 2014, 11:06:30 PM »
Here's my first attempt at creating a resizable thumb control.  I added a thumbLeft and thumbRt as children of the main thumb.  Then I added a DragResize to both of the children.  When dragging the thumbRt constantly does a Jitter Bug dance.  I tried changing various combinations of pivots but still the same jittering.  The thumbLeft stays perfect.


Another question:  Is it possible to change the pivot at run time, for example, if the user clicks on  thumbLeft or thumbRt, I would like to change the pivot of the parent's Thumb.

I'm trying to figure out how to make the parent Scrollview update itself when one of its children length changes. 

Edit: forgot to mention that I was changing the width of the scrollbar in the scene view while the game in playing.  I thought that the scrollview would automatically recalculate its bounds when something inside changes. 

The last scrollbar at the bottom is the Horizontal ScrollBar for the Scrollview.  The other scrollbars are dummy components for the test.

I was wondering if the ScrollView supports scrolling both Horizontally and Vertically.

For example, is it possible a scrollView component that contains a grid that is is 10 X 10 items and for this scrollview to have both a horizontal and vertical scrollbars.

Here is a scroll panel example from DaikonForge.

NGUI 3 Support / Powerpoint animation re-sizable slider button.
« on: March 09, 2014, 09:45:55 AM »
Hi ArenMook,

I would like to know how to create a Power Point animation re-sizable slider button. 

In particular, which NGUI components or classes would be the best to use to start with.  Here is a video of the re-sizable slider button in action.

Any suggestions is greatly appreciate it. 

NGUI 3 Support / Example 11, Drag&Drop in same scrollview.
« on: March 03, 2014, 08:54:26 AM »
Great example.

I would like to be able to reorder the items in the "Same" scrollview using drag and drop.  Can this be done?  If yes, how to achieve this effect.


Pages: 1 2 3 [4]