|
|
|
@ -172,11 +172,11 @@ fn interactive_button(
|
|
|
|
Interaction::Hovered => {
|
|
|
|
Interaction::Hovered => {
|
|
|
|
window.single_mut().cursor.icon = CursorIcon::Hand;
|
|
|
|
window.single_mut().cursor.icon = CursorIcon::Hand;
|
|
|
|
bg_color.0.set_a(0.75);
|
|
|
|
bg_color.0.set_a(0.75);
|
|
|
|
writer.send(crate::audio::AudioEvent::MenuSelect)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Interaction::Pressed => {
|
|
|
|
Interaction::Pressed => {
|
|
|
|
window.single_mut().cursor.icon = CursorIcon::Grab;
|
|
|
|
window.single_mut().cursor.icon = CursorIcon::Grab;
|
|
|
|
bg_color.0.set_a(1.0);
|
|
|
|
bg_color.0.set_a(1.0);
|
|
|
|
|
|
|
|
writer.send(crate::audio::AudioEvent::MenuSelect)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|