From dd95eee491574cf6eba42896e62d33733e77e735 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 19 Feb 2023 10:23:35 +0100 Subject: [PATCH] Rename 'Con_NPrintf' cvars A more appropriate name and description for 'Con_NPrintf'. --- r5dev/tier1/IConVar.cpp | 8 ++++---- r5dev/tier1/cvar.cpp | 8 ++++---- r5dev/tier1/cvar.h | 8 ++++---- r5dev/vgui/vgui_debugpanel.cpp | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/r5dev/tier1/IConVar.cpp b/r5dev/tier1/IConVar.cpp index 28a27780..7e133206 100644 --- a/r5dev/tier1/IConVar.cpp +++ b/r5dev/tier1/IConVar.cpp @@ -140,10 +140,10 @@ void ConVar::Init(void) cl_rcon_request_sendlogs = ConVar::Create("cl_rcon_request_sendlogs", "1" , FCVAR_RELEASE, "Request the rcon server to send console logs on connect.", false, 0.f, false, 0.f, nullptr, nullptr); cl_quota_stringCmdsPerSecond = ConVar::Create("cl_quota_stringCmdsPerSecond", "16" , FCVAR_RELEASE, "How many string commands per second user is allowed to submit, 0 to allow all submissions.", true, 0.f, false, 0.f, nullptr, nullptr); - cl_hoststats_invert_x = ConVar::Create("cl_hoststats_invert_x", "0", FCVAR_DEVELOPMENTONLY, "Inverts the X offset for host speeds debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); - cl_hoststats_invert_y = ConVar::Create("cl_hoststats_invert_y", "0", FCVAR_DEVELOPMENTONLY, "Inverts the Y offset for host speeds debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); - cl_hoststats_offset_x = ConVar::Create("cl_hoststats_offset_x", "10", FCVAR_DEVELOPMENTONLY, "X offset for host speeds debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); - cl_hoststats_offset_y = ConVar::Create("cl_hoststats_offset_y", "10", FCVAR_DEVELOPMENTONLY, "Y offset for host speeds debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); + cl_notify_invert_x = ConVar::Create("cl_notify_invert_x", "0", FCVAR_DEVELOPMENTONLY, "Inverts the X offset for console notify debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); + cl_notify_invert_y = ConVar::Create("cl_notify_invert_y", "0", FCVAR_DEVELOPMENTONLY, "Inverts the Y offset for console notify debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); + cl_notify_offset_x = ConVar::Create("cl_notify_offset_x", "10", FCVAR_DEVELOPMENTONLY, "X offset for console notify debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); + cl_notify_offset_y = ConVar::Create("cl_notify_offset_y", "10", FCVAR_DEVELOPMENTONLY, "Y offset for console notify debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); cl_showsimstats = ConVar::Create("cl_showsimstats" , "0" , FCVAR_DEVELOPMENTONLY, "Shows the tick counter for the server/client simulation and the render frame.", false, 0.f, false, 0.f, nullptr, nullptr); cl_simstats_invert_x = ConVar::Create("cl_simstats_invert_x", "1" , FCVAR_DEVELOPMENTONLY, "Inverts the X offset for simulation debug overlay.", false, 0.f, false, 0.f, nullptr, nullptr); diff --git a/r5dev/tier1/cvar.cpp b/r5dev/tier1/cvar.cpp index 85dcecf4..d7fc0e5b 100644 --- a/r5dev/tier1/cvar.cpp +++ b/r5dev/tier1/cvar.cpp @@ -112,10 +112,10 @@ ConVar* bhit_abs_origin = nullptr; ConVar* cl_rcon_request_sendlogs = nullptr; ConVar* cl_quota_stringCmdsPerSecond = nullptr; -ConVar* cl_hoststats_invert_x = nullptr; // RENAME! -ConVar* cl_hoststats_invert_y = nullptr; -ConVar* cl_hoststats_offset_x = nullptr; -ConVar* cl_hoststats_offset_y = nullptr; +ConVar* cl_notify_invert_x = nullptr; +ConVar* cl_notify_invert_y = nullptr; +ConVar* cl_notify_offset_x = nullptr; +ConVar* cl_notify_offset_y = nullptr; ConVar* cl_showsimstats = nullptr; ConVar* cl_simstats_invert_x = nullptr; diff --git a/r5dev/tier1/cvar.h b/r5dev/tier1/cvar.h index 54e7e8f9..87fcd4b3 100644 --- a/r5dev/tier1/cvar.h +++ b/r5dev/tier1/cvar.h @@ -108,10 +108,10 @@ extern ConVar* bhit_abs_origin; extern ConVar* cl_rcon_request_sendlogs; extern ConVar* cl_quota_stringCmdsPerSecond; -extern ConVar* cl_hoststats_invert_x; -extern ConVar* cl_hoststats_invert_y; -extern ConVar* cl_hoststats_offset_x; -extern ConVar* cl_hoststats_offset_y; +extern ConVar* cl_notify_invert_x; +extern ConVar* cl_notify_invert_y; +extern ConVar* cl_notify_offset_x; +extern ConVar* cl_notify_offset_y; extern ConVar* cl_showsimstats; extern ConVar* cl_simstats_invert_x; diff --git a/r5dev/vgui/vgui_debugpanel.cpp b/r5dev/vgui/vgui_debugpanel.cpp index 43bbc459..a527c001 100644 --- a/r5dev/vgui/vgui_debugpanel.cpp +++ b/r5dev/vgui/vgui_debugpanel.cpp @@ -184,8 +184,8 @@ void CTextOverlay::Con_NPrintf(void) } static const Color c = { 255, 255, 255, 255 }; - const int nWidth = cl_hoststats_invert_x->GetBool() ? g_nWindowRect[0] - cl_hoststats_offset_x->GetInt() : cl_hoststats_offset_x->GetInt() + m_nCon_NPrintf_Idx * m_nFontHeight; - const int nHeight = cl_hoststats_invert_y->GetBool() ? g_nWindowRect[1] - cl_hoststats_offset_y->GetInt() : cl_hoststats_offset_y->GetInt(); + const int nWidth = cl_notify_invert_x->GetBool() ? g_nWindowRect[0] - cl_notify_offset_x->GetInt() : cl_notify_offset_x->GetInt() + m_nCon_NPrintf_Idx * m_nFontHeight; + const int nHeight = cl_notify_invert_y->GetBool() ? g_nWindowRect[1] - cl_notify_offset_y->GetInt() : cl_notify_offset_y->GetInt(); CMatSystemSurface_DrawColoredText(g_pMatSystemSurface, v_Rui_GetFontFace(), m_nFontHeight, nWidth, nHeight, c.r(), c.g(), c.b(), c.a(), m_szCon_NPrintf_Buf);