From 5da5eb79bbb84b6897fad11196030b4cc707467e Mon Sep 17 00:00:00 2001 From: Egehan <138960752+eghwand@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:06:29 +0300 Subject: [PATCH 1/2] Add ui setting cl_same_clan_color --- src/game/client/components/menus_settings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 7a54d9797..8687b02bb 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -2980,7 +2980,9 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView) Section.HSplitTop(LineSize, &Button, &Section); ColorRGBA GreenDefault(0.78f, 1.0f, 0.8f, 1.0f); static CButtonContainer s_AuthedColor; + static CButtonContainer s_SameClanColor; DoLine_ColorPicker(&s_AuthedColor, 25.0f, 13.0f, 5.0f, &Button, Localize("Authed name color in scoreboard"), &g_Config.m_ClAuthedPlayerColor, GreenDefault, false); + DoLine_ColorPicker(&s_SameClanColor, 25.0f, 13.0f, 5.0f, &Button, Localize("Same clan color in scoreboard"), &g_Config.m_ClSameClanColor, GreenDefault, false); } else if(s_CurTab == APPEARANCE_TAB_HOOK_COLLISION) { From 2993d3ad11504b36bfd6eb7a81e80fe442e8f25c Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Sat, 16 Dec 2023 11:10:02 +0100 Subject: [PATCH 2/2] Fix style --- src/game/client/components/menus_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 8687b02bb..21414e7ba 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -2982,7 +2982,7 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView) static CButtonContainer s_AuthedColor; static CButtonContainer s_SameClanColor; DoLine_ColorPicker(&s_AuthedColor, 25.0f, 13.0f, 5.0f, &Button, Localize("Authed name color in scoreboard"), &g_Config.m_ClAuthedPlayerColor, GreenDefault, false); - DoLine_ColorPicker(&s_SameClanColor, 25.0f, 13.0f, 5.0f, &Button, Localize("Same clan color in scoreboard"), &g_Config.m_ClSameClanColor, GreenDefault, false); + DoLine_ColorPicker(&s_SameClanColor, 25.0f, 13.0f, 5.0f, &Button, Localize("Same clan color in scoreboard"), &g_Config.m_ClSameClanColor, GreenDefault, false); } else if(s_CurTab == APPEARANCE_TAB_HOOK_COLLISION) {