Maintenance for the week of December 22:
• NA megaservers for maintenance – December 22, 4:00AM EST (9:00 UTC) - 8:00AM EST (13:00 UTC)
• EU megaservers for maintenance – December 22, 4:00AM EST (9:00 UTC) - 8:00AM EST (13:00 UTC)

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.