MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / HandleOtherSettingsInput

Method HandleOtherSettingsInput

TombEngine/Game/gui.cpp:937–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935 }
936
937 void GuiController::HandleOtherSettingsInput(bool fromPauseMenu)
938 {
939 enum OtherSettingsOption
940 {
941 Reverb,
942 MusicVolume,
943 SfxVolume,
944
945 Subtitles,
946 AutoMonkeySwingJump,
947 AutoTargeting,
948 TargetHighlighter,
949 InteractionHighlighter,
950 ToggleRumble,
951 ThumbstickCameraControl,
952
953 MouseSensitivity,
954
955 Apply,
956 Cancel,
957
958 Count
959 };
960
961 OptionCount = (int)OtherSettingsOption::Count - 1;
962
963 if (GuiIsPulsed(In::Left) || GuiIsPulsed(In::Right))
964 {
965 switch (SelectedOption)
966 {
967 case OtherSettingsOption::Reverb:
968 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
969 CurrentSettings.Configuration.EnableReverb = !CurrentSettings.Configuration.EnableReverb;
970 break;
971
972 case OtherSettingsOption::AutoMonkeySwingJump:
973 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
974 CurrentSettings.Configuration.EnableAutoMonkeySwingJump = !CurrentSettings.Configuration.EnableAutoMonkeySwingJump;
975 break;
976
977 case OtherSettingsOption::Subtitles:
978 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
979 CurrentSettings.Configuration.EnableSubtitles = !CurrentSettings.Configuration.EnableSubtitles;
980 break;
981
982 case OtherSettingsOption::AutoTargeting:
983 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
984 CurrentSettings.Configuration.EnableAutoTargeting = !CurrentSettings.Configuration.EnableAutoTargeting;
985 break;
986
987 case OtherSettingsOption::TargetHighlighter:
988 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
989 CurrentSettings.Configuration.EnableTargetHighlighter = !CurrentSettings.Configuration.EnableTargetHighlighter;
990 break;
991
992 case OtherSettingsOption::InteractionHighlighter:
993 SoundEffect(SFX_TR4_MENU_CHOOSE, nullptr, SoundEnvironment::Always);
994 CurrentSettings.Configuration.EnableInteractionHighlighter = !CurrentSettings.Configuration.EnableInteractionHighlighter;

Callers

nothing calls this directly

Calls 6

SoundEffectFunction · 0.85
IsPulsedFunction · 0.85
SetVolumeTracksFunction · 0.85
SetVolumeFXFunction · 0.85
SaveConfigurationFunction · 0.85
RumbleFunction · 0.85

Tested by

no test coverage detected