Module layout

Source
Expand description

This module defines the building blocks for building the layout of the editor.

The current implementation builds an egui_dock TabViewer and delegates the specific layout to that. We contain the different panels and how to construct them in this module.

Modulesยง

assets ๐Ÿ”’
Contains the rendering logic for the crate::layout::EditorPanels::Assets pane.
layers ๐Ÿ”’
Contains the rendering logic for the crate::layout::EditorPanels::Layers pane.
levels ๐Ÿ”’
Contains the rendering logic for the crate::layout::EditorPanels::Levels pane.
settings ๐Ÿ”’
Renders the settings tab in the editor layout.
status_bar ๐Ÿ”’
Renders the status bar at the bottom of the screen.
toolbar ๐Ÿ”’
Renders the toolbar at the top of the screen.

Structsยง

EditorLayout
Contains the data structures that are available to the [TabViewer] when rendering the editor layout. See EditorLayout::ui in particular.

Enumsยง

EditorPanels
The different panels that can be shown in the editor UI. If a new panel needs to be available for the user in the UI it needs to be added here, if it needs to be shown by default, make sure to add it in UiState::default as well.

Functionsยง

render_editor_layout
Handles rendering the EditorLayout in the World.