Alpha Animation Script Issue
In my code, I have created a animation for a frame to fade in. (Alpha: 0 ----> Alpha: 1)
However when I set a script to set the alpha to 1 when the animation finishes (keep the frame shown),the SetAlpha on the frame does not stay. Does anyone know what is going wrong? Code:
local menuFrame = CreateFrame("Frame", "SAO_MainMenu", UIParent) |
you need to add a1:Pause() in the onfinish function
|
SetChange has been removed in legion so it's probably best not to use it.
You can replace it with a1:SetFromAlpha(0) and a1:SetToAlpha(1), and add menuFrame.animation:SetToFinalAlpha(true) to keep its new value. |
Quote:
Quote:
Still haven't found a solution. |
SetTo/FromAlpha are available on Live already, no reason to not use them.
|
I tried using the SetTo/SetFrom and didn't work, maybe I will re try and see if I did something wrong.
However I did manage to fix the issue by using Code:
UIFrameFadeIn(frame, timeToFade, startAlpha, endAlpha) |
Did you try the second part of what I wrote, which is what actually tells the animation group to keep the final alpha that it's set to?
|
All times are GMT -6. The time now is 02:01 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI