Skip to content

Commit

Permalink
feat: update to egui 0.23. (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Oct 2, 2023
1 parent fe453e3 commit 22c29c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 24 deletions.
34 changes: 13 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion demos/features/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,5 +535,8 @@ fn demo_widget(
ui.label("Demo Widget");
// When using a bones image in egui, we have to get it's corresponding egui texture
// from the egui textures resource.
ui.image(egui_textures.get(meta.menu_image), [50., 50.])
ui.image(egui::load::SizedTexture::new(
egui_textures.get(meta.menu_image),
[50., 50.],
))
}
2 changes: 1 addition & 1 deletion framework_crates/bones_bevy_renderer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ webgl2 = ["bevy/webgl2"]
[dependencies]
bones_framework = { version = "0.3", path = "../bones_framework" }

bevy_egui = "0.21"
bevy_egui = { git = "https://github.com/zicklag/bevy_egui", branch = "feat/egui-0.23" }
glam = { version = "0.24", features = ["serde"] }
bevy_prototype_lyon = "0.9"
serde_yaml = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion framework_crates/bones_framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ serde = { version = "1.0", features = ["derive"] }
image = { version = "0.24", default-features = false }

# Gui
egui = { version = "0.22", optional = true }
egui = { version = "0.23", optional = true }
ttf-parser = { version = "0.19.1", default-features = false, optional = true }

# Audio
Expand Down

0 comments on commit 22c29c6

Please sign in to comment.