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

Pages: [1] 2
1
NGUI 3 Support / Re: change Color UILabel
« on: November 07, 2014, 10:30:43 AM »
thanks broo... this work!

2
NGUI 3 Support / change Color UILabel
« on: November 06, 2014, 03:27:40 PM »
Hi everyone.

I need to change Color of UILabel,

  1. UILabel lbl = transform.GetComponent<UILabel>();
  2. lbl.color = new Color(210f,211f,204f,255f);

but dosent work this form... the result is other: R: 12330, G: 41234 ... others values, i need this color ... i need help.

thanks

3
NGUI 3 Support / Re: draw line, rectangle into panel
« on: September 17, 2014, 10:24:15 AM »
ok, the other option would be it shows a line image ... thanks

4
NGUI 3 Support / Re: draw line, rectangle into panel
« on: September 15, 2014, 10:06:44 PM »
hi, i dont see this examples in the examples folder, there are many examples but with images and dont with draw line, rectangle with code... i need examples how draw line, rectangle and others with code c# and that will is into panel for moving, thnks

5
NGUI 3 Support / draw line, rectangle into panel
« on: September 15, 2014, 12:27:10 PM »
Hi everyone,

I need draw line, rectangle and others into panel, this panel is will moving, Please help me.

6
Misc Archive / Re: doesn't load image in uitexture android
« on: July 23, 2014, 06:42:25 PM »
my version of NGUI is 2.2.6 and i have this problem ... i need solution for that please

7
Misc Archive / doesn't load image in uitexture android
« on: July 22, 2014, 03:30:06 PM »
Hi everyone, I have a problem with to load a texture, and i dont know why.

I want download many images from internet and put in UITexture directly and its work fine in editor but this doesn't work in android, I tested many ways and nothing

With this code I create a GameObject with necessary script

  1. _objectPicture = _createGUI.GUIObject("Photo_"+i.ToString(),new float[]{_position, 0 ,0},new float[]{10,10,1},ContainerPhotos);
  2.                         _texture = _objectPicture.AddComponent<UITexture>();
  3.                         _objectPicture.AddComponent<DownloadPhoto>().url = Constants.LinkDownloadPhoto+N["images"][i];
  4.                         _objectPicture.AddComponent<UIDragPanelContents>();

And with this script i download the image from web but before it shows the preloading image and then the photo

  1. void Start() {
  2.  
  3.                 _texture = GetComponent<UITexture>();
  4.  
  5.                 _texture.mainTexture = (Texture)Resources.Load("images/Logo") as Texture;
  6.                 _texture.MakePixelPerfect();
  7.  
  8.                 StartCoroutine(DownloadImage());
  9.         }
  10.  
  11.         IEnumerator DownloadImage() {
  12.  
  13.                 WWW www = new WWW(url);
  14.                 yield return www;
  15.  
  16.                 _texture.mainTexture = www.texture;
  17.                 _texture.MakePixelPerfect();
  18.                 gameObject.AddComponent<BoxCollider>();
  19.                 gameObject.transform.localScale = new Vector3(534,388,1);
  20.         }

8
NGUI 3 Support / Re: make UISprite, UILabel with script with position
« on: February 04, 2014, 10:58:21 AM »
i found the solution ... :)

  1. _objectPicture = new GameObject("Photo_");
  2. _objectPicture.AddComponent<UISprite>();

thnkss

9
NGUI 3 Support / make UISprite, UILabel with script with position
« on: January 28, 2014, 04:37:50 PM »
hi everyone...

i want make UISprite, UILabel with script ... in any position ..  thnks

10
NGUI 3 Support / how make to change language on ios system?
« on: August 19, 2013, 06:15:52 PM »
hello everyone...
i development an app and i want change language in this app but i need idea.

* change language only in ios system, there change the PlayerPrefs.SetString("language", "<configIOSsystem>"). (when scene load, first calls this and show text accourding to the language)

i need ideas for that... tnksss


11
NGUI 3 Support / Re: Why no load texture in Iphone 4?
« on: August 19, 2013, 11:38:43 AM »
maybe, i have only 1 image for iphone 5, iphone 4s, iphone 4 and ipad's .... i will test, thnks for that

12
NGUI 3 Support / Why no load texture in Iphone 4?
« on: August 16, 2013, 12:38:34 PM »
hi everyone ...
i have a problem ... i want load image for iphone but that no load in Iphone 4, in iphone 4s is normal too iphone 5 ... thanks

13
NGUI 3 Support / Re: Change position button with effect when i clicked
« on: January 04, 2013, 11:56:02 AM »
i use this function ..
  1. TweenPosition.Begin(gameObject, 2f, new Vector3(0,500,0));

14
NGUI 3 Support / Re: Change position button with effect when i clicked
« on: January 04, 2013, 11:50:03 AM »
cooool ...  this work cool !! BUT when i click the button A for  button B move=> when i want click on button B this does restart your position ... i don't now... Iwant change position an other position ...  thanksss

15
NGUI 3 Support / Re: Change position button with effect when i clicked
« on: January 03, 2013, 01:24:43 PM »
so.. when i will click on button, the other button will be move an other position ...

Pages: [1] 2