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

Pages: [1] 2
1
Hi,

I have a problem assigning an OnDragFinished-Handler with:

  1. scrollView.onDragFinished += OnDragFinished; //in my Start())

because there is another OnDragFinished in UICenterOnChild which is assigned in Recenter line 85 via "=".

This overrides my delegate call and my own OnDragFinished is never called.

I can fix it if I add a "+=" in line 85 but I don't know if that's the right approach.

NGUI: 3.7.4

I appreciate your help.

2
NGUI 3 Support / Focus between multiple UIInputs
« on: June 25, 2014, 04:13:07 AM »
Hey, I have two input fields both normal text, no password and hidden input is activated. When I tapping between them on IOS the onscreen keyboard fades in and out, but most of the time, the keyboard is somewhere between... so it happens that its visible but none of the input fields has a focus. it was not like this around 3.6.3ish... please let me know if there are any fixes planed.

thanks carsten

3
Hi Aren,

since the update to 3.6.5 typing text into a password textfield works a bit better than a version before where the first charakter was always skipped and setting the focus on the textfield was not working with the first tap. now that is fixed again, but the os input bar is coming up and I need to use the Enter button or the little on screen OK button to confirm the inputs. This is kind of anyoing and was working without problems in versions before.

Are there any reasons for bringing the os styled input field above the keyboard back? I would appreciate if you could fix that little issue.

Thanks for your great work!

Carsten

4
NGUI 3 Support / Re: how to subclass uipanel?
« on: March 13, 2014, 09:14:47 AM »
I just wanna add the possibility to set and get x and y coordinates as a property like panel.x = 100 instead of writing .transform.localPosition = new Vector.... because I'm moving alot stuff around and I try to make my code as short as possible. So what would you do to add this behaviour? Thanks Aren.

5
NGUI 3 Support / Re: how to subclass uipanel?
« on: March 10, 2014, 10:30:51 AM »
I still need support to understand how to create a subclass of UIPanel, I know I can add another component and copy the script, but how would it work to subclass it and see all the properties in the unity inspector? Thanks guys

6
NGUI 3 Support / Re: UISlider bug
« on: March 09, 2014, 05:33:56 PM »
how about:

  1.     float energy = 0f;
  2.     UISlider slider;
  3.  
  4.     void Awake() {
  5.         slider = GameObject.Find("Control - Simple Progress Bar").GetComponent< UISlider >();
  6.     }
  7.    
  8.     void Update () {
  9.         energy += Time.deltaTime;
  10.  
  11.         slider.value = energy / 100f;
  12.     }
  13.  

I would suggest to find the object and component only once, if you need it in the update cycle. And 100f should work if you wanna be sure to get a float result.

7
NGUI 3 Support / how to subclass uipanel?
« on: March 09, 2014, 12:11:28 PM »
sometimes i'm feeling pretty stupid... i managed it to subclass uilabel with the follwing code:

  1. [ExecuteInEditMode]
  2. [AddComponentMenu("NGUI/UI/NGUI Label")]
  3. public class MyUILabel : UILabel
  4. {
  5. //
  6. }
  7.  

Perhaps this is the wrong way because it's not working the same with UIPanel. How can I subclass UIPanel without loosing the possibility to work with your property checkboxes.

Thanks in advance.

cyx

8
NGUI 3 Support / Caret not showing on devices
« on: March 07, 2014, 03:53:57 AM »
Hi, I'm not sure if I'm doing something wrong, but I'm not able to show up the caret in an UIInput textfield on IOS and Android. It's working in simulator but not on devices. I can write normally but nothing is blinking... any suggestions?

Thanks alot.

9
NGUI 3 Support / Re: UIInput without separate IOS input field
« on: March 03, 2014, 10:26:58 AM »
Found a solution:

Setting max. lines for the textfield to 1 and not 0 helps. Switch works only for SINGLE LINE text fields.

Thanks anyway.

10
NGUI 3 Support / Re: TouchScreenKeyboard.hideInput issue
« on: March 03, 2014, 10:25:21 AM »
I've had the same problem. Set your max. lines for the textfield to 1 and not 0. The docs say:

"This property is applicable for SINGLE LINE text fields that have assigned keyboard with alphanumeric keys. Number-only keyboards will show text input field no matter if this flag is set to true or false."

As far as I know, alphanumeric and so on doesn't matter, but single line is the important setting.

11
NGUI 3 Support / Re: Need to embed Arial Bold on Android?
« on: March 03, 2014, 07:46:42 AM »
Ok, skipped this problem for a while, but found a solution. I imported the ttf files (Arial, Arial Bold) into the project but I haven't connected them to the textfields. If you select the imported font instead using the default embedded Arial then its working fine on IOS and Android.

12
NGUI 3 Support / Re: UIInput without separate IOS input field
« on: February 24, 2014, 04:21:07 AM »
I tried that and added the line into UIInput before Line 399 and outside the if block as well, nothing happens. I can not remove this extra textfield... aargh. Don't know whats wrong.

13
NGUI 3 Support / Re: UIInput without separate IOS input field
« on: February 21, 2014, 07:06:21 AM »
I added your code in a the panel script of UI Root in the Awake() methode, but nothing happens for the normal textinput field - so it's not looking like yours.

14
NGUI 3 Support / Need to embed Arial Bold on Android?
« on: February 21, 2014, 06:20:32 AM »
Hi, I'm wondering if I need to embed fonts like Arial Bold in my app on android. Because when I using this font on an UILabel its not looking right on Android (looks like a fallback font). On an iPad everything looks fine and Arial Normal looks fine at both devices as well. Any suggestions?

15
NGUI 3 Support / Re: UIInput without separate IOS input field
« on: February 21, 2014, 06:13:41 AM »
exactly, the textfield which comes from the os when opening the keyboard with "cancel" and "done". its just confusing, if you have a textfield in your game and another one above your keyboard with the same content when writing, so I wanna switch that off.

Pages: [1] 2