Support Bevy 0.17 (#11)
* update: modify for 0.17 * update: enhance webview functionality and improve plugin implementation * update: refactor webview system and improve binding group usage * update: refactor command triggering for webview events and enhance Receive struct * update: refactor command triggering for webview dev tools * update: refactor render process handler and improve webview handling * update: refactor webview browser handling and improve IME caret management * clippy * fmt * update: improve README formatting and clarify version compatibility * update: support Bevy 0.17 and enhance permissions in settings * update: enhance CI configuration by adding Wayland and XKB dependencies * delete: settings.json * update: refactor shader imports and improve binding group definitions * update: refactor devtool command triggers for improved clarity * update: modify LibraryLoader initialization for improved path handling on macOS * fmt --------- Co-authored-by: not-elm <elmgameinfo@gmail.com>
This commit is contained in:
@@ -63,13 +63,13 @@ fn spawn_webview(
|
||||
}
|
||||
|
||||
fn show_devtool(mut commands: Commands, webviews: Query<Entity, With<DebugWebview>>) {
|
||||
commands
|
||||
.entity(webviews.single().unwrap())
|
||||
.trigger(RequestShowDevTool);
|
||||
commands.trigger(RequestShowDevTool {
|
||||
webview: webviews.single().unwrap(),
|
||||
});
|
||||
}
|
||||
|
||||
fn close_devtool(mut commands: Commands, webviews: Query<Entity, With<DebugWebview>>) {
|
||||
commands
|
||||
.entity(webviews.single().unwrap())
|
||||
.trigger(RequestCloseDevtool);
|
||||
commands.trigger(RequestCloseDevtool {
|
||||
webview: webviews.single().unwrap(),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user