This commit is contained in:
2026-06-20 18:46:02 -05:00
parent ea309c3e0d
commit e7c3ca1139
3 changed files with 19 additions and 10 deletions
+6 -3
View File
@@ -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