diff options
author | Silas Bartha <silas@exvacuum.dev> | 2024-12-20 08:02:55 -0500 |
---|---|---|
committer | Silas Bartha <silas@exvacuum.dev> | 2024-12-20 08:02:55 -0500 |
commit | 652a17e0f90a045b99a80044be313e23b9529005 (patch) | |
tree | 0fec702d8a143cc67c1845eb4214aba5ee0d1d7d /src/widgets/systems.rs | |
parent | 87172fd904a9d461b10438be7dc55660e7ced680 (diff) | |
parent | 39e8be3872232d929c4ccaa1b595bf61d656b2fe (diff) |
Merge branch 'wip'
Diffstat (limited to 'src/widgets/systems.rs')
-rw-r--r-- | src/widgets/systems.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/systems.rs b/src/widgets/systems.rs index 2626ec6..0638b01 100644 --- a/src/widgets/systems.rs +++ b/src/widgets/systems.rs @@ -16,3 +16,9 @@ pub fn widget_input_handling( } } } + +pub fn update_widgets(mut widgets: Query<&mut Widget>, time: Res<Time>, mut commands: Commands) { + for mut widget in widgets.iter_mut() { + widget.widget.update(&time, &mut commands); + } +} |