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

Pages: [1] 2 3 ... 5
1
NGUI 3 Support / 3.8.2 is the final verison of NGUI ?
« on: May 31, 2015, 03:24:04 AM »
I wonder if the 3.8.2 is the Final version of NGUI and no updates any more?

2
TNet 3 Support / protocolbuffer for TNet
« on: May 22, 2015, 12:02:33 AM »
I am new to TNet and I would like to use protocolbuffer for server/clicent comnunication,any sugestion for this implement?

3
NGUI 3 Support / Modify of shader and scrollview donot clip
« on: March 26, 2015, 12:06:46 AM »
I modify the shader of "Unlit/Transparent Colored" as below list but this lead to that scroll-view does not clip any more when I am dragging. How can I fixed this ?
 
  1. //_GreyColor("GreyColor", Color) = (0.299, 0.587, 0.114,1)
  2. if (i.color.r < 0.001)  
  3. {  
  4.     col = tex2D(_MainTex, i.texcoord);  
  5.     float grey = dot(col.rgb, float3(_GreyColor.r,_GreyColor.g,_GreyColor.b));  
  6.     col.rgb = float3(grey, grey, grey);  
  7.                                
  8. }  
  9. else
  10. {
  11.     col = tex2D(_MainTex, i.texcoord) * i.color;  
  12. }  

4
NGUI 3 Support / IOC and NGUI
« on: November 30, 2014, 06:59:59 AM »
How can I use the IOC framework such as Strangeioc for UI development and any one do this before ?

5
NGUI 3 Support / Re: 2D Event type and scrollview
« on: September 24, 2014, 10:13:25 PM »
By Switch to 2D World Event from 2D UI Evet , all works as expected.

6
NGUI 3 Support / Re: 2D Event type and scrollview
« on: September 23, 2014, 09:06:20 PM »
"Outline" Object is on top of items so that 2D event will not fire up on the label. I wonder what is to determine the last hit object when there some object overlay each other ? If I can make the drag scroll view underneath of labels then drag scroll view and Click event on labels can both works.

Here is the code I use for testing:
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class TestClick : MonoBehaviour {
  5.  
  6.     public GameObject[] itmes;
  7.  
  8.     void Awake()
  9.     {
  10.         for (int i = 0 ; i < itmes.Length ; i++)
  11.         {
  12.             UIEventListener.Get(itmes[i]).onPress += CustPressed;
  13.         }
  14.        
  15.     }
  16.     void CustPressed(GameObject go,bool pressed)
  17.     {
  18.         Debug.Log("Heelo");
  19.     }
  20. }

7
NGUI 3 Support / Re: 2D Event type and scrollview
« on: September 23, 2014, 04:02:31 AM »
I did add the colliders to it and still not event received.

8
NGUI 3 Support / Re: 2D Event type and scrollview
« on: September 21, 2014, 08:44:32 PM »
What I mean is the items inside the scrollview,you can have the "Some Itme " Label with OnClick event, and the event will not fire up.

9
NGUI 3 Support / Re: 2D Event type and scrollview
« on: September 17, 2014, 04:21:44 AM »
Just testing the example(Example 7 - Scroll View (Panel) , if I switch it to 2D and then add one OnPress Event by custom script on the item, it is not fire up the  OnPress event.I think it is one bug and you can test yourself.

10
NGUI 3 Support / Re: HTMLEngine for NGUI and Unity3D.GUI [RELEASE]
« on: September 15, 2014, 01:44:36 AM »
Can this add-on support UIInput to show the Symbol ?

11
NGUI 3 Support / UIInput And dynamic font Symbol
« on: September 15, 2014, 01:38:37 AM »
 How can I display one symbol on UIInput with dynamic font? 

12
NGUI 3 Support / 2D Event type and scrollview
« on: September 11, 2014, 07:44:05 AM »
How can I make one scroll view with 2D collides and my UI use 2D event system?
I make one collides with drag scroll view component and then the event of the elements in scroll view do not fire up.
One new 2D scroll view example is welcome.

13
NGUI 3 Support / Re: UIButton and autoResizeBoxCollider
« on: September 10, 2014, 10:29:26 PM »
And this is the code for UICreateWidgetWizard to create button
  1.   UIWidget btnWidget = go.GetComponent<UIWidget>();
  2.             if (btnWidget == null)
  3.             {
  4.                 btnWidget = go.AddComponent<UIWidget>();
  5.                 btnWidget.autoResizeBoxCollider = true;
  6.                 btnWidget.width = bg.width;
  7.                 btnWidget.height = bg.height;
  8.             }

14
NGUI 3 Support / UIButton and autoResizeBoxCollider
« on: September 10, 2014, 10:13:32 PM »
In my project, there are a lot of UIButton for the UI, but UIButton do not has the autoResizeBoxCollider and I need add one invisible widget to do so and insert the code as list in UIButton's OnInit funtion:
  1.  if (mSprite != null)
  2.         {
  3.             UIWidget temp = gameObject.GetComponent<UIWidget>();
  4.             if (temp == null)
  5.             {
  6.                 temp = gameObject.AddComponent<UIWidget>();
  7.             }
  8.             temp.width = mSprite.width;
  9.             temp.height = mSprite.height;
  10.             temp.autoResizeBoxCollider = true;
  11.         }
I wonder if this can be build in or any other ways ?

15
NGUI 3 Support / Scroll View Auto Arrange widget
« on: August 28, 2014, 02:42:31 AM »
1. How can I use the scroll view and all item inside can be auto arrange base on scroll view's width ?
2. If I need the widget inside the scroll view,  center  alight with scroll view by using UITable, how can it be done or any other way ?

Pages: [1] 2 3 ... 5