use bevy::prelude::*; /// This example illustrates how to create a button that changes color and text based on its /// interaction state. fn main() { App::new() .add_plugins(DefaultPlugins) .add_startup_system(setup) .add_system(button_system) .run(); } const NORMAL_BUTTON: Color = Color::rgb(0.15, 0.15, 0.15); const HOVERED_BUTTON: Color = Color::rgb(0.25, 0.25, 0.25); const PRESSED_BUTTON: Color = Color::rgb(0.35, 0.75, 0.35); fn button_system( mut interaction_query: Query< (&Interaction, &mut UiColor, &Children), (Changed, With