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

Pages: [1]
1
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

2
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

3
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

4
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

5
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

6
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]