Maintenance for the week of July 27:
• NA megaservers for maintenance – July 27, 6:00AM EDT (10:00 UTC) -11:00AM EDT (15:00 UTC)
• EU megaservers for maintenance – July 27, 10:00 UTC (6:00AM EDT) - 15:00 UTC (11:00AM EDT)

How to animate fades on UI elements?

wisej12
wisej12
✭✭✭
Hello,
I'm an experienced Javascript developer who has never touched Lua in his life. I've been slowly teaching myself over the past few days. While searching through the API I found some interesting objects/methods:
"AnimationObject"
"AnimationObjectAlpha"
I figure these can be used to fade-in and fade-out UI frames. I played with it for a while, but I just couldn't understand how it works, since there's no documentation on the API.

Could someone help me out and, for example, write me a simple function that would fade-in the player's health bar?

This would greatly help me better understand the API and Lua. Thanks!
Sign In or Register to comment.