fixed some indentation problems

just noticed a few more indentation problem, my bad.
This commit is contained in:
aaravamudan2014 2017-04-20 14:11:41 -07:00 committed by GitHub
parent 3ea47a5806
commit 55c12ebad9

View file

@ -619,7 +619,7 @@ function buildFullMapString( %index )
// getting exact type of binding based on Remap name // getting exact type of binding based on Remap name
if(getSubStr(%name,0,7) $= "Vehicle" ) if(getSubStr(%name,0,7) $= "Vehicle" )
{ {
%temp = vehicleMap.getBinding( %cmd ); %temp = vehicleMap.getBinding( %cmd );
} }
else else
%temp = moveMap.getBinding( %cmd ); %temp = moveMap.getBinding( %cmd );
@ -660,7 +660,7 @@ function OptionsDlg::doRemap( %this )
//turning on the vehicle mapping flag if selected item is vehicle remapping //turning on the vehicle mapping flag if selected item is vehicle remapping
if(getSubStr(%name,0,7) $= "Vehicle") if(getSubStr(%name,0,7) $= "Vehicle")
$vehicleMapped = true; $vehicleMapped = true;
RemapDlg-->OptRemapText.setValue( "Re-bind \"" @ %name @ "\" to..." ); RemapDlg-->OptRemapText.setValue( "Re-bind \"" @ %name @ "\" to..." );
OptRemapInputCtrl.index = %selId; OptRemapInputCtrl.index = %selId;
@ -744,7 +744,7 @@ function OptRemapInputCtrl::onInputEvent( %this, %device, %action )
// Get the current command this action is mapped to // Get the current command this action is mapped to
if(!$vehicleMapped) if(!$vehicleMapped)
%prevMap = moveMap.getCommand( %device, %action ); %prevMap = moveMap.getCommand( %device, %action );
else else
%prevMap = vehicleMap.getCommand( %device, %action ); %prevMap = vehicleMap.getCommand( %device, %action );
// If nothing was mapped to the previous command // If nothing was mapped to the previous command
@ -754,9 +754,9 @@ function OptRemapInputCtrl::onInputEvent( %this, %device, %action )
unbindExtraActions( %cmd, 1 ); unbindExtraActions( %cmd, 1 );
// performing desired binding (vehicleMap or moveMap) // performing desired binding (vehicleMap or moveMap)
if(!$vehicleMapped) if(!$vehicleMapped)
moveMap.bind( %device, %action, %cmd ); moveMap.bind( %device, %action, %cmd );
else else
vehicleMap.bind( %device, %action, %cmd ); vehicleMap.bind( %device, %action, %cmd );
optionsDlg-->OptRemapList.setRowById( %this.index, buildFullMapString( %this.index ) ); optionsDlg-->OptRemapList.setRowById( %this.index, buildFullMapString( %this.index ) );
return; return;
} }