From c51fca261fd78a39b44cb66898a74fa533dc6d78 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 5 Feb 2024 13:52:01 +0100 Subject: [PATCH] Add settings option to prefer friends when auto-completing Signed-off-by: Sefa Eyeoglu --- data/languages/german.txt | 3 +++ src/game/client/components/menus_settings.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/data/languages/german.txt b/data/languages/german.txt index 30e50c393..436987bbd 100644 --- a/data/languages/german.txt +++ b/data/languages/german.txt @@ -388,6 +388,9 @@ Show name plates Show only chat messages from friends == Nur Nachrichten von Freunden anzeigen +Prefer friends when auto-completing in chat +== Freunde bei Autovervollständigung im Chat bevorzugen + Sound == Ton diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index e6875c490..af5aeb397 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -2578,6 +2578,7 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView) DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClShowChat, Localize("Show chat"), &g_Config.m_ClShowChat, &Section, LineSize); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClChatTeamColors, Localize("Show names in chat in team colors"), &g_Config.m_ClChatTeamColors, &Section, LineSize); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClShowChatFriends, Localize("Show only chat messages from friends"), &g_Config.m_ClShowChatFriends, &Section, LineSize); + DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClChatCompleteFriendsFirst, Localize("Prefer friends when auto-completing in chat"), &g_Config.m_ClChatCompleteFriendsFirst, &Section, LineSize); if(DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClChatOld, Localize("Use old chat style"), &g_Config.m_ClChatOld, &Section, LineSize)) GameClient()->m_Chat.RebuildChat();