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

Pages: [1]
1
NGUI 3 Support / Localization and UInput
« on: January 17, 2014, 06:51:03 AM »
Hello everyone!
How can I use Localization with "default text" in UInput?


My NGUI version is 3.07

2
NGUI 3 Support / Re: UILabel and lineWidth
« on: February 12, 2013, 10:30:39 AM »
Quote
If that's the case, then this should never be triggered:
Code: [Select]
if (mLineWidth > 0f)
...because mLineWidth is never changed from its initial 0 value.

And how i can then change the value at runtime?

3
NGUI 3 Support / Re: UILabel and lineWidth
« on: February 12, 2013, 10:21:51 AM »
Quote
Did you create your UI with an old version of NGUI (like free version?) -- You need to resave with the latest full version.

I have a full version and i use latest version 2.3.1.

4
NGUI 3 Support / Re: UILabel and lineWidth
« on: February 12, 2013, 10:02:37 AM »
ArenMook, thanks for a quick answer!
Quote
You should be changing "max line width", not line width.

I can't find "max line width" ;(


5
NGUI 3 Support / UILabel and lineWidth
« on: February 12, 2013, 08:53:19 AM »
Hi!

I have some problem with UILabel.
If I want to change width of line UILablel like this:
  1. child.transform.FindChild("Tween").transform.FindChild("Description").GetComponent<UILabel>().lineWidth = 640;
  2. Debug.LogWarning("LineWidth = "+ child.transform.FindChild("Tween").transform.FindChild("Description").GetComponent<UILabel>().lineWidth);
  3.  

  1. LineWidth =  640

But a width did not change on an interface:(
I'm commented two line in UILabel.cs.
UILabel.cs
  1. protected override void OnStart ()
  2. {
  3.         if (mLineWidth > 0f)
  4.         {
  5. //      mMaxLineWidth = Mathf.RoundToInt(mLineWidth);
  6. //     mLineWidth = 0f;
  7.         }
  8.  
  9.         if (!mMultiline)
  10.         {
  11.                 mMaxLineCount = 1;
  12.                 mMultiline = true;
  13.         }
  14.  
  15.         // Whether this is a premultiplied alpha shader
  16.         mPremultiply = (font != null && font.material != null && font.material.shader.name.Contains("Premultiplied"));
  17. }

And all works well!!!!. What can a problem be in?

6
NGUI 3 Support / Scroll View (Panel). Please help!
« on: January 11, 2013, 07:28:37 AM »
Hi all!
I have some problem with Scroll View(Panel)
If in the list of more than three items works well!
if have three  items scrolling doesn't work   :( 
When dragging stops scrolling!

I use Unity 3D 3.5.7 and NGUI 2.2.7c.


Pages: [1]