add vertical bus bricks; delete redundant diode bricks

This commit is contained in:
Redo0
2021-05-22 17:58:13 -05:00
parent de586ff608
commit ce07ef3263
1041 changed files with 965928 additions and 1235 deletions

View File

@@ -0,0 +1,69 @@
datablock fxDtsBrickData(Enabler2BitDown){
brickFile = $LuaLogic::Path @ "bricks/gen/newbricks/Enabler 2 Bit Down.blb";
iconName = $LuaLogic::Path @ "bricks/gen/newicons/Enabler 2 Bit Down";
category = "Logic Bricks";
subCategory = "Bus";
uiName = "Enabler 2 Bit Down";
logicUIName = "Enabler 2 Bit Down";
logicUIDesc = "";
hasPrint = 1;
printAspectRatio = "Logic";
logicBrickSize = "2 1 1";
orientationFix = 3;
isLogic = true;
isLogicGate = true;
isLogicInput = false;
logicInit = "";
logicInput = "";
logicUpdate =
"return function(gate) " @
" if Gate.getportstate(gate, 5) then " @
" Gate.setportstate(gate, 3, Gate.getportstate(gate, 1)) " @
" Gate.setportstate(gate, 4, Gate.getportstate(gate, 2)) " @
" else " @
" Gate.setportstate(gate, 3, false) " @
" Gate.setportstate(gate, 4, false) " @
" end " @
"end"
;
logicGlobal = "";
numLogicPorts = 5;
logicPortType[0] = 1;
logicPortPos[0] = "1 0 0";
logicPortDir[0] = 4;
logicPortUIName[0] = "In0";
logicPortCauseUpdate[0] = true;
logicPortType[1] = 1;
logicPortPos[1] = "-1 0 0";
logicPortDir[1] = 4;
logicPortUIName[1] = "In1";
logicPortCauseUpdate[1] = true;
logicPortType[2] = 0;
logicPortPos[2] = "1 0 0";
logicPortDir[2] = 5;
logicPortUIName[2] = "Out0";
logicPortType[3] = 0;
logicPortPos[3] = "-1 0 0";
logicPortDir[3] = 5;
logicPortUIName[3] = "Out1";
logicPortType[4] = 1;
logicPortPos[4] = "1 0 0";
logicPortDir[4] = 2;
logicPortUIName[4] = "Clock";
logicPortCauseUpdate[4] = true;
};