|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
use bevy::{
|
|
|
|
|
color::palettes::css::{BLACK, ORANGE, PURPLE, RED, TEAL},
|
|
|
|
|
color::palettes::css::{BLACK, BLUE, GREEN, ORANGE, PURPLE, RED, TEAL},
|
|
|
|
|
prelude::*,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -53,6 +53,18 @@ fn setup(mut commands: Commands) {
|
|
|
|
|
parent.spawn(Text("Menu".to_string()));
|
|
|
|
|
})
|
|
|
|
|
.observe(button_set_state(ViewState::Menu));
|
|
|
|
|
parent
|
|
|
|
|
.spawn((Button, BackgroundColor(GREEN.into()), GlobalZIndex(1)))
|
|
|
|
|
.with_children(|parent| {
|
|
|
|
|
parent.spawn(Text("Deck".to_string()));
|
|
|
|
|
})
|
|
|
|
|
.observe(button_set_state(ViewState::Deck));
|
|
|
|
|
parent
|
|
|
|
|
.spawn((Button, BackgroundColor(BLUE.into()), GlobalZIndex(1)))
|
|
|
|
|
.with_children(|parent| {
|
|
|
|
|
parent.spawn(Text("Sets".to_string()));
|
|
|
|
|
})
|
|
|
|
|
.observe(button_set_state(ViewState::Sets));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|