Skip to content
Discussion options

You must be logged in to vote

I assume you store the label's string value in a variable. You could perhaps check if that buffer has been changed. As for the briefly highlighting, you can use this function to get an animated value.
You could use this float to multiply a channel of color in your label wherever you want to. Like you could animate the white text to flash red or whatever. Also keep in bind that this float goes from 1 to 0 or from 0 to 1 and every value in between, but thats written in the documentation I think.
The ID must be unique as this is how egui finds which animation to increment.
I hope I could help you! If you found this solved your issue please mark this as the answer, thanks!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dhleenamuga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants