cleanup
This commit is contained in:
@@ -6,9 +6,12 @@ use crate::mode::PendingMode;
|
||||
/// One level in the editor's sidebar menu tree.
|
||||
///
|
||||
/// The menu is a stack of levels (the current one is the stack's last element); a
|
||||
/// breadcrumb is built from their [`title`](MenuLevel::title)s. A choice either opens
|
||||
/// a [dialog](kiln_ui::dialog) or pushes a child level — e.g. [`Main`](MenuLevel::Main)
|
||||
/// descends into [`World`](MenuLevel::World) or [`Floor`](MenuLevel::Floor).
|
||||
/// breadcrumb is built from their [`title`](MenuLevel::title)s. A choice opens a
|
||||
/// [dialog](kiln_ui::dialog), pushes a child level (e.g. [`Main`](MenuLevel::Main)
|
||||
/// descends into [`World`](MenuLevel::World) or [`Terrain`](MenuLevel::Terrain)), or
|
||||
/// sets the drawing tools' current archetype (e.g. the [`Terrain`](MenuLevel::Terrain)
|
||||
/// and [`Pushers`](MenuLevel::Pushers) choices, via
|
||||
/// [`set_current`](EditorState::set_current)).
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
pub(crate) enum MenuLevel {
|
||||
/// The top-level main menu: switch boards, view scripts, more later
|
||||
|
||||
Reference in New Issue
Block a user