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)>,