Author Topic: Button Label Seems to go wrong  (Read 3624 times)

johnessy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Button Label Seems to go wrong
« on: May 15, 2012, 05:43:11 AM »
Hi there i have just started with NGUI and noticed a problem. When i create a button it also creates a label. But when i move the button the label seems to go behind the button and is not in front of it any more. I can still see it but it seems like the label goes behind the button.

joreldraw

  • Guest
Re: Button Label Seems to go wrong
« Reply #1 on: May 15, 2012, 07:02:44 AM »
When you create a button you have

Parent : Button with the button tweens.
child1: Background image of the button
child2: Label of the button.

You need to move the parent.

johnessy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Button Label Seems to go wrong
« Reply #2 on: May 15, 2012, 07:23:21 AM »
Yea i got it sorted it seemed to be my camera as i need the camera top orbit the level while the menu is showing. I have now another problem. I created a font and use this in my menu but now in my input fields when i type the characters either go white or just look plain weird any idea ;)?

joreldraw

  • Guest
Re: Button Label Seems to go wrong
« Reply #3 on: May 15, 2012, 07:50:14 AM »

If have white background on your input, need to change "Active Color" to another to see text, by default is white.

johnessy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Button Label Seems to go wrong
« Reply #4 on: May 15, 2012, 08:31:33 AM »
Thanks