animations

This commit is contained in:
Jorijn van der Graaf 2025-11-24 03:38:20 +01:00
commit e4dda0861c
8 changed files with 161 additions and 4 deletions

View file

@ -47,8 +47,9 @@ export namespace Crafter {
class UiElement;
class Window {
public:
std::chrono::time_point<std::chrono::high_resolution_clock> lastFrameEnd;
Event<void> onClose;
Event<std::chrono::time_point<std::chrono::high_resolution_clock>> onUpdate;
Event<FrameTime> onUpdate;
bool open = true;
bool updating = false;
Window() = default;