From 4771cc7b5102a87ef1c2994eeb049bec810fc902 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 18 Jan 2019 19:11:29 +0100 Subject: [PATCH] added ui_mousesens as an UI option. closes #1874 --- src/game/client/components/menus_callback.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_callback.cpp b/src/game/client/components/menus_callback.cpp index abb88f065..8ab28591c 100644 --- a/src/game/client/components/menus_callback.cpp +++ b/src/game/client/components/menus_callback.cpp @@ -116,7 +116,7 @@ float CMenus::RenderSettingsControlsMovement(CUIRect View, void *pUser) } } - int NumOptions = 6; + int NumOptions = 7; float ButtonHeight = 20.0f; float Spaceing = 2.0f; float BackgroundHeight = (float)NumOptions*ButtonHeight+(float)NumOptions*Spaceing; @@ -127,7 +127,10 @@ float CMenus::RenderSettingsControlsMovement(CUIRect View, void *pUser) CUIRect Button; View.HSplitTop(Spaceing, 0, &View); View.HSplitTop(ButtonHeight, &Button, &View); - pSelf->DoScrollbarOption(&g_Config.m_InpMousesens, &g_Config.m_InpMousesens, &Button, Localize("Mouse sens."), 5, 500); + pSelf->DoScrollbarOption(&g_Config.m_InpMousesens, &g_Config.m_InpMousesens, &Button, Localize("Ingame mouse sens."), 5, 500); + View.HSplitTop(Spaceing, 0, &View); + View.HSplitTop(ButtonHeight, &Button, &View); + pSelf->DoScrollbarOption(&g_Config.m_UiMousesens, &g_Config.m_UiMousesens, &Button, Localize("Menu mouse sens."), 5, 500); pSelf->UiDoGetButtons(0, 5, View, ButtonHeight, Spaceing);