Skip to content

Commit

Permalink
Merge pull request #65 from jkb0o/bevy-0.11
Browse files Browse the repository at this point in the history
Migrate to bevy 0.11
  • Loading branch information
jkb0o authored Sep 20, 2023
2 parents bbc2bbb + 59c7d68 commit ddd29fc
Show file tree
Hide file tree
Showing 80 changed files with 2,808 additions and 2,119 deletions.
1,721 changes: 943 additions & 778 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "belly"
version = "0.2.0"
version = "0.3.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -16,7 +16,7 @@ members = [
]

[dependencies]
bevy = "0.10"
bevy = "0.11"
embed-doc-image = "0.1"
tagstr = { path = "crates/tagstr" }
belly_macro = { path = "crates/belly_macro" }
Expand Down
46 changes: 22 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -189,8 +189,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -267,8 +267,8 @@ use belly::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -336,8 +336,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -430,8 +430,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -823,9 +823,9 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_system(update_label)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.add_systems(update_label)
.run();
}

Expand Down Expand Up @@ -887,8 +887,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -1074,8 +1074,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -1179,7 +1179,6 @@ fn setup(mut commands: Commands) {
<button on:press=|ctx| { ctx.select("#container > *").toggle_class("hidden"); }>
"Toggle container children visibility"
</button>
<br/>
<span class="box target">"Target span"</span>
<span id="container">
<span class="box target">"Target span"</span>
Expand Down Expand Up @@ -1232,8 +1231,8 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

Expand Down Expand Up @@ -1281,17 +1280,16 @@ use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(BellyPlugin)
.add_startup_system(setup)
.add_plugins(BellyPlugin)
.add_systems(Startup, setup)
.run();
}

fn setup(mut commands: Commands) {
commands.spawn(Camera2dBundle::default());
commands.add(eml! {
<body s:padding="50px">
<body s:padding="50px" s:flex-direction="column">
<progressbar s:width="200px" bind:value=from!(Time:elapsed_seconds()*0.2)/>
<br/>
<progressbar s:width="200px" bind:value=from!(Time:elapsed_seconds()*0.2)>
<slot separator>
<span s:height="100%" s:min-width="10px" s:background-color="red"/>
Expand Down
1 change: 1 addition & 0 deletions assets/stylesheet.ess
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* stylesheet.ess */
body {
padding: 5px;
flex-direction: column;
}
span {
padding: 25px;
Expand Down
4 changes: 2 additions & 2 deletions crates/belly_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "belly_core"
version = "0.2.0"
version = "0.3.0"
edition = "2021"

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

[dependencies]
bevy = "0.10"
bevy = "0.11"
bevy_stylebox = { path = "../bevy_stylebox" }
cssparser = "0.29.6"
itertools = "0.10.5"
Expand Down
Loading

0 comments on commit ddd29fc

Please sign in to comment.