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

Pages: [1]
1
NGUI 3 Support / Re: Problem with BB-code in UILabel
« on: August 25, 2014, 04:09:23 AM »
I Am sorry it took me so long but I updated NGUI, created a new label and inserted the following text:
  1. [008066]to[-] [000000]test[-]
  2. [008066]repeat[-] [0000FF]12[-] [000000][[-] [008066]fd[-] [0000FF]100[-] [008066]rt[-] [0000FF]90[-] [000000]][-]
  3. [008066]end[-]
the result looks like:
http://puu.sh/b73EU/c409e70880.png
so the opening bracket is missing. These are the settings set on the label:
http://puu.sh/b73G1/3ab75aed4f.png

If I change the text to:
  1. [008066]to[-] [000000]test[-]
  2. [008066]repeat[-] [0000FF]12[-] [000000][ [-] [008066]fd[-] [0000FF]100[-] [008066]rt[-] [0000FF]90[-] [000000]][-]
  3. [008066]end[-]
(Adding a white space after the '[')
it works

2
NGUI 3 Support / Problem with BB-code in UILabel
« on: August 18, 2014, 02:49:26 PM »
Hello,

I have a weird problem. I use heavy formatting with BB-codes but there seems to be a problem when formatting an opening bracket ('[').
If I have the following text in a UILabel:

  1. [008066]make[-] [0000FF]"[-][000000]col[-] [0000FF]1[-] [008066]setpw[-] [0000FF]:[-][000000]w[-] [008066]repeat[-] [0000FF]17[-] [000000][[-]  [008066]setpc[-]

Everything is correctly formatted except the '[' is not visible. The background of the label is somewhat grey
I hope someone can help me

Lukas

3
NGUI 3 Support / Problem when creating GUI elements at runtime
« on: June 09, 2014, 03:23:05 AM »
Hello,

I am currently trying to spawn some buttons at runtime. For testing purposes the Button transform is just the default NGUI button prefab.

I am using the following code:

  1. var go = NGUITools.AddChild(Parent.gameObject, Button);

Also the parent is just another NGUI element.

Now when executing this code it just creates an empty gameObject. I verified that the Button Prefab is in fact not empty.
Thanks for your help and time

Lukas

4
NGUI 3 Support / Setting anchors target (center, left, right, ...)
« on: March 28, 2014, 07:20:16 AM »
Hello,

how do I set the target of an anchor? I know that I can set the target by leftAnchor.target = transform. But how can I choose if the values are relative to the target's left, right or center?
Kind regards

Lukas Häfliger

5
Just deactivate the tween in the inspector. When you want to play your tween just use
  1. gameObject.GetComponent<TweenPosition>().PlayForward();
Assuming this script is on the same gameObject to which the tween is attached

6
NGUI 3 Support / Scale GUI based on DPI
« on: March 28, 2014, 04:16:47 AM »
Hello,

is there an easy way to scale the NGUI elements based on the DPI? I am developing for Android tablets which have an extreme variety of different resolutions and therefore DPI's.
Is there something that would work besides anchoring an element to a fixed offset to the UIRoot.center? (This just look plain ugly on resizing)
Kind regards

Lukas Häfliger

7
NGUI 3 Support / Re: Swipe in window
« on: March 25, 2014, 03:52:22 AM »
Thank you for your great answer. I will try to implement it in this way.

8
NGUI 3 Support / Swipe in window
« on: March 24, 2014, 05:45:46 AM »
Hello,

I am fairly a beginner with NGUI but currently stuck on a problem.
I want to be able to perform a swipe gesture from the left border of the screen and with that swipe gesture show (animated) a new window where certain settings are stored.
What is the best way of implementing this?
I thought about a scrollView where a part is hidden outside the screen and is just swiped in, but I need the shown window to snatch itself at the screen borders.

As an example watch the reddit app. When you chose a ctegory you can always swipe the category view back in.

I apologize if this question has been asked before, but I did not find anything on my reserach.
Kind regards

Lukas

9
NGUI 3 Support / NGUI in front of Vectrosity
« on: March 07, 2014, 04:55:08 AM »
Hello,

I apologize if this is not the correct forum to ask such a question, but I think it would be easier to solve my problem with NGUI and not with Vectrosity.
My problem is, that all Vectrosity elements are drawn ontop of my GUI. In my case I need the GUI to be drawn on top of Vectrosity. I have the normal NGUI camera which is on depth 1 and the mainCamera which is on depth 0 and which draws all vectors.

Is there someone who can help me in this matter? I already tried to set the z  coordinate of the drawn vectors accordingly but they still get drawn ontop of the GUI.
Kind regards

Lukas

Pages: [1]