add ron and gilrs
forgot to write the code for egui painting and removing menuspull/4/head
parent
ac46d9b0d8
commit
518ccff2aa
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue