From 0c706a6ec3a324db4b223d9027ffa132fddcde07 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Thu, 9 Jan 2025 12:35:20 -0800 Subject: [PATCH] Don't use glob imports into the crate root to preserve module docs --- crates/bevy_ui/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index f16d42267cb6c..0ab9e36c4ed13 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -26,7 +26,6 @@ pub mod picking_backend; use bevy_derive::{Deref, DerefMut}; use bevy_reflect::{std_traits::ReflectDefault, Reflect}; mod accessibility; -mod actions; // This module is not re-exported, but is instead made public. // This is intended to discourage accidental use of the experimental API. pub mod experimental; @@ -37,7 +36,8 @@ mod render; mod stack; mod ui_node; -pub use actions::*; +pub mod actions; + pub use focus::*; pub use geometry::*; pub use layout::*; @@ -164,7 +164,7 @@ impl Plugin for UiPlugin { app.init_resource::() .init_resource::() .init_resource::() - .register_type::() + .register_type::() .register_type::() .register_type::() .register_type::() @@ -209,9 +209,9 @@ impl Plugin for UiPlugin { app.add_systems( PreUpdate, ( - activate_focus_on_enter, - activate_ui_elements_on_click, - activate_focus_on_gamepad_south, + actions::activate_focus_on_enter, + actions::activate_ui_elements_on_click, + actions::activate_focus_on_gamepad_south, ) .in_set(UiSystem::Actions), );