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

Pages: [1] 2
1
NGUI 3 Support / Re: Soft Clip IOS not work
« on: October 21, 2014, 02:31:53 AM »
Thanks Aren,

Sorry for disturb  :o

Works fine now !

2
NGUI 3 Support / [RESOLVED]Soft Clip IOS not work
« on: October 20, 2014, 03:10:16 AM »
Hi,

I use UIScrollView attached on UIPanel with soft clip selected, when I scroll after one or two scrolling movement, scroll freeze !
Impossible to scroll again.

I have tested on editor and on device, iphone 4 and 5 same problem.

Unity 4.5.5 and NGUi 3.7.4

If I use other clipping param scroll never stop but content is not clipped...

Screenshot : http://screencast.com/t/ZyxtRMALPcBS

Thanks for help




3
NGUI 3 Support / Re: Json & List of UILabel
« on: July 17, 2014, 06:11:40 PM »
ok founded :

  1.                 JSONObject emptyObject = new JSONObject();
  2.  
  3.                 emptyObject.Add("kesfsdy", 1233);
  4.                 emptyObject.Add("otherKey", 123);
  5.                 emptyObject.Add("ketryrty", 567);
  6.                 emptyObject.Add("kwxcey", 908);
  7.  
  8.                 List<string> myList1 = new List<string>();
  9.                 List<string> myList2 = new List<string>();
  10.  
  11.                 foreach (KeyValuePair<string, JSONValue> pair in emptyObject) {
  12.                         myList1.Add(pair.Key);
  13.                         myList2.Add(pair.Value.ToString());
  14.                 }
  15.  
  16.                 for (int i = 0; i < lbl1.Count; i++)
  17.                 {
  18.                         lbl1[i].text = myList1[i];
  19.                         lbl2[i].text = myList2[i];
  20.                 }

Maybe is not optimized... but works  :P

4
NGUI 3 Support / Re: Json & List of UILabel
« on: July 17, 2014, 04:38:24 PM »
same error with this :

  1. string[][] table;
  2.  
  3.                 foreach (KeyValuePair<string, JSONValue> pair in emptyObject) {
  4.  
  5.                         table = new string[][] { new string[] { pair.Key, pair.Value.ToString() } };
  6.  
  7.                         for (int i = 0; i < lbl1.Count; i++)
  8.                         {
  9.                                 lbl1[i].text = table[i][0];
  10.                                 lbl2[i].text = table[i][1];
  11.                         }
  12.                 }

 :( :o ???

5
NGUI 3 Support / Re: Json & List of UILabel
« on: July 17, 2014, 04:19:30 PM »
Latest test : but I have an error

Quote
IndexOutOfRangeException: Array index is out of range.

  1.  
  2. public List<UILabel> lbl1;
  3. public List<UILabel> lbl2;
  4.  
  5.  
  6.                 JSONObject emptyObject = new JSONObject();
  7.  
  8.                
  9.                 emptyObject.Add("kesfsdy", 1233);
  10.                 emptyObject.Add("otherKey", 123);
  11.                 emptyObject.Add("ketryrty", 567);
  12.                 emptyObject.Add("kwxcey", 908);
  13.  
  14. foreach (KeyValuePair<string, JSONValue> pair in emptyObject) {
  15.  
  16.                         string[,] table = { { pair.Key, pair.Value.ToString() } };
  17.  
  18.                         for (int i = 0; i < lbl1.Count; i++)
  19.                         {
  20.                                 lbl1[i].text = table[i, 0];
  21.                                 lbl2[i].text = table[i, 1];
  22.                         }
  23.                 }
  24.  

6
NGUI 3 Support / Re: Json & List of UILabel
« on: July 17, 2014, 02:59:39 PM »
Tested this :

  1. foreach(var item1 in dict.Keys)
  2.                 {
  3.                         foreach (UILabel namelist in lblNameList)
  4.                         {
  5.                                 namelist.text = item1;
  6.                                 //Debug.Log(item1);
  7.                         }
  8.                 }
  9.  
  10.                 foreach(var item2 in dict.Values)
  11.                 {
  12.                         foreach (UILabel pointlist in lblPointList)
  13.                         {
  14.                                 pointlist.text = item2;
  15.                                 //Debug.Log(item2);
  16.                         }
  17.                 }

for all UIlabel key and value are same, how I can loop from key/value and push in list of label

thx


7
NGUI 3 Support / [RESOLVED]Json & List of UILabel
« on: July 17, 2014, 10:06:12 AM »
Hello,

I try to put json value into List of Uilabel... without success : here is simple code test not finished...
Anyone can point me to right direction, I tried with list, dictionary...

Sorry is not problem with NGUI for sure :-)

  1. JSONObject emptyObject = new JSONObject();
  2.                
  3.                 emptyObject.Add("ilan", 1500);
  4.                 emptyObject.Add("marc", 850);
  5.                 emptyObject.Add("philip", 700);
  6.                 emptyObject.Add("mat", 650);
  7.                 emptyObject.Add("paul", 550);
  8.                 emptyObject.Add("joe", 425);
  9.                 emptyObject.Add("nico", 400);
  10.                 emptyObject.Add("ju", 300);
  11.                 emptyObject.Add("arno", 250);
  12.                 emptyObject.Add("paul", 100);
  13.                
  14. foreach (KeyValuePair<string, JSONValue> pair in emptyObject)
  15.  {
  16.         Debug.Log("name : score -> " + pair.Key + " : " + pair.Value);
  17.  
  18.         foreach (UILabel namelist in lblNameList)
  19.        {
  20.            //namelist.text = pair.Key;
  21.         }
  22.  
  23.         foreach (UILabel pointlist in lblPointList)
  24.         {
  25.            //pointlist.text = pair.Value.Type.ToString();
  26.         }
  27.  
  28.                 }
  29.  
  30.                

