Skip to content

Commit

Permalink
Merge pull request #30 from PatrickChodowski/update-bevy14
Browse files Browse the repository at this point in the history
Update to bevy14
  • Loading branch information
SergioRibera authored Jul 25, 2024
2 parents 23ab888 + c91dfe8 commit 6eae3e7
Show file tree
Hide file tree
Showing 16 changed files with 3,998 additions and 2,103 deletions.
1,291 changes: 920 additions & 371 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ required-features = ["inspect"]
name = "invisible"
required-features = ["inspect"]

[[example]]
name = "tint"
required-features = ["inspect"]

[features]
default = ["serde"]
inspect = ["bevy-inspector-egui"]
serde = ["dep:serde"]

[dependencies]
bevy = { version = "0.13", default-features = false, features = [
bevy = { version = "0.14", default-features = false, features = [
"bevy_render",
"bevy_ui",
] }
bevy-inspector-egui = { version = "0.23", optional = true }
bevy-inspector-egui = { version = "0.25", optional = true }
serde = { version = "^1", features = ["derive"], optional = true }

[dev-dependencies]
bevy = "0.13"
bevy = "0.14"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Aviable and compatible versions

| bevy | VirtualJoystick |
|--------|-----------------|
| 0.14 | 2.2.0 |
| 0.13 | 2.2.0 |
| 0.12 | 2.1.0 |
| 0.11 | 2.0.1 |
Expand Down Expand Up @@ -123,7 +124,7 @@ fn create_scene(mut cmd: Commands, asset_server: Res<AssetServer>) {
asset_server.load("Outline.png"),
None,
None,
Some(Color::ORANGE_RED.with_a(0.3)),
Some(Color::rgba(1.0, 0.27, 0.0, 0.3))),
Vec2::new(75., 75.),
Vec2::new(150., 150.),
VirtualJoystickNode {
Expand Down
2 changes: 1 addition & 1 deletion examples/invisible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn create_scene(mut cmd: Commands, asset_server: Res<AssetServer>) {
},
texture: asset_server.load("Knob.png"),
sprite: Sprite {
color: Color::PURPLE,
color: Color::srgb(0.5, 0.0, 0.5),
custom_size: Some(Vec2::new(50., 50.)),
..default()
},
Expand Down
6 changes: 3 additions & 3 deletions examples/multiple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn create_scene(mut cmd: Commands, asset_server: Res<AssetServer>) {
},
texture: asset_server.load("Knob.png"),
sprite: Sprite {
color: Color::PURPLE,
color: Color::srgb(0.5, 0.0, 0.5),
custom_size: Some(Vec2::new(50., 50.)),
..default()
},
Expand All @@ -53,7 +53,7 @@ fn create_scene(mut cmd: Commands, asset_server: Res<AssetServer>) {
asset_server.load("Horizontal_Outline_Arrows.png"),
None,
None,
Some(Color::ORANGE_RED.with_a(0.3)),
Some(Color::srgba(1.0, 0.27, 0.0, 0.3)),
Vec2::new(75., 75.),
Vec2::new(150., 150.),
Style {
Expand All @@ -76,7 +76,7 @@ fn create_scene(mut cmd: Commands, asset_server: Res<AssetServer>) {
asset_server.load("Vertical_Outline_Arrows.png"),
None,
None,
Some(Color::ORANGE_RED.with_a(0.3)),
Some(Color::srgba(1.0, 0.27, 0.0, 0.3)),
Vec2::new(75., 75.),
Vec2::new(150., 150.),
Style {
Expand Down
Loading

0 comments on commit 6eae3e7

Please sign in to comment.