Author Topic: Tween row within grid?  (Read 3647 times)

bmon3y

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Tween row within grid?
« on: January 07, 2015, 08:49:07 PM »
So I have a kill feed made up of labels within a grid. Each of the label rows have a self destruct script on them so they fade out and get destroyed. When the very top row gets destroyed the next row gets moved to the top, but it snaps to the top. Is there any way to tween it so it moves in a smoother fashion?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tween row within grid?
« Reply #1 on: January 08, 2015, 08:46:51 AM »
Sure, just enable UIGrid.animateSmoothly and call Reposition() after removing some child. I do that in Windward for the skill bar.

bmon3y

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Tween row within grid?
« Reply #2 on: January 08, 2015, 12:40:31 PM »
Awesome, thank you!