add argument to fillbricks to bypass confirmation dialog
This commit is contained in:
parent
93d385e859
commit
dc7f27512a
@ -359,7 +359,7 @@ function serverCmdNdConfirmSuperCut(%client)
|
|||||||
function serverCmdSC(%client){serverCmdSuperCut(%client);}
|
function serverCmdSC(%client){serverCmdSuperCut(%client);}
|
||||||
|
|
||||||
//Fill volume with bricks
|
//Fill volume with bricks
|
||||||
function serverCmdFillBricks(%client, %subsetname)
|
function serverCmdFillBricks(%client, %conf, %subsetname)
|
||||||
{
|
{
|
||||||
if($Pref::Server::ND::FillBricksAdminOnly && !%client.isAdmin)
|
if($Pref::Server::ND::FillBricksAdminOnly && !%client.isAdmin)
|
||||||
{
|
{
|
||||||
@ -386,12 +386,16 @@ function serverCmdFillBricks(%client, %subsetname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
%client.NDFillBrickSubset = (%subsetname !$= "") ? ndLookupSubsetName(%subsetname) : $ND::SubsetDefault;
|
%client.NDFillBrickSubset = (%subsetname !$= "") ? ndLookupSubsetName(%subsetname) : $ND::SubsetDefault;
|
||||||
|
|
||||||
commandToClient(%client, 'messageBoxOkCancel', "New Duplicator | /FillBricks",
|
if(%conf) {
|
||||||
"/FillBricks will first do a Supercut\nbefore placing bricks, to fix overlap." @
|
serverCmdNdConfirmFillBricks(%client, %subsetname);
|
||||||
"\n\nSupercut is destructive and does\nNOT support undo at this time." @
|
} else {
|
||||||
"\n\nPlease make sure the box is correct,\nthen press OK below to continue.",
|
commandToClient(%client, 'messageBoxOkCancel', "New Duplicator | /FillBricks",
|
||||||
'ndConfirmFillBricks');
|
"/FillBricks will first do a Supercut\nbefore placing bricks, to fix overlap." @
|
||||||
|
"\n\nSupercut is destructive and does\nNOT support undo at this time." @
|
||||||
|
"\n\nPlease make sure the box is correct,\nthen press OK below to continue.",
|
||||||
|
'ndConfirmFillBricks');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Confirm fill volume with bricks
|
//Confirm fill volume with bricks
|
||||||
@ -434,8 +438,8 @@ function serverCmdNdConfirmFillBricks(%client, %subsetname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Alternative short command
|
//Alternative short command
|
||||||
function serverCmdFB(%client){serverCmdFillBricks(%client);}
|
function serverCmdFB (%client, %conf) { serverCmdFillBricks(%client, %conf); }
|
||||||
function serverCmdFBW(%client) { serverCmdFillBricks(%client, "LogicWire"); }
|
function serverCmdFBW(%client, %conf) { serverCmdFillBricks(%client, %conf, "LogicWire"); }
|
||||||
|
|
||||||
|
|
||||||
//MultiSelect toggle (ctrl)
|
//MultiSelect toggle (ctrl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user