From 9411e577598339cc49a6fc4c2f42204ef0bea453 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 26 Aug 2025 13:35:40 -0500 Subject: [PATCH] Make `CloseButton` observer functions private Now that there's a UI plugin, these systems don't need to be public. So they won't be. --- src/widgets/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/mod.rs b/src/widgets/mod.rs index f343491..b33c989 100644 --- a/src/widgets/mod.rs +++ b/src/widgets/mod.rs @@ -214,7 +214,7 @@ impl CloseButton { ) } - pub fn hover_start( + fn hover_start( event: Trigger>, // Get button background and border colors so we can change them. // Filter for *changed* interactions, and only entities with a [`Button`] @@ -228,7 +228,7 @@ impl CloseButton { } } - pub fn hover_stop( + fn hover_stop( event: Trigger>, mut button_colors: Query<(&mut BackgroundColor, &mut BorderColor), With>, ui_theme: Res, @@ -239,7 +239,7 @@ impl CloseButton { } } - pub fn press_start( + fn press_start( event: Trigger>, mut button_colors: Query<(&mut BackgroundColor, &mut BorderColor), With>, ui_theme: Res, @@ -250,7 +250,7 @@ impl CloseButton { } } - pub fn press_stop( + fn press_stop( event: Trigger>, mut commands: Commands, mut button_colors: Query<(&mut BackgroundColor, &mut BorderColor, &CloseButton)>,