![FancyMenu [Fabric] [MOVED TO NEW PROJECT]](https://media.forgecdn.net/avatars/thumbnails/310/137/256/256/637397690731730986.png)
Fade-out when variable changes
cofeeys opened this issue ยท 0 comments
Describe the bug
I'm trying to make an element fade in when a variable reaches a certain value and fade out when the value changes. The fade-in works correctly when the variable is set, but when the value changes, the element disappears instantly instead of fading out.
To Reproduce
- Set a variable to alternate between 0 and 1, and back to 0
- Add an if statement to the Loading Requirements of the element, so it shows when the variable is 1.
Expected Behavior
The element should fade out smoothly when the variable changes from 1 to 0.
Actual Behavior
The fade-in works correctly when the value is set to 1.
However, when the value changes back to 0, the element disappears instantly instead of fading out.
Basic Informations:
- OS: Windows 11
- FancyMenu 3.3.2
- Fabric 0.16.10
- Minecraft 1.21.1