1.5: Fuckin' UE5... #38
1 changed files with 12 additions and 0 deletions
|
@ -333,6 +333,18 @@ Application::drawCustomStyle(GameObjects::CustomStyle& style) {
|
||||||
style.name = name_buf.data();
|
style.name = name_buf.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ImGui::SmallButton(ICON_FA_FILE_EXPORT " Export")) {
|
||||||
|
if(!ImportExport::exportStyle(_currentMass->name(), style)) {
|
||||||
|
_queue.addToast(Toast::Type::Error, ImportExport::lastExportError());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_queue.addToast(Toast::Type::Success, "Style exported successfully.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(drawUnsafeWidget(ImGui::SmallButton, ICON_FA_FILE_IMPORT " Import")) {
|
||||||
|
// TODO: implement once the style manager is ready.
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::EndMenuBar();
|
ImGui::EndMenuBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue