|
|
|
|
@ -100,7 +100,7 @@ fn interactive_button(
|
|
|
|
|
while let Some((mut t, mut s)) = ts.fetch_next() {
|
|
|
|
|
s.right = Val::Px(0.0);
|
|
|
|
|
s.bottom = Val::Px(0.0);
|
|
|
|
|
t.sections.iter_mut().for_each(|mut section| {
|
|
|
|
|
t.sections.iter_mut().for_each(|section| {
|
|
|
|
|
section.style.color = Color::WHITE;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -112,7 +112,7 @@ fn interactive_button(
|
|
|
|
|
while let Some((mut t, mut s)) = ts.fetch_next() {
|
|
|
|
|
s.right = Val::Px(-2.0);
|
|
|
|
|
s.bottom = Val::Px(-1.0);
|
|
|
|
|
t.sections.iter_mut().for_each(|mut section| {
|
|
|
|
|
t.sections.iter_mut().for_each(|section| {
|
|
|
|
|
section.style.color = Color::hex("E8E8E8").unwrap();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -120,10 +120,6 @@ fn interactive_button(
|
|
|
|
|
Interaction::Pressed => {
|
|
|
|
|
ui_image.texture = depressed_handle.clone();
|
|
|
|
|
writer.send(audio::AudioEvent::MenuSelect);
|
|
|
|
|
let mut ts = texts.iter_many_mut(children.iter_descendants(entity));
|
|
|
|
|
while let Some((_t, mut s)) = ts.fetch_next() {
|
|
|
|
|
// TODO: Change text color
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|