mktree 0.6.1

An egui tree to display entities of tree structure, e.g. CG assets, staffs, etc.
Documentation
pub extern crate egui;

pub mod tree;
pub mod tree_checkbox;

#[allow(unused_imports)]
use log::info;
use mkentity::{Entity, ProjectSource};
pub use tree::{MkTree, TreeContainer, TreeNode};
pub use tree_checkbox::{MkTreeCb, TreeContainerCb, TreeNodeCb};

/// How many levels until the nested `egui::CollapsingHeader` should stop open.
const DEFAULT_OPEN_DEPTH: usize = if cfg!(debug_assertions) { 4 } else { 3 };
const EMPTY_NODE_NAME: &str = "❗ empty node name ❗";
const TREE_ROOT_UNINITIALIZED_NAME: &str = "Uninitialized";

#[derive(Debug)]
pub enum TreeNodeSignal {
    LeafClicked,
}

#[cfg(test)]
mod tests {
    // #[test]
    // fn it_works() {
    //     let result = 2 + 2;
    //     assert_eq!(result, 4);
    // }
}