Author Topic: Sub Menus  (Read 1528 times)

acs_andrew

  • Guest
Sub Menus
« on: July 23, 2012, 08:08:28 AM »
I've made a menu system based on the example, with the tween for expanding labels but replaced the labels with buttons. What's the best approach for making these buttons have their own children that behave in the same way?

acs_andrew

  • Guest
Re: Sub Menus
« Reply #1 on: July 23, 2012, 10:46:12 AM »
I think I've solved it, I was already on the right lines with the tween groups but I think I was just parenting the tweens in the wrong place.

I've added an accordion effect too but requires me to add a UIbuttontween (set to reverse) for every other tween in the menu. Is there a way to try and get all the other tweens to reverse rather than manually adding all of them to each menu button?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sub Menus
« Reply #2 on: July 23, 2012, 03:25:59 PM »
If you already have a tweener component attached, you can simply do tweener.Play(false), which will play it in reverse.