Skip to content

Commit 3eab891

Browse files
committed
fixes #142, upgrade with bevy 0.6
1 parent 9ab58ec commit 3eab891

File tree

111 files changed

+1009
-1645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1009
-1645
lines changed

Cargo.lock

Lines changed: 542 additions & 1121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/notation_kb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_kb"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55
description = "Fun Notation Knowledge Base"
66

apps/notation_kb/src/kb.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::sync::Arc;
22

33
use notation_bevy::bevy::prelude::*;
4-
use notation_bevy::bevy::prelude::AppBuilder;
54
//use notation_bevy::bevy::input::mouse::{MouseMotion, MouseWheel, MouseScrollUnit};
65

76
use notation_bevy::prelude::*;
@@ -12,19 +11,19 @@ use crate::index_panel::IndexPanel;
1211
pub struct NotationKnowledgeBase();
1312

1413
impl NotationKnowledgeBase {
15-
fn extra(app: &mut AppBuilder) {
14+
fn extra(app: &mut App) {
1615
app.init_resource::<IndexPanel>();
17-
app.add_startup_system(Self::setup_state.system());
16+
app.add_startup_system(Self::setup_state);
1817
TabPlugin::setup_mouse_input(app);
1918
app.add_system_set(
2019
SystemSet::on_update(NotationAssetsStates::Loaded)
21-
.with_system(IndexPanel::hack_settings.system())
22-
.with_system(IndexPanel::check_reload.system())
23-
.with_system(IndexPanel::index_ui.system())
24-
.with_system(IndexPanel::index_audio.system())
25-
.with_system(IndexPanel::handle_link_evts.system())
26-
.with_system(Self::load_tab.system())
27-
.with_system(Self::on_window_resized.system())
20+
.with_system(IndexPanel::hack_settings)
21+
.with_system(IndexPanel::check_reload)
22+
.with_system(IndexPanel::index_ui)
23+
.with_system(IndexPanel::index_audio)
24+
.with_system(IndexPanel::handle_link_evts)
25+
.with_system(Self::load_tab)
26+
.with_system(Self::on_window_resized)
2827
);
2928
}
3029
pub fn run() {

apps/notation_kb_cn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_kb_cn"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55
description = "Fun Notation Knowledge Base (Chinese)"
66

apps/notation_tabs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_tabs"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

apps/notation_viewer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_viewer"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55
description = "Notation Viewer"
66

apps/notation_viewer/src/viewer.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use std::sync::Arc;
2-
31
use notation_bevy::bevy::prelude::*;
4-
use notation_bevy::bevy::prelude::AppBuilder;
52
use notation_bevy::bevy::input::mouse::{MouseMotion, MouseWheel, MouseScrollUnit};
63

74
use notation_bevy::prelude::*;
@@ -13,17 +10,17 @@ use crate::help_panel::HelpPanel;
1310
pub struct NotationViewer();
1411

1512
impl NotationViewer {
16-
fn extra(app: &mut AppBuilder) {
13+
fn extra(app: &mut App) {
1714
app.init_resource::<HelpPanel>();
1815
TabPlugin::setup_mouse_input(app);
1916
app.add_system_set(
2017
SystemSet::on_update(NotationAssetsStates::Loaded)
21-
.with_system(Self::handle_keyboard_inputs.system())
22-
.with_system(Self::handle_mouse_inputs.system())
23-
.with_system(Self::handle_touch_inputs.system())
24-
.with_system(Self::load_tab.system())
25-
.with_system(HelpPanel::help_ui.system())
26-
.with_system(HelpPanel::handle_link_evts.system())
18+
.with_system(Self::handle_keyboard_inputs)
19+
.with_system(Self::handle_mouse_inputs)
20+
.with_system(Self::handle_touch_inputs)
21+
.with_system(Self::load_tab)
22+
.with_system(HelpPanel::help_ui)
23+
.with_system(HelpPanel::handle_link_evts)
2724
);
2825
}
2926
pub fn run(tabs: Vec<String>) {
@@ -40,7 +37,7 @@ impl NotationViewer {
4037
mut theme: ResMut<NotationTheme>,
4138
mut evts: EventWriter<AddTabEvent>,
4239
entities: Query<Entity, With<GlobalTransform>>,
43-
viewer_query: Query<(Entity, &Arc<TabViewer>), With<Arc<TabViewer>>>,
40+
viewer_query: Query<(Entity, &TabViewer), With<TabViewer>>,
4441
asset_server: Res<AssetServer>,
4542
assets: Res<Assets<TabAsset>>,
4643
) {

apps/notation_viewer_cn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_viewer_cn"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55
description = "Notation Viewer (Chinese)"
66

crates/notation_audio/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notation_audio"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
homepage = "https://www.notation.fun"
@@ -13,6 +13,6 @@ description = "Fun notation - audio features"
1313
[features]
1414

1515
[dependencies]
16-
bevy = { version = "0.5.0", default-features = false }
17-
bevy_kira_audio = "0.7.0"
16+
bevy = { version = "0.6.0", default-features = false }
17+
bevy_kira_audio = "0.8.0"
1818
ringbuf = "0.2.6"

crates/notation_audio/src/mono_stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ impl MonoStream {
5454
}
5555
}
5656
pub fn init_streaming(
57-
app: &mut AppBuilder,
57+
app: &mut App,
5858
setup_default_streaming: bool,
5959
) {
6060
app.add_plugin(AudioPlugin);
6161
app.add_plugin(AudioStreamPlugin::<MonoStreamOutput>::default());
6262
if setup_default_streaming {
63-
app.add_startup_system(Self::setup_default_streaming.system());
63+
app.add_startup_system(Self::setup_default_streaming);
6464
}
6565
}
6666
pub fn setup_streaming(

0 commit comments

Comments
 (0)