Josh Posted August 3, 2022 Share Posted August 3, 2022 I added an extra parameter to the Widget::SetColor method that accepts a transition time in milliseconds for the color change to occur. The widget stores a timer that updates at 60 hz and causes the widget color to blend to the target color, with a redraw each interval. It works really well and gives you HTML-like effects, like when you hover over a panel and the color changes gradually. If another color change command occurs before the transition is complete, the transition just cancels and the new command determines behavior. This can probably be done for gradual widget shape transitions (position and size) as well, at some point in the future. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted August 3, 2022 Author Share Posted August 3, 2022 It's actually very cool to have those smooth color changes without the general lagginess of HTML-based interfaces. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.