diff --git a/r5dev/src/gameclasses.cpp b/r5dev/src/gameclasses.cpp index 4c624819..b59fec2b 100644 --- a/r5dev/src/gameclasses.cpp +++ b/r5dev/src/gameclasses.cpp @@ -412,6 +412,8 @@ namespace GameGlobals void* ReloadBanListConCommand = CreateCustomConCommand("reloadbanlist", "Reloads the ban list from disk.", 0, CustomCommandVariations::ReloadBanList_Callback, nullptr); void* BanConCommand = CreateCustomConCommand("ban", "Bans a client from the Server via name. | Usage: ban (name)", 0, CustomCommandVariations::Ban_Callback, nullptr); void* BanIDConCommand = CreateCustomConCommand("banid", "Bans a client from the Server via originID, userID or IP | Usage: banid (originID/ipAddress/userID)", 0, CustomCommandVariations::BanID_Callback, nullptr); + + ConVar* DrawConsoleOverlayConVar = CreateCustomConVar("cl_drawconsoleoverlay", "0", 0, "Draw the console overlay at the top of the screen", false, 0.f, false, 0.f, nullptr, nullptr); } void* CreateCustomConCommand(const char* name, const char* helpString, int flags, void* callback, void* callbackAfterExecution) diff --git a/r5dev/src/logsystem.cpp b/r5dev/src/logsystem.cpp index 7474b6b8..7f5564d9 100644 --- a/r5dev/src/logsystem.cpp +++ b/r5dev/src/logsystem.cpp @@ -16,6 +16,9 @@ void LogSystem::Update() for (int i = 0; i < m_vLogs.size(); ++i) { if (m_vLogs[i].Ticks >= 0) { + if (GameGlobals::Cvar->FindVar("cl_drawconsoleoverlay")->m_iValue < 1) + return; + if (i < LOGSYSTEM_LINES_TO_SHOW) { float fadepct = fminf(float(m_vLogs[i].Ticks) / 64.f, 1.0); @@ -56,10 +59,10 @@ std::array LogSystem::GetLogColorForType(LogType_t type) { case LogType_t::NATIVE: return { 255, 255, 255 }; case LogType_t::SCRIPT_SERVER: - return { 163, 156, 213 }; + return { 190, 183, 240 }; case LogType_t::SCRIPT_CLIENT: return { 117, 116, 139 }; case LogType_t::SCRIPT_UI: - return { 117, 99, 98 }; + return { 197, 160, 177 }; } } \ No newline at end of file