1- use std:: sync:: Arc ;
2-
31use notation_bevy:: bevy:: prelude:: * ;
4- use notation_bevy:: bevy:: prelude:: AppBuilder ;
52use notation_bevy:: bevy:: input:: mouse:: { MouseMotion , MouseWheel , MouseScrollUnit } ;
63
74use notation_bevy:: prelude:: * ;
@@ -13,17 +10,17 @@ use crate::help_panel::HelpPanel;
1310pub struct NotationViewer ( ) ;
1411
1512impl 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 ) {
0 commit comments