mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update optionsMenu.tscript
removed -skurps from last commit
This commit is contained in:
parent
b245368fa0
commit
b65f06aa25
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue