mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
parent
6c41e95f25
commit
20cac1c2bb
|
@ -73,22 +73,8 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
||||||
|
|
||||||
// dynamic camera
|
// dynamic camera
|
||||||
Left.HSplitTop(20.0f, &Button, &Left);
|
Left.HSplitTop(20.0f, &Button, &Left);
|
||||||
static int s_DynamicCameraButton = 0;
|
if(DoButton_CheckBox(&g_Config.m_ClDyncam, Localize("Dynamic Camera"), g_Config.m_ClDyncam, &Button))
|
||||||
if(DoButton_CheckBox(&s_DynamicCameraButton, Localize("Dynamic Camera"), g_Config.m_ClMouseDeadzone != 0, &Button))
|
g_Config.m_ClDyncam ^= 1;
|
||||||
{
|
|
||||||
if(g_Config.m_ClMouseDeadzone)
|
|
||||||
{
|
|
||||||
g_Config.m_ClMouseFollowfactor = 0;
|
|
||||||
g_Config.m_ClMouseMaxDistance = 400;
|
|
||||||
g_Config.m_ClMouseDeadzone = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
g_Config.m_ClMouseFollowfactor = 60;
|
|
||||||
g_Config.m_ClMouseMaxDistance = 1000;
|
|
||||||
g_Config.m_ClMouseDeadzone = 300;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// weapon pickup
|
// weapon pickup
|
||||||
Left.HSplitTop(5.0f, 0, &Left);
|
Left.HSplitTop(5.0f, 0, &Left);
|
||||||
|
|
Loading…
Reference in a new issue