Add box selection history
This commit is contained in:
@ -2,52 +2,47 @@
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
//Register rebind-able controls
|
||||
function ndRegisterKeybinds()
|
||||
{
|
||||
function ndRegisterKeybinds() {
|
||||
if($ND::KeybindsRegistered)
|
||||
return;
|
||||
|
||||
|
||||
$RemapDivision[$RemapCount] = "New Duplicator";
|
||||
|
||||
$RemapName[$RemapCount] = "Copy Selection (Ctrl C)";
|
||||
$RemapCmd[$RemapCount] = "ndInputCopy";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Paste Selection (Ctrl V)";
|
||||
$RemapCmd[$RemapCount] = "ndInputPaste";
|
||||
$RemapCount++;
|
||||
|
||||
//$RemapName[$RemapCount] = "Paste Selection (Ctrl V)";
|
||||
//$RemapCmd[$RemapCount] = "ndInputPaste";
|
||||
//$RemapCount++;
|
||||
$RemapName[$RemapCount] = "Cut Selection (Ctrl X)";
|
||||
$RemapCmd[$RemapCount] = "ndInputCut";
|
||||
$RemapCount++;
|
||||
|
||||
|
||||
$RemapName[$RemapCount] = "Multiselect (Ctrl, Hold to use)";
|
||||
$RemapCmd[$RemapCount] = "ndInputMultiSelect";
|
||||
$RemapCount++;
|
||||
|
||||
|
||||
$RemapName[$RemapCount] = "Send /NewDuplicator";
|
||||
$RemapCmd[$RemapCount] = "ndInputNewDuplicator";
|
||||
$RemapCount++;
|
||||
|
||||
|
||||
$RemapName[$RemapCount] = "Send /FillWrench";
|
||||
$RemapCmd[$RemapCount] = "ndInputFillWrench";
|
||||
$RemapCount++;
|
||||
|
||||
|
||||
$RemapName[$RemapCount] = "Send /ForcePlant";
|
||||
$RemapCmd[$RemapCount] = "ndInputForcePlant";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Send /ToggleForcePlant";
|
||||
$RemapCmd[$RemapCount] = "ndInputToggleForcePlant";
|
||||
$RemapCount++;
|
||||
|
||||
|
||||
$RemapName[$RemapCount] = "Send /MirrorX";
|
||||
$RemapCmd[$RemapCount] = "ndInputMirrorX";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Send /MirrorY";
|
||||
$RemapCmd[$RemapCount] = "ndInputMirrorY";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Send /MirrorZ";
|
||||
$RemapCmd[$RemapCount] = "ndInputMirrorZ";
|
||||
$RemapCount++;
|
||||
@ -55,11 +50,17 @@ function ndRegisterKeybinds()
|
||||
$RemapName[$RemapCount] = "Send /SuperCut (Shift-Ctrl X)";
|
||||
$RemapCmd[$RemapCount] = "ndInputSuperCut";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Send /FillBricks (Shift-Ctrl V)";
|
||||
$RemapCmd[$RemapCount] = "ndInputFillBricks";
|
||||
$RemapCount++;
|
||||
|
||||
$RemapName[$RemapCount] = "Send /NextBox (Ctrl-Up)";
|
||||
$RemapCmd[$RemapCount] = "ndInputNextBox";
|
||||
$RemapCount++;
|
||||
$RemapName[$RemapCount] = "Send /PrevBox (Ctrl-Down)";
|
||||
$RemapCmd[$RemapCount] = "ndInputPrevBox";
|
||||
$RemapCount++;
|
||||
|
||||
$ND::KeybindsRegistered = true;
|
||||
}
|
||||
|
||||
@ -72,10 +73,8 @@ function clientCmdNdEnableKeybinds(%bool)
|
||||
|
||||
if(MoveMap.getBinding("ndInputCopy") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "ctrl c" : "cmd c", "ndInputCopy");
|
||||
|
||||
if(MoveMap.getBinding("ndInputPaste") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "ctrl v" : "cmd v", "ndInputPaste");
|
||||
|
||||
//if(MoveMap.getBinding("ndInputPaste") $= "")
|
||||
// %map.bind("keyboard", isWindows() ? "ctrl v" : "cmd v", "ndInputPaste");
|
||||
if(MoveMap.getBinding("ndInputCut") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "ctrl x" : "cmd x", "ndInputCut");
|
||||
|
||||
@ -84,10 +83,14 @@ function clientCmdNdEnableKeybinds(%bool)
|
||||
|
||||
if(MoveMap.getBinding("ndInputSuperCut") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "shift-ctrl x" : "shift-cmd x", "ndInputSuperCut");
|
||||
|
||||
if(MoveMap.getBinding("ndInputFillBricks") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "shift-ctrl v" : "shift-cmd v", "ndInputFillBricks");
|
||||
|
||||
if(MoveMap.getBinding("ndInputNextBox") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "ctrl up" : "cmd up", "ndInputNextBox");
|
||||
if(MoveMap.getBinding("ndInputPrevBox") $= "")
|
||||
%map.bind("keyboard", isWindows() ? "ctrl down" : "cmd down", "ndInputPrevBox");
|
||||
|
||||
%map.push();
|
||||
$ND::KeybindsEnabled = true;
|
||||
}
|
||||
@ -102,7 +105,7 @@ function clientCmdNdEnableKeybinds(%bool)
|
||||
//Input handlers
|
||||
function ndInputNewDuplicator (%bool) {if(!%bool)return; commandToServer('newDuplicator' );}
|
||||
function ndInputCopy (%bool) {if(!%bool)return; commandToServer('ndCopy' );}
|
||||
function ndInputPaste (%bool) {if(!%bool)return; commandToServer('ndPaste' );}
|
||||
//function ndInputPaste (%bool) {if(!%bool)return; commandToServer('ndPaste' );}
|
||||
function ndInputCut (%bool) {if(!%bool)return; commandToServer('ndCut' );}
|
||||
function ndInputFillWrench (%bool) {if(!%bool)return; commandToServer('fillWrench' );}
|
||||
function ndInputForcePlant (%bool) {if(!%bool)return; commandToServer('forcePlant' );}
|
||||
@ -112,5 +115,7 @@ function ndInputMirrorY (%bool) {if(!%bool)return; commandToServer('mirr
|
||||
function ndInputMirrorZ (%bool) {if(!%bool)return; commandToServer('mirrorZ' );}
|
||||
function ndInputSuperCut (%bool) {if(!%bool)return; commandToServer('superCut' );}
|
||||
function ndInputFillBricks (%bool) {if(!%bool)return; commandToServer('fillBricks' );}
|
||||
function ndInputNextBox (%bool) {if(!%bool)return; commandToServer('nextBox' );}
|
||||
function ndInputPrevBox (%bool) {if(!%bool)return; commandToServer('prevBox' );}
|
||||
|
||||
function ndInputMultiSelect(%bool) {commandToServer('ndMultiSelect', %bool);}
|
||||
|
Reference in New Issue
Block a user