Jazz2/Editor/Shell/ShellActions.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::Editor

Functions

void AddShellActions(IEditorContext& session, ActionRegistry& actions)
Adds the actions of the panels, the overlays and the dialogs of the interface.
auto DuplicateCurrentLayer(IEditorContext& session) -> bool
Adds a copy of the layer being edited after it, as an undoable step, the copy is edited then.
void SoloLayer(IEditorContext& session, std::int32_t layer)
Shows only one layer in the editor, or all of them again.
void SetLayerEditorOpacity(IEditorContext& session, std::int32_t layer, std::uint8_t opacity)
Sets the opacity the editor shows a layer with, 255 fully, see DocumentLayer::EditorOpacity.

Function documentation

void AddShellActions(IEditorContext& session, ActionRegistry& actions)

Adds the actions of the panels, the overlays and the dialogs of the interface.

Duplicating a layer, the frame of the game screen shown over the level, the list of events and the favourite events and tiles. Called by EditorSession::CreateActions().

void SoloLayer(IEditorContext& session, std::int32_t layer)

Shows only one layer in the editor, or all of them again.

If all other layers are hidden and the layer is shown, all layers are shown again, otherwise all others are hidden. Only the editor state of the layers changes, see DocumentLayer::EditorHidden.