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

Pages: [1]
1
NGUI 3 Support / Scrollbar became black when tested on android device??
« on: January 14, 2013, 03:36:05 AM »
Scrollbar works fine in editor but when I tested on android device.... the scrollbar has some problem
I made the scrollbar that I set forebackground and background.
I set it to scrolling to show "onlyIfNeed".
I found that the whole scrollbar became black color.
When I set the scrolling condition to "whenDragging", everything seems to be fine BUT....
when I hold my touch after dragging, the whole scrollbar became black...
Do I have to set some extra to avoid this ??

2
NGUI 3 Support / Question about UISpriteAnimation: 1 animation per 1 altas?
« on: December 02, 2012, 09:59:44 AM »
I tried to use UISpriteAnimation.
I found that UISpriteAnimation play all elements in atlas.
I don't want to use 1 atlas per 1 sprite animation.
Is it possible to set animation not to play the whole sprites in atlas?
I want to create 1 atlas that can use for many different animation.

Thank you.

3
I want to create my custom draggable UI without UIDraggablePanel.
Is there any function in NGUI which I can use to detect mouse/touch event?
For example;
if(NGUI.GetTouchEvent("drag"))
{
  // do something.
}

Thank you in advance for your information.

4
Create a script that will reference your clipped panel and attach it to all of your items. Inside the script check the distance to the clipped center and set the scale accordingly.

Thank you for your reply.
I am not  sure about clipped center stuff.
I have tried but it did not work.
So confusing....
I want to make it move like a wave.
  1. void Update () {
  2.                 //I put UIDraggableContent objects in the list. The center object's scale must be 1 (biggest)
  3.                 for(int i=0; i<list.Count; i++)
  4.                 {
  5.                         var position = list[i].transform.localPosition;
  6.                         var center = list[i].GetComponent<UIDragPanelContents>().draggablePanel.panel.clipRange.x;
  7.                         var diff = Mathf.Abs(position.x - center);
  8.                         var scale = diff/center;
  9.                         list[i].transform.localScale = new Vector3(scale,scale,1);
  10.                        
  11.                 }
  12.        
  13.         }
  14.  

the thing that I got was the object sizes were bigger respectively.
I wonder if it possible for object to overlap when scroll the panel. (<-- that is also what I want)
When the objects were scaling, the space between them were still same.
Is it possible to change space dynamically?

5
I want all items in scrollview scaling like a wave.
The center item will be the one that its size is the biggest.
I wonder that if it is possible to do with what NGUI provide to achieve what I want.

Thank you.

6
I tried to use scroll panel (draggable panel version).
I add buttons as item in scroll view.
When I scroll the panel, the button was pressed.
I don't want the button to be activate when I scroll the panel.

I had read doc but still cannot find the right solution.
I tried on OnDrag and OnDragFinished command and put some flag to check is it dragging or not.
But it did not work.

Need Help.

7
NGUI 3 Support / Problem+Confusing with ScrollPanel (2nd camera)
« on: October 21, 2012, 01:31:14 AM »
I am new to NGUI.
So far, I am have happy with it.
I want to make scrollpanel without scroll bar so I tried on 2nd camera type.

I made scrollpanel move but when I pressed button(as an item) inside list of scrollpanel (UITable),
the button had not respond. I had checked the collide and test outside the scrollpanel to see does button item work or not?
Button worked fine outside scrollpanel. I applied script "OnClick" and "OnSelect" function to the button item but I still cannot activate button.

Moreover, I do not understand how to set spring position for the first and last item. I found that the spring position script was created when the first or last item hit the edge of viewport.
Now, it seems spring back to half of view like the following drawing.
============
        XXXXXX  XXXXXXX
============

Can anybody help?  How do I fix it?

Pages: [1]