Navigator.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Editor
Functions
- void ShowNavigator(IEditorContext& session, bool toggle = false)
- Shows the whole level small, with the bookmarks and the notes.
-
void SetBookmark(IEditorContext& session,
std::
int32_t slot) - Remembers the middle of the view as a bookmark, from 1 to 9.
-
auto GoToBookmark(IEditorContext& session,
std::
int32_t slot) -> bool - Moves the view to a bookmark, from 1 to 9, returns
falseif it isn't set. - void AddNote(IEditorContext& session, Vector2f worldPos, StringView text = {})
- Adds a note at a position in the level, it's written in ShowNavigator().
Function documentation
void ShowNavigator(IEditorContext& session, bool toggle = false)
Shows the whole level small, with the bookmarks and the notes.
A click or a drag in the small level moves the view there. Each bookmark can be gone to, set to the middle of the view or cleared, each note gone to, changed or removed. Only one is shown, with toggle a shown one is closed instead.