Update optionsMenu.tscript

removed -skurps from last commit
This commit is contained in:
Sir-Skurpsalot 2025-12-12 21:12:29 -07:00 committed by GitHub
parent b245368fa0
commit b65f06aa25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -520,7 +520,7 @@ function OptionsMenu::applyChangedOptions(%this)
{ {
VideoSettingsList.applyChanges(); VideoSettingsList.applyChanges();
AudioSettingsList.applyChanges(); AudioSettingsList.applyChanges();
KBMControlsList.applyChanges(); //Saves settings and binds from GamepadControlsList as well -Skurps KBMControlsList.applyChanges(); //Saves settings and binds from GamepadControlsList as well
//Process the audio channel tempvars to get their values //Process the audio channel tempvars to get their values
//and then apply them to the actual pref variable, as well as the SFXChannelVolume //and then apply them to the actual pref variable, as well as the SFXChannelVolume
@ -918,7 +918,7 @@ function OptionsMenu::populateAudioSettings(%this)
// Keyboard & Mouse, Controller List Functions // Keyboard & Mouse, Controller List Functions
// //
//============================================================================== //==============================================================================
function KBMControlsList::applyChanges(%this){ //Skurps function KBMControlsList::applyChanges(%this){
//Save mouse sensitivity //Save mouse sensitivity
$pref::Input::LinkMouseSensitivity = $pref::Input::LinkMouseSensitivity_tempVar; $pref::Input::LinkMouseSensitivity = $pref::Input::LinkMouseSensitivity_tempVar;
@ -961,7 +961,7 @@ function KBMControlsList::applyChanges(%this){ //Skurps
$RemapDirty = false; $RemapDirty = false;
} }
// restoreRemap() is called from user custom keybinds file which is generated by KBMControlsList::applyChanges() -Skurps // restoreRemap() is called from user custom keybinds file which is generated by KBMControlsList::applyChanges()
function restoreRemap(%device, %actionMap, %action, %cmd){ function restoreRemap(%device, %actionMap, %action, %cmd){
// Make sure no other "action" (key / button press) is bound to this command on this actionMap (from remapDlg.tscript) // Make sure no other "action" (key / button press) is bound to this command on this actionMap (from remapDlg.tscript)
unbindExtraActions( %cmd, %actionMap, %device, 0 ); unbindExtraActions( %cmd, %actionMap, %device, 0 );
@ -989,7 +989,7 @@ function OptionsMenu::populateKeybinds(%this,%device, %controlsList) {
%controlsList.clear(); %controlsList.clear();
if (%device $= "keyboard") { if (%device $= "keyboard") {
%controlsList.add(addOptionGroup("Mouse Options")); //Skurps %controlsList.add(addOptionGroup("Mouse Options"));
%controlsList.add(addOptionSlider("Mouse Sensitivity", "", "$pref::Input::LinkMouseSensitivity", 0, 1, 10)); %controlsList.add(addOptionSlider("Mouse Sensitivity", "", "$pref::Input::LinkMouseSensitivity", 0, 1, 10));
} }