From 5361637a551f6ed8bb9005b7c404ef342ec9026c Mon Sep 17 00:00:00 2001 From: melon Date: Fri, 19 Jan 2024 21:09:56 +0100 Subject: [PATCH] fixed placement & spacing --- src/game/client/components/menus_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 8c0ae5e24..ce8096cfa 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -2521,7 +2521,7 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView) DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClShowhud, Localize("Show ingame HUD"), &g_Config.m_ClShowhud, &Section, LineSize); // Switches of the various normal HUD elements - LeftView.HSplitTop(SectionTotalMargin + 6 * LineSize, &Section, &LeftView); + LeftView.HSplitTop(SectionTotalMargin + 5 * LineSize, &Section, &LeftView); Section.Margin(SectionMargin, &Section); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClShowhudHealthAmmo, Localize("Show health, shields and ammo"), &g_Config.m_ClShowhudHealthAmmo, &Section, LineSize); @@ -2952,8 +2952,8 @@ void CMenus::RenderSettingsAppearance(CUIRect MainView) // General chat settings LeftView.HSplitTop(SectionTotalMargin + 9 * LineSize, &Section, &LeftView); Section.Margin(SectionMargin, &Section); - Section.HSplitTop(2 * LineSize, &Button, &Section); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClNameplates, Localize("Show name plates"), &g_Config.m_ClNameplates, &Section, LineSize); + Section.HSplitTop(2 * LineSize, &Button, &Section); UI()->DoScrollbarOption(&g_Config.m_ClNameplatesSize, &g_Config.m_ClNameplatesSize, &Button, Localize("Name plates size"), 0, 100, &CUI::ms_LinearScrollbarScale, CUI::SCROLLBAR_OPTION_MULTILINE); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClNameplatesClan, Localize("Show clan above name plates"), &g_Config.m_ClNameplatesClan, &Section, LineSize);