diff options
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); + } +} |