Skip to content

Commit

Permalink
Don't use glob imports into the crate root to preserve module docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Jan 9, 2025
1 parent 6ca5e55 commit 0c706a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/bevy_ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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::*;
Expand Down Expand Up @@ -164,7 +164,7 @@ impl Plugin for UiPlugin {
app.init_resource::<UiSurface>()
.init_resource::<UiScale>()
.init_resource::<UiStack>()
.register_type::<Activate>()
.register_type::<actions::Activate>()
.register_type::<BackgroundColor>()
.register_type::<CalculatedClip>()
.register_type::<ComputedNode>()
Expand Down Expand Up @@ -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),
);
Expand Down

0 comments on commit 0c706a6

Please sign in to comment.