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

Pages: [1]
1
NGUI 3 Support / UI Label Break words
« on: October 23, 2015, 07:37:06 AM »
Hi.
I'm having trouble with UILabel.
I apologize for my google English.

Unity 3d 5.2.1f1
Playmaker 1.7.8.3p2
NGUI 3.9.4b

The screens that follow are only an example, I made notes on them.

In my game texts are dynamically changed several times according to user interaction.
The problem is that when loaded with the text through a String Global Playmaker, The texts are justified through the character, causing the line breaks in the middle of words. The texts are configured to align the left.
Sera that this string has to be treated before being loaded into the UI Label?

2 following examples.
Before play.

IMAGE
https://www.dropbox.com/s/5eavkvmmy45lqc5/1.jpg?dl=0


To play with the code as well.
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class setTextNGUI : MonoBehaviour {
  5.        
  6.         void Start() {
  7.                 string txt = "Não se preocupem com nada, mas em todas as orações peçam a Deus o que vocês precisam e orem sempre com o coração agradecido. E a paz de Deus, que ninguém consegue entender, guardará o coração e a mente de vocês, pois vocês estão unidos com Cristo Jesus.";
  8.                 UILabel lbl = GetComponent<UILabel>();
  9.                 lbl.text = txt;
  10.         }
  11. }

IMAGE.
https://www.dropbox.com/s/hwibowav87uiymg/2.jpg?dl=0




Causing the problem:
  1. using UnityEngine;
  2. using System.Collections;
  3. using HutongGames.PlayMaker;
  4.  
  5. public class setTextNGUI : MonoBehaviour {
  6.        
  7.         void Start() {
  8.                 string txt = FsmVariables.GlobalVariables.GetFsmString ("msgTexto").Value;
  9.                 UILabel lbl = GetComponent<UILabel>();
  10.                 lbl.text = txt;
  11.         }
  12. }

IMAGE
https://www.dropbox.com/s/79iq7r68ih342b4/3.jpg?dl=0



I'm using void Start () only for testing. It will be a function called via a button.
Could anyone help me? Am I doing something wrong?

2
Other Packages / After I updated to 3.0.3 Ngui
« on: October 25, 2013, 09:13:23 PM »
After I updated to 3.0.3 Ngui am getting the following errors in text Ngui HUD 1.7, I'm using Unity 3D 4.2.2




Poderia corrigir isso por favor?

3
NGUI 3 Support / Scroll bar problem size
« on: March 26, 2013, 09:00:06 AM »
I'm using componete Scroll Bar with Background and Foreground with simple sprite type. I do not want sliced​​. I packed my sprites so as not to distort. The problem is that when the value reaches "0" or "1" distorts. I would not distort. How to solve? Photo attached. Thank you and sorry for my English.


Pages: [1]