mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename 'con_suggestion_*' cvars to 'con_suggest_*'
Matches the suggest class name more.
This commit is contained in:
parent
00f349c745
commit
36376e3b2f
@ -199,9 +199,9 @@ ConVar* con_notify_error_clr = nullptr;
|
||||
|
||||
ConVar* con_max_lines = nullptr;
|
||||
ConVar* con_max_history = nullptr;
|
||||
ConVar* con_suggestion_limit = nullptr;
|
||||
ConVar* con_suggestion_showhelptext = nullptr;
|
||||
ConVar* con_suggestion_showflags = nullptr;
|
||||
ConVar* con_suggest_limit = nullptr;
|
||||
ConVar* con_suggest_showhelptext = nullptr;
|
||||
ConVar* con_suggest_showflags = nullptr;
|
||||
|
||||
ConVar* origin_disconnectWhenOffline = nullptr;
|
||||
|
||||
@ -388,15 +388,15 @@ void ConVar_StaticInit(void)
|
||||
con_notify_warning_clr = ConVar::StaticCreate("con_notify_warning_clr", "180 180 20 255", FCVAR_MATERIAL_SYSTEM_THREAD, "Warning RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
con_notify_error_clr = ConVar::StaticCreate("con_notify_error_clr" , "225 20 20 255" , FCVAR_MATERIAL_SYSTEM_THREAD, "Error RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);
|
||||
|
||||
con_max_lines = ConVar::StaticCreate("con_max_lines" , "1024", FCVAR_DEVELOPMENTONLY, "Maximum number of lines in the console before cleanup starts.", true, 1.f, false, 0.f, nullptr, nullptr);
|
||||
con_max_history = ConVar::StaticCreate("con_max_history" , "512" , FCVAR_DEVELOPMENTONLY, "Maximum number of command submission items before history cleanup starts.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggestion_limit = ConVar::StaticCreate("con_suggestion_limit" , "128" , FCVAR_DEVELOPMENTONLY, "Maximum number of suggestions the autocomplete window will show for the console.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggestion_showhelptext = ConVar::StaticCreate("con_suggestion_showhelptext" , "1" , FCVAR_DEVELOPMENTONLY, "Show CommandBase help text in autocomplete window.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggestion_showflags = ConVar::StaticCreate("con_suggestion_showflags" , "1" , FCVAR_DEVELOPMENTONLY, "Show CommandBase flags in autocomplete window.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_max_lines = ConVar::StaticCreate("con_max_lines" , "1024", FCVAR_DEVELOPMENTONLY, "Maximum number of lines in the console before cleanup starts.", true, 1.f, false, 0.f, nullptr, nullptr);
|
||||
con_max_history = ConVar::StaticCreate("con_max_history" , "512" , FCVAR_DEVELOPMENTONLY, "Maximum number of command submission items before history cleanup starts.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggest_limit = ConVar::StaticCreate("con_suggest_limit" , "128" , FCVAR_DEVELOPMENTONLY, "Maximum number of suggestions the autocomplete window will show for the console.", true, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggest_showhelptext = ConVar::StaticCreate("con_suggest_showhelptext" , "1" , FCVAR_DEVELOPMENTONLY, "Show CommandBase help text in autocomplete window.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
con_suggest_showflags = ConVar::StaticCreate("con_suggest_showflags" , "1" , FCVAR_DEVELOPMENTONLY, "Show CommandBase flags in autocomplete window.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
|
||||
serverbrowser_hideEmptyServers = ConVar::StaticCreate("serverbrowser_hideEmptyServers", "0", FCVAR_RELEASE, "Hide empty servers in the server browser", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
serverbrowser_mapFilter = ConVar::StaticCreate("serverbrowser_mapFilter", "0", FCVAR_RELEASE, "Filter servers by map in the server browser", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
serverbrowser_gamemodeFilter = ConVar::StaticCreate("serverbrowser_gamemodeFilter", "0", FCVAR_RELEASE, "Filter servers by gamemode in the server browser", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
serverbrowser_hideEmptyServers = ConVar::StaticCreate("serverbrowser_hideEmptyServers", "0", FCVAR_RELEASE, "Hide empty servers in the server browser.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
serverbrowser_mapFilter = ConVar::StaticCreate("serverbrowser_mapFilter", "0", FCVAR_RELEASE, "Filter servers by map in the server browser.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
serverbrowser_gamemodeFilter = ConVar::StaticCreate("serverbrowser_gamemodeFilter", "0", FCVAR_RELEASE, "Filter servers by gamemode in the server browser.", false, 0.f, false, 0.f, nullptr, nullptr);
|
||||
|
||||
#endif // !DEDICATED
|
||||
// Taken from S15:
|
||||
|
@ -189,9 +189,9 @@ extern ConVar* con_notify_error_clr;
|
||||
|
||||
extern ConVar* con_max_lines;
|
||||
extern ConVar* con_max_history;
|
||||
extern ConVar* con_suggestion_limit;
|
||||
extern ConVar* con_suggestion_showhelptext;
|
||||
extern ConVar* con_suggestion_showflags;
|
||||
extern ConVar* con_suggest_limit;
|
||||
extern ConVar* con_suggest_showhelptext;
|
||||
extern ConVar* con_suggest_showflags;
|
||||
|
||||
extern ConVar* origin_disconnectWhenOffline;
|
||||
#endif // !DEDICATED
|
||||
|
@ -402,7 +402,7 @@ void CConsole::SuggestPanel(void)
|
||||
|
||||
ImGui::PushID(static_cast<int>(i));
|
||||
|
||||
if (con_suggestion_showflags->GetBool())
|
||||
if (con_suggest_showflags->GetBool())
|
||||
{
|
||||
// Show the flag texture before the cvar name.
|
||||
const int mainTexIdx = GetFlagTextureIndex(suggest.m_nFlags);
|
||||
@ -590,7 +590,7 @@ void CConsole::FindFromPartial(void)
|
||||
ICvar::Iterator iter(g_pCVar);
|
||||
for (iter.SetFirst(); iter.IsValid(); iter.Next())
|
||||
{
|
||||
if (m_vSuggest.size() >= size_t(con_suggestion_limit->GetInt()))
|
||||
if (m_vSuggest.size() >= size_t(con_suggest_limit->GetInt()))
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -620,7 +620,7 @@ void CConsole::FindFromPartial(void)
|
||||
svValue.append(pConVar->GetString());
|
||||
svValue.append("]");
|
||||
}
|
||||
if (con_suggestion_showhelptext->GetBool())
|
||||
if (con_suggest_showhelptext->GetBool())
|
||||
{
|
||||
if (pCommandBase->GetHelpText())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user