diff --git a/Editor/IconDefinitions.h b/Editor/IconDefinitions.h index 3f116f630..4bac5eb07 100644 --- a/Editor/IconDefinitions.h +++ b/Editor/IconDefinitions.h @@ -2,7 +2,7 @@ #include "IconsFontAwesome6.h" // icon descriptions, source: https://github.com/juliettef/IconFontCppHeaders // These map the Font Awesome icon definitions to editor: -// These definitions will help to change icons that are scattered throughout the editor codeL +// These definitions will help to change icons that are scattered throughout the editor code #define ICON_LAYER ICON_FA_LAYER_GROUP #define ICON_TRANSFORM ICON_FA_LOCATION_DOT #define ICON_MESH ICON_FA_CUBE @@ -59,6 +59,9 @@ #define ICON_STOP ICON_FA_STOP #define ICON_PEN ICON_FA_PEN #define ICON_FILTER ICON_FA_FILTER +#define ICON_SAVE_EMBED ICON_FA_FILE_ZIPPER +#define ICON_SAVE_NO_EMBED ICON_FA_FILE +#define ICON_SAVE_HEADER ICON_FA_FILE_CODE #define ICON_DARK ICON_FA_MOON #define ICON_BRIGHT ICON_FA_SUN diff --git a/Editor/OptionsWindow.cpp b/Editor/OptionsWindow.cpp index 49fa34920..928a0dda9 100644 --- a/Editor/OptionsWindow.cpp +++ b/Editor/OptionsWindow.cpp @@ -399,10 +399,10 @@ void OptionsWindow::Create(EditorComponent* _editor) saveModeComboBox.Create("Save Mode: "); - saveModeComboBox.AddItem("Embed resources", (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA); - saveModeComboBox.AddItem("No embedding", (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA_BUT_DISABLE_EMBEDDING); - saveModeComboBox.AddItem("Dump to header", (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA); - saveModeComboBox.SetTooltip("Choose whether to embed resources (textures, sounds...) in the scene file when saving, or keep them as separate files.\nThe Dump to header option will use embedding and create a C++ header file with byte data of the scene to be used with wi::Archive serialization."); + saveModeComboBox.AddItem("Embed resources " ICON_SAVE_EMBED, (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA); + saveModeComboBox.AddItem("No embedding " ICON_SAVE_NO_EMBED, (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA_BUT_DISABLE_EMBEDDING); + saveModeComboBox.AddItem("Dump to header " ICON_SAVE_HEADER, (uint64_t)wi::resourcemanager::Mode::ALLOW_RETAIN_FILEDATA); + saveModeComboBox.SetTooltip("Choose whether to embed resources (textures, sounds...) in the scene file when saving, or keep them as separate files.\nThe Dump to header (" ICON_SAVE_HEADER ") option will use embedding and create a C++ header file with byte data of the scene to be used with wi::Archive serialization."); saveModeComboBox.SetColor(wi::Color(50, 180, 100, 180), wi::gui::IDLE); saveModeComboBox.SetColor(wi::Color(50, 220, 140, 255), wi::gui::FOCUS); saveModeComboBox.SetSelected(editor->main->config.GetSection("options").GetInt("save_mode"));