diff options
author | Silas Bartha <silas@exvacuum.dev> | 2024-11-21 12:33:58 -0500 |
---|---|---|
committer | Silas Bartha <silas@exvacuum.dev> | 2024-11-21 12:33:58 -0500 |
commit | c2d89772336c52cce0b629f6ffc506eb1f221867 (patch) | |
tree | 96f30f3d94b7821fb769b0f2c86b17248f36a6d9 /src/widgets/systems.rs | |
parent | e1eb0d99f17e6604e79496db68b191202cb95d60 (diff) |
Thu Nov 21 12:33:58 PM EST 2024
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); + } +} |