Thanks

8
Thx Aren, my mistake  :P there is a 452 unity bugs not resolved  ;D

9
Hello,

I use Autorotation for default orientation with "all allowed orientation" selected. but when I wrote in my script "Screen.orientation = ScreenOrientation.Landscape;" to force it, all event are not enable (NGUI debug log nothing on device)
If I comment //Screen.orientation = ScreenOrientation.Landscape; all work fine... buttons, slider...

UIRoot is fixedSizeOnMobiles 720/320/1536

Unity 4.5.1, IOS 7 on Iphone 5S, NGUIi 3.6.7

Thanks

10
Hi Aren,

I use unity 4.5 on OSX maverick and project is build for Webplayer and IPAD, don't work on both.
And yes I have tested with public methods :-)

Thx

11
Quote
You actually need to set it in UISlider's On Value Change section in inspector (or use EventDelegate.Add(slider.onChange, YourCallback); in code).

Sorry Aren but I already make this, see my first post code :-)

  1. EventDelegate.Add(SliderArea.onChange, OnSliderAreaChange);
  2.         EventDelegate.Add(SliderLoin.onChange, OnSliderLoinChange);
  3.         EventDelegate.Add(SliderHip.onChange, OnSliderHipChange);
  4.         EventDelegate.Add(SliderThigh.onChange, OnSliderThighChange);
  5.         EventDelegate.Add(SliderRib.onChange, OnSliderRibChange);

I'm really disapointed because is simple function and class.

Thanks

12
Hi,

Sorry for delay... public Onchange not work too

I have tested with 3.6.5 too same problem.

thx

13
Thanks for tip's !!! work fine  ;D

14
Hello,

Same for me : 3.6.4 NGUI and unity 4.5, soft clip don't work Iphone 5s

Thanks

15
Hi Aren,

Target is IOS iPad. (but not work in editor mode too)
I try to change public function and tell you.

Thanks

Pages: [1] 2