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 - wallabie

Pages: 1 ... 11 12 [13] 14
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. 

DaikonForge handles Nested Scrollview very Nicely. 

This is quite a big limitation for a GUI framework.
When do you think NGUI will be able to support this basic GUI functionality. 

NGUI 3 Support / Re: How to do Automatic Panning within ScrollView.
« on: March 12, 2014, 09:28:47 PM »
Ok, how to get the Left and Right Clipping Boundary ?

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.

This is a Scrollview inside of a scrollview.
The reason for the setup below is to simulate the PowerPoint Animation panel and it's working except for the slider problem.

Scrollview - vertical
  Grid - arrange vertical
  Grid - arrange horizontal
    ScrollView - horizontal
      Grid - arrange vertical

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 / Re: Jitter Bug Blues
« on: March 12, 2014, 12:26:37 AM »
The 2 extra left and right thumb sprites are simply children of the Thumb sprite. 
As you can see, the left Thumb works, but the right one doesn't.  Should I use some sort of anchor?

NGUI 3 Support / Re: Powerpoint animation re-sizable slider button.
« on: March 12, 2014, 12:15:08 AM »
Ok, no slider,

Can you recommend some solid code that does the limiting reliably when dragging.

Would you consider a request for creating an example, like in the case of DaikonForge, a NxN drag and drop resizable demo.  The reason is that this is quite a common GUI component and has many applications.  It would be a Great example of how to make a more advanced component using NGUI's new features.
DaikonForge demos include a range from simple to more advanced covering many of the common use cases.  Their demos help to show off the power and flexibility of their system. 

NGUI 3 Support / Re: Powerpoint animation re-sizable slider button.
« on: March 11, 2014, 07:46:36 AM »
Forgot to ask about the Right Limit. 

I'm using a Simple slider and added left and right thumb buttons as children of the original thumb button. 
It seems that if the thumb button is resized the slider doesn't seem to know about this new size.

NGUI 3 Support / Re: Powerpoint animation re-sizable slider button.
« on: March 11, 2014, 07:38:46 AM »
Great idea,  Things are progressing nicely.

One thing I would like to know is how to best limit the drag resizing limit.  For example, in this video, I would like to limit the dragging so that it stops at the left limit of the slider.  The middle thumb belongs to the original slider and it works great.  I tried checking the limit by using if thumbLeft dragging < 0, but it's not working.

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.

Will this also support Drag and Drop operations. 
For example, in the picture, is it possible to select one item and reorder its position via drag and drop ?

NGUI 3 Support / Re: NGUI Binding system release date
« on: March 10, 2014, 06:06:28 AM »
Oh yes, this would be so Awesome.  Daikon Forge is very convenient to work with because of the data binding system built-in.  NGUI Data Binding would probably be even better.

Pages: 1 ... 11 12 [13] 14