Fixed Coral crash with base type classes, temp fix for logs crash + added light color param to C# api

This commit is contained in:
Antoine Pilote
2024-09-05 00:52:55 -04:00
parent 732e94899c
commit 5e3472c256
5 changed files with 35 additions and 7 deletions

View File

@@ -3055,10 +3055,10 @@ namespace Nuake {
DrawMenuBars();
int i = 0;
if (Logger::GetLogCount() > 0 && Logger::GetLogs()[Logger::GetLogCount() - 1].type == COMPILATION)
{
SetStatusMessage(std::string(ICON_FA_EXCLAMATION_TRIANGLE) + " An unhandled exception occured in your script. See logs for more details.", Color(1.0f, 0.1f, 0.1f, 1.0f));
}
//if (Logger::GetLogCount() > 0 && Logger::GetLogs()[Logger::GetLogCount() - 1].type == COMPILATION)
//{
// SetStatusMessage(std::string(ICON_FA_EXCLAMATION_TRIANGLE) + " An unhandled exception occured in your script. See logs for more details.", Color(1.0f, 0.1f, 0.1f, 1.0f));
//}
DrawStatusBar();