add no-github badge

This commit is contained in:
🪞👃🪞 2024-11-08 21:42:18 +01:00
parent 38e8cfc214
commit 2b78339e61
4 changed files with 19 additions and 11 deletions

View file

@ -20,14 +20,14 @@ impl<E: Engine, S, C: Command<S>> MenuBar<E, S, C> {
pub struct Menu<E: Engine, S, C: Command<S>> {
pub title: String,
pub items: Vec<MenuItem<E, S, C>>,
pub index: usize,
pub index: Option<usize>,
}
impl<E: Engine, S, C: Command<S>> Menu<E, S, C> {
pub fn new (title: impl AsRef<str>) -> Self {
Self {
title: title.as_ref().to_string(),
items: vec![],
index: 0
index: None,
}
}
pub fn add (mut self, item: MenuItem<E, S, C>) -> Self {