Author Topic: Button Background  (Read 4986 times)

atmuc

  • Guest
Button Background
« on: December 17, 2012, 01:26:59 PM »
Is there any tutorial for building background for button in NGUI?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Button Background
« Reply #1 on: December 17, 2012, 03:53:20 PM »
Not really. Look at the examples. It's not very hard to do.

atmuc

  • Guest
Re: Button Background
« Reply #2 on: December 18, 2012, 01:14:12 AM »
can you share some tricks? i could not find source images for example buttons. i think they are 17x17 pixels. what are margins?

JRoch

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: Button Background
« Reply #3 on: December 18, 2012, 01:47:23 AM »
A 9-sliced sprite can be any size you want.  If your art for the button is the size of a full-sized button, fine.  If it's just a tiny box that is then sliced appropriately, fine.  You need to take a good hard look at how they are defined in the atlas, because it seems like you don't quite get how they work just yet.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Button Background
« Reply #4 on: December 18, 2012, 07:01:11 AM »
I am pretty sure this was explained in the video tutorials...

atmuc

  • Guest
Re: Button Background
« Reply #5 on: December 19, 2012, 01:49:28 AM »
A 9-sliced sprite can be any size you want.  If your art for the button is the size of a full-sized button, fine.  If it's just a tiny box that is then sliced appropriately, fine.  You need to take a good hard look at how they are defined in the atlas, because it seems like you don't quite get how they work just yet.

thanks JRoch. the keyword was sliced sprite. i examined it, now i am able to make it.