FilePickers.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::UI
- User interface and menus.
- namespace Jazz2::UI::Windows
- Toolkit of windows, panels and controls, compiled only if
WITH_UI_WINDOWS. - namespace Jazz2::Editor
Functions
- void SetupLevelFileDialog(FileDialog& dialog)
- Makes a file dialog show levels as the editor knows them.
- void SetupTileSetFileDialog(FileDialog& dialog)
- Makes a file dialog show tile sets with their icons, the first tiles and how many there are.
- void SetupMusicFileDialog(FileDialog& dialog)
- Makes a file dialog show music with its icons, the format and the title of the song.
- void ShowLevelPicker(IEditorContext& session, StringView title, StringView current, Function<void(StringView)>&& onPicked)
- Lets a level be picked,
onPickedgets how a level refers to it. - void ShowTileSetPicker(IEditorContext& session, StringView title, StringView current, Function<void(StringView)>&& onPicked)
- Lets a tile set be picked,
onPickedgets its path relative toTilesetswithout the extension. - void ShowMusicPicker(IEditorContext& session, StringView title, StringView current, Function<void(StringView)>&& onPicked)
- Lets music be picked,
onPickedgets its path relative to the place it's in, as the game looks for it.
Function documentation
void SetupLevelFileDialog(FileDialog& dialog)
Makes a file dialog show levels as the editor knows them.
Their icons tell a level from a level with a script and from a file that isn't a level of this version of the game, the selected one is shown with its preview, name, author, music, tile set and the levels that follow it.
void ShowLevelPicker(IEditorContext& session, StringView title, StringView current, Function<void(StringView)>&& onPicked)
Lets a level be picked, onPicked gets how a level refers to it.
A level of the same episode as the edited one without the episode, as the original levels have it, episode/level otherwise. The dialog opens at current, the reference that is there now.