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

Pages: [1]
1
NGUI 3 Support / Re: Embedded font for UILabel.trueTypeFont
« on: March 03, 2014, 03:32:22 AM »
Thanks for the reply!
But I meant how can I set exactly embedded font (in case of Windows it's Arial)?

2
NGUI 3 Support / Embedded font for UILabel.trueTypeFont
« on: February 28, 2014, 12:05:29 PM »
Hello!
Please suggest how to to set embedded trueTypeFont for UILabel in code?
Thanks!

3
NGUI 3 Support / Re: Can't find UIDraggablePanel
« on: December 09, 2013, 12:42:21 PM »
Since v3.0.6 it's called UIScrollView:
Quote
- NEW: Redesigned the draggable panel class a bit, and renamed it to UIScrollView. UIDragPanelContents is now UIDragScrollView.

4
NGUI 3 Support / Re: Problem with UIInput and onSubmit event
« on: October 11, 2013, 07:37:50 AM »
Great! Thanks!

But can you please implement this feature in other way: either setting mText to null or adding additional bool parameter to onSubmit event, which will tell us that keyboard was cancelled?

5
NGUI 3 Support / Problem with UIInput and onSubmit event
« on: October 10, 2013, 02:55:53 AM »
Hello, I'm using UIInput's onSubmit event to receive return button press on virtual keyboard on mobile devices.
The problem is that onSubmit event is raised even when I cancel input, e.g. pressing back key on Android.
I looked into UIInput class and found this check for mKeyboard.done property in Update function:
  1. if (mKeyboard.done)
  2.                         {
  3.                                 mKeyboard = null;
  4.                                 current = this;
  5.                                 if (onSubmit != null) onSubmit(mText);
  6.                                 if (eventReceiver == null) eventReceiver = gameObject;
  7.                                 eventReceiver.SendMessage(functionName, mText, SendMessageOptions.DontRequireReceiver);
  8.                                 current = null;
  9.                                 selected = false;
  10.                         }

So, event actually raised any time when keyboard is "done".
When I added checking for mKeyboard.wasCanceled property, then script works as expected.

  1. if (mKeyboard.done && !mKeyboard.wasCanceled)

Maybe there is a way to check if keyboard input was cancelled without modifying NGUI script?
Thanks in advance.

6
NGUI 3 Support / Re: UIAnchor z-pos constantly decreasing
« on: July 02, 2013, 07:31:47 AM »
Nicki, I can't use that option. But I have found similar solution - after re-positioning and re-sizing of all needed elements of GUI, I simply destroy all UIAnchor scripts from transform:

UIAnchor[] uiAnchors = transform.GetComponentsInChildren<UIAnchor>();
        foreach (UIAnchor uiAnchor in uiAnchors)
            Destroy(uiAnchor);

Thanks all for replies.

7
NGUI 3 Support / UIAnchor z-pos constantly decreasing
« on: July 01, 2013, 07:48:07 AM »
I have couple of UISprites with attached UIAnchor scripts on them (excluding first one, called Background), some kind of hierarchy (Icon -> LBackground -> Background). Each of them has a WidgetContainer object (Icon has LBackground , LBackground  has Background). Icon's and LBackground's z-position constantly decreasing if UIAnchor script is active, if i disable it - decreasing stops.

8
NGUI 3 Support / Re: Slider issue
« on: May 30, 2012, 02:50:26 AM »
OK, I'll try to use scroll bar.
Regarding
Quote
scale the background to make it bigger
, as I said in my previous post, it will work only if I will not change size of the slider's collider.
But in this case thumb will be moving incorrectly (with offset closer to the edges of the slider).
Thanks to all for replies.

9
NGUI 3 Support / Re: Slider issue
« on: May 29, 2012, 07:24:51 AM »
It works until I don't change the size of the slider's collider (which actually have to be as size of the background).
If I change size of the collider, I have to change size of the slider itself for proper thumb movement.
And after changing size of the slider, I have almost the same original slider, except stretched background.

By the way, sorry for my bad English.

10
NGUI 3 Support / Re: Slider issue
« on: May 29, 2012, 06:47:36 AM »
Because it hasn't thumb.

11
NGUI 3 Support / Slider issue
« on: May 29, 2012, 06:06:02 AM »
Hi,

I'm trying to create slider for options scene in game.
This will be simple horizontal slider with background only and thumb.
I have created slider, but thumb goes beyond left and right borders of the background (see attached).
Is there any way to limit the borders?


Pages: [1]