add ron and gilrs

forgot to write the code for egui painting and removing menus
pull/4/head
Milk.H 2024-04-30 12:20:37 +01:00
parent ac46d9b0d8
commit 518ccff2aa
Signed by: milk
GPG Key ID: 94C7CB70FFF80593
2 changed files with 10 additions and 1 deletions

View File

@ -11,9 +11,11 @@ cgmath = "0.18.0"
egui = "0.23.0"
egui-winit = "0.23.0"
egui_glow = { version = "0.23.0", features = ["winit"] }
gilrs = "0.10.7"
glow = "0.12.3"
glutin = "0.30.10"
glutin-winit = "0.3.0"
image = "0.25.1"
raw-window-handle = "0.6.1"
ron = "0.8.1"
winit = "0.28.7"

View File

@ -51,7 +51,14 @@ impl Gui
}
}
});
for remove in to_be_removed
{
self.menus.0.remove(&remove);
}
self.egui_ctx.paint(&self.window);
}
}
#[derive(PartialEq)]
@ -92,6 +99,6 @@ impl MenuManager
pub fn add(&mut self, new: Menu)
{
self.0.insert(self.1, new);
self.1 = self.1 + 1;
self.1 = self.1.wrapping_add(1);
}
}