Author Topic: animation of panel's transparency  (Read 3955 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
animation of panel's transparency
« on: May 24, 2013, 05:51:00 PM »
When the transparency of a widget or a panel is animated it doesn't update at runtime, and requires AnimatedAlpha.
That's tedious and cause of many errors but it's necessary for optimization.

So what I suggest is the inspector displays an error message when user animates the component because remember : those who animate the UI are the artists.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: animation of panel's transparency
« Reply #1 on: May 24, 2013, 05:53:29 PM »
The issue is in detecting this. Animation directly modifies a private member variable -- so unless I keep a redundant copy of it and keep checking for inequality every update, there is no way to tell if it's modified improperly. And adding such hacks to detect a user issue is not a good way to go.

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: animation of panel's transparency
« Reply #2 on: May 24, 2013, 05:57:46 PM »
I was sure there was a .isAnimated in the Editor API but to my surprise there are none so I understand how you cannot do that.
Must have been frustrating working around all these limitations and I hope all this feedback is helping you in making a very artist friendly system.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: animation of panel's transparency
« Reply #3 on: May 25, 2013, 08:51:37 PM »
Very frustrating indeed :|