mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-12-26 00:16:32 +01:00
added multiselect to the client's library
This commit is contained in:
@@ -436,6 +436,7 @@ pub enum Dragging {
|
||||
Album(AlbumId),
|
||||
Song(SongId),
|
||||
Queue(Queue),
|
||||
Queues(Vec<Queue>),
|
||||
}
|
||||
|
||||
/// GuiElems have access to this within draw.
|
||||
@@ -733,7 +734,7 @@ pub fn adjust_pos(outer: &Rectangle, rel_pos: &Vec2) -> Vec2 {
|
||||
}
|
||||
|
||||
impl Gui {
|
||||
fn exec_gui_action(&mut self, action: GuiAction) {
|
||||
pub fn exec_gui_action(&mut self, action: GuiAction) {
|
||||
match action {
|
||||
GuiAction::Build(f) => {
|
||||
let actions = f(&mut *self.database.lock().unwrap());
|
||||
@@ -891,6 +892,11 @@ impl WindowHandler<GuiEvent> for Gui {
|
||||
25.0,
|
||||
Color::from_int_rgba(100, 0, 255, 100),
|
||||
),
|
||||
Dragging::Queues(_) => graphics.draw_circle(
|
||||
self.mouse_pos,
|
||||
25.0,
|
||||
Color::from_int_rgba(100, 0, 255, 100),
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user