From 75c2d8214b987db6f0ae335357ed6c790ae2bc1d Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Sun, 1 Dec 2024 20:17:41 +0100 Subject: [PATCH] Bump iyes_progress --- bevy_asset_loader/Cargo.toml | 4 ++-- bevy_asset_loader/examples/progress_tracking.rs | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bevy_asset_loader/Cargo.toml b/bevy_asset_loader/Cargo.toml index 9bc21b5..2de0cb3 100644 --- a/bevy_asset_loader/Cargo.toml +++ b/bevy_asset_loader/Cargo.toml @@ -29,12 +29,12 @@ path-slash = "0.2" bevy_common_assets = { version = "0.12.0", features = ["ron"], optional = true } serde = { version = "1", optional = true } -iyes_progress = { version = "0.13.0-rc.1", optional = true } +iyes_progress = { version = "0.13.0", optional = true } [dev-dependencies] bevy = { version = "0.15.0", features = ["vorbis"] } anyhow = "1" -iyes_progress = { version = "0.13.0-rc.1" } +iyes_progress = { version = "0.13.0" } bevy_common_assets = { version = "0.12.0", features = ["ron"] } serde = { version = "1" } ron = "0.8.1" diff --git a/bevy_asset_loader/examples/progress_tracking.rs b/bevy_asset_loader/examples/progress_tracking.rs index 5e661f6..d390be5 100644 --- a/bevy_asset_loader/examples/progress_tracking.rs +++ b/bevy_asset_loader/examples/progress_tracking.rs @@ -26,6 +26,7 @@ fn main() { .load_collection::() .load_collection::(), ) + .add_systems(OnEnter(MyStates::AssetLoading), render_description) // gracefully quit the app when `MyStates::Next` is reached .add_systems(OnEnter(MyStates::Next), expect) .add_systems( @@ -66,6 +67,16 @@ struct TextureAssets { female_adventurer_layout: Handle, } +fn render_description(mut commands: Commands) { + commands.spawn(Camera2d::default()); + commands.spawn(Text::new( + r#" + See the console for progress output + + This window will close when progress completes..."#, + )); +} + fn track_fake_long_task(time: Res