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

Pages: 1 [2]
16
NGUI 3 Support / New Layout System works for NGUI 2.7
« on: January 03, 2014, 10:04:29 PM »
How can I make the new layout system works for  NGUI 2.7 ? And will it be a lots code need to be changed to make this happen ?

17
NGUI 3 Support / NGUI 2.63 Number Selector
« on: December 25, 2013, 05:49:13 AM »
I want implement Number Selector as show in picture attached. Using the UIDraggablePanel and I can drag the number now. But it has to connect last number and first number continuously . For example, if I drag up the items to number 9, the next item follow the number 9 must be number 0 in localposition;if I drag down the items to number 0,number 9 has to be the previous item of number 0 in localposition.
Thanks in advance for any help.

18
NGUI 3 Support / Move NGUI Menu from UNITY Main Menu to Transform Insepctor
« on: September 24, 2013, 03:02:30 AM »
I wander if can move NGUI Menu from menu bar to Transform Inspector for more easily to use just like toolbar.

19
NGUI 3 Support / Game Logic and UI
« on: January 17, 2013, 03:42:18 AM »
I am new to programming.My question is that should UI code and Game Logic code put into two seperate files and use the static method for the logic. UI Code just call that method's return value. for example:

Logic code :

using UnityEngine;
using System.Collections;

public class Test : MonoBehaviour {

   public static string GetStr(float i)
   {
      return i.ToString("f2");
   }
}


UI code:

using UnityEngine;
using System.Collections;

public class TestDisplay : MonoBehaviour {

   public UILabel lable;
   
   void Update ()
   {
      lable.text = Test.GetStr(Time.time);
   }
}

20
NGUI 3 Support / UI motion
« on: November 06, 2012, 09:32:01 PM »
I wonder if NGUI can have motion feather like EZGUI that every UI element can define coustom motion to easily comduct complex UI motion.
As the pratice with NGUI for UI, it is no so easy to produce complex motions for UI, any suggestion?

21
NGUI 3 Support / Boo script access NGUI
« on: July 30, 2012, 10:04:57 PM »
I am trying to use Boo script to access the NGUI. But the is error show me and how can I fixed that ?

Scene is being destroyed while there are hidden renderers that are using it. This is likely an editor script creating objects with hideFlags and leaving them enabled.


Here is my Test Code and the NGUI version is 2.04c:

import UnityEngine
class ControlNGUI (MonoBehaviour):

   public s as string
   public label as UILabel
   
   def Start ():
      label.text = s

22
NGUI 3 Support / Curve Slider
« on: July 30, 2012, 12:33:41 AM »
How can I make the slider instead of verticle or horizontal but curvely as the attachment ?

23
NGUI 3 Support / Group tween UI position by itween
« on: July 11, 2012, 11:10:55 PM »
Just did one script for bulk UI tween position using one scripts.Post here for sharing. Noted that  this script require iTween install in your project.

using UnityEngine;
using System.Collections;

public class GroupTweenPosition : MonoBehaviour {

   public GameObject[] targets;
   public Vector3[] targetPosition;
   public float[] timer;
   public float[] delayTimer;
   public iTween.EaseType[] motionType;
   
   
   void Start ()
   {
      
      TweenPosition( targets, targetPosition,timer,delayTimer,motionType);
   
   }
      
   
   
   public void TweenPosition(GameObject[] targets,Vector3[] targetPosition,float[] timer,float[] delayTimer,iTween.EaseType[] motionType)
   {
      for(int cnt = 0;cnt < targets.Length;cnt++)
      {
         targetPosition[cnt] =  transform.TransformPoint(targetPosition[cnt]);
         iTween.MoveTo(targets[cnt],iTween.Hash("position",targetPosition[cnt],"time",timer[cnt],"delay",delayTimer[cnt],"easyType",motionType[cnt]));
      }
      
   }
   
}

24
NGUI 3 Support / How to make bold or italic font by NGUI
« on: May 31, 2012, 04:16:31 AM »
How can I make the font to be bold or italic ?

25
NGUI 3 Support / Fatal Error with big sccese due to limited memory
« on: May 31, 2012, 02:49:52 AM »
I make the UI with NGUI and once this UI import into one big level there one error show up as attachment. My target screen rate is 1900 X 1080 and so the backgroud is 2048 X 2048 and the big level is one made by one fbx file around 233MB.

26
NGUI 3 Support / Racing Track Minimap By NGUI
« on: May 30, 2012, 01:38:43 AM »
I want to make one minimap as attach on the top right cornor by NGUI and how can I make it ?

27
When I build the atlas, the generated texture will be 4096 pixel automatically, does it the build in setting and how can I revised as I want it to be smaller to save the file size and memory.

28
Hi Everyone,

After generated by Bbmfont, I got two text files for my Font And as I know, the Font maker can only handle one text file And one texture for font. Can anyone help me Out ?
Another question: if I have two size for the same font, does it have to make two font ?

Pages: 1 [2]