diff --git a/Cargo.toml b/Cargo.toml index d1fb95a..66b1dc3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] anyhow = "1.0.86" -bevy = { version = "0.14.0", features = ["dynamic_linking"] } +bevy = { version = "0.14.0", features = ["dynamic_linking", "subpixel_glyph_atlas"] } itertools = "0.13.0" log = { version = "*", features = ["max_level_debug", "release_max_level_warn"] } rand = "0.8.5" diff --git a/src/common.rs b/src/common.rs new file mode 100644 index 0000000..2b5b773 --- /dev/null +++ b/src/common.rs @@ -0,0 +1,23 @@ +use crate::prelude::*; + +pub fn button_system ( + mut interaction_query: Query< + (&Interaction, &mut BackgroundColor), + (Changed, With