INNER CODE UNIT · C++
e
oxylusengine/Oxylus · OxylusEditor/src/Editor.cpp:149
auto* e = reinterpret_cast<Editor*>(user_data);
auto type = Notification::Type::Info;
if (message.verbosity == loguru::NamedVerbosity::Verbosity_ERROR) {
type = Notification::Type::Error;
} else if (message.verbosity == loguru::NamedVerbosity::Verbosity_WARNING) {
type = Notification::Type::Warn;
} else if (message.verbosity == loguru::NamedVerbosity::Verbosity_INFO || message.verbosity > 0) {
type = Notification::Type::Info;
}
auto notification = Notification(message.message, true, type);
e->notification_system.add(std::move(notification));
},
&self,
loguru::Verbosity_INFO
);
self.thumbnail_manager.init();