73 array<string> opt = {
"#options_controls_disabled",
"#options_controls_enabled" };
80 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget(
"settings_details_body");
81 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget(
"settings_details_body_connectivity");
82 m_DetailsLabel =
TextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"details_label"));
83 m_DetailsText =
RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"details_content"));
86 m_Keybindings.SetUserID(777);
104 m_Mouse_VSensitivitySelector =
new OptionSelectorSlider(
mouse_VSensitivitySettingOption, m_Mouse_VSensitivityOption.ReadValue(),
this,
false, m_Mouse_VSensitivityOption.GetMin(), m_Mouse_VSensitivityOption.GetMax());
105 m_Mouse_VSensitivitySelector.SetStep(SLIDER_STEP);
106 m_Mouse_HSensitivitySelector =
new OptionSelectorSlider(
mouse_HSensitivitySettingOption, m_Mouse_HSensitivityOption.ReadValue(),
this,
false, m_Mouse_HSensitivityOption.GetMin(), m_Mouse_HSensitivityOption.GetMax());
107 m_Mouse_HSensitivitySelector.SetStep(SLIDER_STEP);
108 m_Mouse_AimMod_VSensitivitySelector =
new OptionSelectorSlider(
mouse_AimMod_VSensitivitySettingOption, m_Mouse_AimMod_VSensitivityOption.ReadValue(),
this,
false, m_Mouse_AimMod_VSensitivityOption.GetMin(), m_Mouse_AimMod_VSensitivityOption.GetMax());
109 m_Mouse_AimMod_VSensitivitySelector.SetStep(SLIDER_STEP);
110 m_Mouse_AimMod_HSensitivitySelector =
new OptionSelectorSlider(
mouse_AimMod_HSensitivitySettingOption, m_Mouse_AimMod_HSensitivityOption.ReadValue(),
this,
false, m_Mouse_AimMod_HSensitivityOption.GetMin(), m_Mouse_AimMod_HSensitivityOption.GetMax());
111 m_Mouse_AimMod_HSensitivitySelector.SetStep(SLIDER_STEP);
113 m_Mouse_InvertSelector.m_OptionChanged.Insert(UpdateMouseInvertView);
114 m_Mouse_VSensitivitySelector.m_OptionChanged.Insert(UpdateMouseVSensitivity);
115 m_Mouse_HSensitivitySelector.m_OptionChanged.Insert(UpdateMouseHSensitivity);
116 m_Mouse_AimMod_VSensitivitySelector.m_OptionChanged.Insert(UpdateMouseAimModVSensitivity);
117 m_Mouse_AimMod_HSensitivitySelector.m_OptionChanged.Insert(UpdateMouseAimModHSensitivity);
120#ifdef PLATFORM_CONSOLE
154 m_AimHelperSelector =
new OptionSelectorMultistate(
aimHelperSettingOption, m_AimHelperOption.GetIndex(),
this,
false,
opt);
156 m_ControllerLS_VSensitivitySelector =
new OptionSelectorSlider(
controllerLS_VSensitivitySettingOption, m_ControllerLS_VSensitivityOption.ReadValue(),
this,
false, m_ControllerLS_VSensitivityOption.GetMin(), m_ControllerLS_VSensitivityOption.GetMax());
157 m_ControllerLS_VSensitivitySelector.SetStep(SLIDER_STEP);
158 m_ControllerLS_HSensitivitySelector =
new OptionSelectorSlider(
controllerLS_HSensitivitySettingOption, m_ControllerLS_HSensitivityOption.ReadValue(),
this,
false, m_ControllerLS_HSensitivityOption.GetMin(), m_ControllerLS_HSensitivityOption.GetMax());
159 m_ControllerLS_HSensitivitySelector.SetStep(SLIDER_STEP);
160 m_ControllerLS_VehicleMod_HSensitivitySelector =
new OptionSelectorSlider(
controllerLS_VehicleMod_HSensitivitySettingOption, m_ControllerLS_VehicleMod_HSensitivityOption.ReadValue(),
this,
false, m_ControllerLS_VehicleMod_HSensitivityOption.GetMin(), m_ControllerLS_VehicleMod_HSensitivityOption.GetMax());
161 m_ControllerLS_VehicleMod_HSensitivitySelector.SetStep(SLIDER_STEP);
163 m_ControllerRS_VSensitivitySelector =
new OptionSelectorSlider(
controllerRS_VSensitivitySettingOption, m_ControllerRS_VSensitivityOption.ReadValue(),
this,
false, m_ControllerRS_VSensitivityOption.GetMin(), m_ControllerRS_VSensitivityOption.GetMax());
164 m_ControllerRS_VSensitivitySelector.SetStep(SLIDER_STEP);
165 m_ControllerRS_HSensitivitySelector =
new OptionSelectorSlider(
controllerRS_HSensitivitySettingOption, m_ControllerRS_HSensitivityOption.ReadValue(),
this,
false, m_ControllerRS_HSensitivityOption.GetMin(), m_ControllerRS_HSensitivityOption.GetMax());
166 m_ControllerRS_HSensitivitySelector.SetStep(SLIDER_STEP);
167 m_ControllerRS_CurvatureSelector =
new OptionSelectorSlider(
controllerRS_CurvatureSettingOption, m_ControllerRS_CurvatureOption.ReadValue(),
this,
false, m_ControllerRS_CurvatureOption.GetMin(), m_ControllerRS_CurvatureOption.GetMax());
168 m_ControllerRS_CurvatureSelector.SetStep(SLIDER_STEP);
169 m_ControllerRS_AimMod_VSensitivitySelector =
new OptionSelectorSlider(
controllerRS_AimMod_VSensitivitySettingOption, m_ControllerRS_AimMod_VSensitivityOption.ReadValue(),
this,
false, m_ControllerRS_AimMod_VSensitivityOption.GetMin(), m_ControllerRS_AimMod_VSensitivityOption.GetMax());
170 m_ControllerRS_AimMod_VSensitivitySelector.SetStep(SLIDER_STEP);
171 m_ControllerRS_AimMod_HSensitivitySelector =
new OptionSelectorSlider(
controllerRS_AimMod_HSensitivitySettingOption, m_ControllerRS_AimMod_HSensitivityOption.ReadValue(),
this,
false, m_ControllerRS_AimMod_HSensitivityOption.GetMin(), m_ControllerRS_AimMod_HSensitivityOption.GetMax());
172 m_ControllerRS_AimMod_HSensitivitySelector.SetStep(SLIDER_STEP);
173 m_ControllerRS_AimMod_CurvatureSelector =
new OptionSelectorSlider(
controllerRS_AimMod_CurvatureSettingOption, m_ControllerRS_AimMod_CurvatureOption.ReadValue(),
this,
false, m_ControllerRS_AimMod_CurvatureOption.GetMin(), m_ControllerRS_AimMod_CurvatureOption.GetMax());
174 m_ControllerRS_AimMod_CurvatureSelector.SetStep(SLIDER_STEP);
192 bool MaKState = m_KeyboardSelector.IsEnabled() &&
GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
199 m_Root.FindAnyWidget(
"controls_settings_scroll").GetScreenSize(
x,
y);
200 m_Root.FindAnyWidget(
"controls_settings_root").GetScreenSize(
x,
y2);
202 m_Root.FindAnyWidget(
"controls_settings_scroll").SetAlpha(
f);
368 if (m_Mouse_InvertSelector)
369 m_Mouse_InvertSelector.SetValue(m_Mouse_InvertOption.GetIndex(),
true);
370 if (m_Mouse_VSensitivitySelector)
371 m_Mouse_VSensitivitySelector.SetValue(m_Mouse_VSensitivityOption.ReadValue(),
true);
372 if (m_Mouse_HSensitivitySelector)
373 m_Mouse_HSensitivitySelector.SetValue(m_Mouse_HSensitivityOption.ReadValue(),
true);
374 if (m_Mouse_AimMod_VSensitivitySelector)
375 m_Mouse_AimMod_VSensitivitySelector.SetValue(m_Mouse_AimMod_VSensitivityOption.ReadValue(),
true);
376 if (m_Mouse_AimMod_HSensitivitySelector)
377 m_Mouse_AimMod_HSensitivitySelector.SetValue(m_Mouse_AimMod_HSensitivityOption.ReadValue(),
true);
380#ifdef PLATFORM_CONSOLE
381 if (m_KeyboardSelector)
382 m_KeyboardSelector.SetValue(m_KeyboardOption.GetIndex(),
true);
383 if (m_AimHelperSelector)
384 m_AimHelperSelector.SetValue(m_AimHelperOption.GetIndex(),
true);
386 if (m_ControllerLS_VSensitivitySelector)
387 m_ControllerLS_VSensitivitySelector.SetValue(m_ControllerLS_VSensitivityOption.ReadValue(),
true);
388 if (m_ControllerLS_HSensitivitySelector)
389 m_ControllerLS_HSensitivitySelector.SetValue(m_ControllerLS_HSensitivityOption.ReadValue(),
true);
390 if (m_ControllerLS_VehicleMod_HSensitivitySelector)
391 m_ControllerLS_VehicleMod_HSensitivitySelector.SetValue(m_ControllerLS_VehicleMod_HSensitivityOption.ReadValue(),
true);
392 if (m_ControllerRS_InvertSelector)
393 m_ControllerRS_InvertSelector.SetValue(m_ControllerRS_InvertOption.GetIndex(),
true);
394 if (m_ControllerRS_VSensitivitySelector)
395 m_ControllerRS_VSensitivitySelector.SetValue(m_ControllerRS_VSensitivityOption.ReadValue(),
true);
396 if (m_ControllerRS_HSensitivitySelector)
397 m_ControllerRS_HSensitivitySelector.SetValue(m_ControllerRS_HSensitivityOption.ReadValue(),
true);
398 if (m_ControllerRS_CurvatureSelector)
399 m_ControllerRS_CurvatureSelector.SetValue(m_ControllerRS_CurvatureOption.ReadValue(),
true);
400 if (m_ControllerRS_AimMod_VSensitivitySelector)
401 m_ControllerRS_AimMod_VSensitivitySelector.SetValue(m_ControllerRS_AimMod_VSensitivityOption.ReadValue(),
true);
402 if (m_ControllerRS_AimMod_HSensitivitySelector)
403 m_ControllerRS_AimMod_HSensitivitySelector.SetValue(m_ControllerRS_AimMod_HSensitivityOption.ReadValue(),
true);
404 if (m_ControllerRS_AimMod_CurvatureSelector)
405 m_ControllerRS_AimMod_CurvatureSelector.SetValue(m_ControllerRS_AimMod_CurvatureOption.ReadValue(),
true);
411 if (m_Mouse_InvertSelector)
412 m_Mouse_InvertSelector.SetValue(m_Mouse_InvertOption.GetDefaultIndex(),
true);
413 if (m_Mouse_VSensitivitySelector)
414 m_Mouse_VSensitivitySelector.SetValue(m_Mouse_VSensitivityOption.GetDefault(),
true);
415 if (m_Mouse_HSensitivitySelector)
416 m_Mouse_HSensitivitySelector.SetValue(m_Mouse_HSensitivityOption.GetDefault(),
true);
417 if (m_Mouse_AimMod_VSensitivitySelector)
418 m_Mouse_AimMod_VSensitivitySelector.SetValue(m_Mouse_AimMod_VSensitivityOption.GetDefault(),
true);
419 if (m_Mouse_AimMod_HSensitivitySelector)
420 m_Mouse_AimMod_HSensitivitySelector.SetValue(m_Mouse_AimMod_HSensitivityOption.GetDefault(),
true);
422#ifdef PLATFORM_CONSOLE
423 if (m_KeyboardSelector)
424 m_KeyboardSelector.SetValue(m_KeyboardOption.GetDefaultIndex(),
true);
425 if (m_AimHelperSelector)
426 m_AimHelperSelector.SetValue(m_AimHelperOption.GetDefaultIndex(),
true);
428 if (m_ControllerLS_VSensitivitySelector)
429 m_ControllerLS_VSensitivitySelector.SetValue(m_ControllerLS_VSensitivityOption.GetDefault(),
true);
430 if (m_ControllerLS_HSensitivitySelector)
431 m_ControllerLS_HSensitivitySelector.SetValue(m_ControllerLS_HSensitivityOption.GetDefault(),
true);
432 if (m_ControllerLS_VehicleMod_HSensitivitySelector)
433 m_ControllerLS_VehicleMod_HSensitivitySelector.SetValue(m_ControllerLS_VehicleMod_HSensitivityOption.GetDefault(),
true);
434 if (m_ControllerRS_InvertSelector)
435 m_ControllerRS_InvertSelector.SetValue(m_ControllerRS_InvertOption.GetDefaultIndex(),
true);
436 if (m_ControllerRS_VSensitivitySelector)
437 m_ControllerRS_VSensitivitySelector.SetValue(m_ControllerRS_VSensitivityOption.GetDefault(),
true);
438 if (m_ControllerRS_HSensitivitySelector)
439 m_ControllerRS_HSensitivitySelector.SetValue(m_ControllerRS_HSensitivityOption.GetDefault(),
true);
440 if (m_ControllerRS_CurvatureSelector)
441 m_ControllerRS_CurvatureSelector.SetValue(m_ControllerRS_CurvatureOption.GetDefault(),
true);
442 if (m_ControllerRS_AimMod_VSensitivitySelector)
443 m_ControllerRS_AimMod_VSensitivitySelector.SetValue(m_ControllerRS_AimMod_VSensitivityOption.GetDefault(),
true);
444 if (m_ControllerRS_AimMod_HSensitivitySelector)
445 m_ControllerRS_AimMod_HSensitivitySelector.SetValue(m_ControllerRS_AimMod_HSensitivityOption.GetDefault(),
true);
446 if (m_ControllerRS_AimMod_CurvatureSelector)
447 m_ControllerRS_AimMod_CurvatureSelector.SetValue(m_ControllerRS_AimMod_CurvatureOption.GetDefault(),
true);
591#ifdef PLATFORM_CONSOLE