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 - Magic Frame

Pages: [1] 2
1
NGUI 3 Support / Re: Unity 5 / Android Buttons not working
« on: March 16, 2015, 04:29:23 AM »
Hi Aren,

Im using the latest version of Unity 5.

Thanks

2
NGUI 3 Support / Re: buttons not working in unity 5 and android
« on: March 10, 2015, 03:29:55 AM »
same problem here!  :-\

3
NGUI 3 Support / Re: Unity 5 / Android Buttons not working
« on: March 10, 2015, 03:28:27 AM »
Hi I have the same problem now, and I have the latest version Unity... Any help?

4
NGUI 3 Support / Strange problem with UILabel
« on: February 24, 2015, 10:22:42 AM »
Hello I'm trying to change the color of my UILabel, but I have a strange problem

this line works well and change color -->  mylabel.color = Color.red;

but, this line not works --->  mylabel.color = new Color (230f,170f,22f);

I'm doing something wrong?

5
NGUI 3 Support / Custom editor and NGUI problem
« on: December 03, 2014, 07:57:16 AM »
Hi all,

I am creating a custom editor, but I'm having a problem and I suspect it may be for ngui, this is the code I am using

  1. using UnityEngine;
  2. using UnityEditor;
  3. using System.Collections;
  4.  
  5. #if UNITY_EDITOR
  6. public class LetterBox : EditorWindow
  7. {
  8.  
  9.         public string word = "";
  10.         public string LenghtString;
  11.  
  12.         [MenuItem("Window/Letter creator")]
  13.         public static void Init()
  14.         {
  15.  
  16.                 LetterBox Window = (LetterBox)EditorWindow.GetWindow(typeof(LetterBox));
  17.  
  18. }
  19.  
  20.  
  21.         private void OnGUI()
  22.         {
  23.  
  24.                 GUILayout.Label("Welcome to Letter Creator!!!");
  25.                 EditorGUILayout.Space();
  26.                 word = EditorGUILayout.TextField("Enter the word: ",word);
  27.                 if(word.Length==0)
  28.                 {
  29.                         EditorGUILayout.HelpBox("First enter a word",MessageType.Warning);
  30.  
  31.                 }else
  32.                 {
  33.                         EditorGUILayout.LabelField("Lenght = " + word.Length);
  34.                 }
  35.  
  36.                 EditorGUILayout.Space();
  37.  
  38.                 if(GUILayout.Button("CREATE BOXES"))
  39.                 {
  40.                         if(word.Length!=0)
  41.                         {
  42.                         for(int i =0;i<word.Length;i++)
  43.                         {
  44.                                 Vector3 pos = Vector3.zero;
  45.                                 pos.x = i * 48;
  46.                                 Debug.Log(pos.x);
  47.                                 GameObject box = (GameObject)Resources.Load("hueco");
  48.                                 GameObject go = (GameObject) Instantiate( box ,pos,Quaternion.identity);
  49.                                 go.transform.localPosition = pos;
  50.                                 Debug.Log(go.transform.position);
  51.                         }
  52.  
  53.                         }
  54.  
  55.                 }
  56.  
  57.  
  58.  
  59.         }
  60.  
  61.  
  62.  
  63.  
  64. }
  65. #endif

the problem is that all gameobject that are created are created on the axis 0,0,0, but I'm telling you that I would move 48 units in each iteration, the debug display correctly 0, 48, 96 etc, but all are on the axil 0,0,0 . I suspect ngui every time you create something so positioned on the axis 0. How can I solve this problem. Thank you

6
NGUI 3 Support / Change pixel color of UISprite
« on: December 02, 2014, 05:49:56 AM »
Hi all,

I have a Sprite, this Sprite is white and black, is possible access to color pixel? and change black color to green color for example?

best regards

7
NGUI 3 Support / Put square Photo inside circle photo is possible?
« on: August 29, 2014, 06:13:06 AM »
Hi all,

It is possible to do something like what I show in the example photo?

thanks

8
NGUI 3 Support / Re: UILabel problem
« on: July 04, 2014, 10:37:06 AM »
No, not work, I need the line break, the doc say that I want line break I have use this command "\n" but not work… repeat I download the text from a database. For the bold , italic and other things, work well with bbcode. thanks and sorry for my english

9
NGUI 3 Support / UILabel problem
« on: July 04, 2014, 04:38:38 AM »
hi, I'm creating an app where I can watch news, the news sent through a database and then the app download the news .... the problem is that the UILabel text format is horrible, I can not do line break? add bold? etc ... for example when the database put a paragraph and I add "\ n" does not line break ... any suggestions

10
NGUI 3 Support / How to change Language at Run Time
« on: June 24, 2014, 12:13:09 PM »
Hi, I using NGUI 3.0.2 , I would like to know how I can change the language at runtime, I want to create a scene that contains the flags of different countries and if you touch a flag of Spain to change the texts to Spanish, Possible?

Another question, how can I detect the device language and the language automatically change the language of the phone.

P.D: my game is for iOS, Android and Facebook

11
NGUI 3 Support / Re: *BUG* UIInput Input Type Password
« on: December 05, 2013, 06:04:47 AM »
but the option is still there, I can select the input typ in password.

12
NGUI 3 Support / *BUG* UIInput Input Type Password
« on: December 05, 2013, 04:40:18 AM »
Hi, My game has a system login, before the new version of Ngui worked great, now with the latest version my system login to dead, I discovered that the problem is with the input type, if I have selected "input type = password" it is impossible to login, however if I select "input type= Standard" I can make login perfectly, to now if there is a problem with the asterisks?

13
NGUI 3 Support / Re: Scroll View Question
« on: November 15, 2013, 12:33:26 PM »
Hi Aren, thanks for reply, I'm trying and I can not get it to work, when I access the children have only the last note, do not tell me what the 1,2,3,4 .... any suggestions, leave the code

  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class BarGraphics : MonoBehaviour
  5. {
  6.         public int childNumber;
  7.         // Use this for initialization
  8.  
  9.         void Start ()
  10.        
  11.        
  12.         {
  13.        
  14.  
  15.  
  16.  
  17.         }
  18.        
  19.         // Update is called once per frame
  20.         void Update () {
  21.  
  22.  
  23.                 childNumber = GameObject.Find("Gridplayer").transform.childCount % 2;
  24.  
  25.  
  26.                 if ( childNumber ==0)
  27.                 {
  28.  
  29.                         //Is Odd!!!
  30.  
  31.  
  32.  
  33.                 }else
  34.                 {
  35.  
  36.  
  37.                         //Is Even!!!
  38.  
  39.  
  40.                 }
  41.  
  42.  
  43.  
  44.  
  45.        
  46.         }
  47. }



14
TNet 3 Support / Questions about servers and ports
« on: November 04, 2013, 10:34:30 AM »
Hi, I am initiating me into the network settings, and I have some basic questions, I hope someone can help me.

1. - I'm creating a game that requires many open rooms permanently, this means that each room is a server? Or each room belongs to a different port?


2. - As I can set up my game so that the customer does not have to write any settings iP, only have the option to create the room name and password?

3. - TNET has some function to join a random room?

4. - As I can create salar by name and not by iD? (Some example code)

5. - As I said before my game requires many open rooms and do not want anyone to have to write anything about IP or ports, want everything to be automatic, what are the best practices?

6. - It would be appropriate that I initiate the server first? (They do not want anyone to have to do anything like that?)


thanks!

15
NGUI 3 Support / Re: Bug or wrong code?
« on: October 28, 2013, 04:38:19 AM »
any help please?

Pages: [1] 2