reuse icons and blbs to remove some content

This commit is contained in:
Redo
2025-01-13 01:55:54 -07:00
parent a25f184c94
commit 38ad0d3058
942 changed files with 1502 additions and 693568 deletions

View File

@@ -21,32 +21,10 @@ datablock fxDtsBrickData(LogicGate_Adder8Bit_Data){
logicInit = "";
logicInput = "";
logicUpdate =
"return function(gate) " @
"local val = ( " @
" ( Gate.getportstate(gate, 1) + Gate.getportstate(gate, 9) + Gate.getportstate(gate, 25)) " @
" + ((Gate.getportstate(gate, 2) + Gate.getportstate(gate, 10)) * 2) " @
" + ((Gate.getportstate(gate, 3) + Gate.getportstate(gate, 11)) * 4) " @
" + ((Gate.getportstate(gate, 4) + Gate.getportstate(gate, 12)) * 8) " @
" + ((Gate.getportstate(gate, 5) + Gate.getportstate(gate, 13)) * 16) " @
" + ((Gate.getportstate(gate, 6) + Gate.getportstate(gate, 14)) * 32) " @
" + ((Gate.getportstate(gate, 7) + Gate.getportstate(gate, 15)) * 64) " @
" + ((Gate.getportstate(gate, 8) + Gate.getportstate(gate, 16)) * 128) " @
") " @
"if val >= 256 then val = val-256; Gate.setportstate(gate, 26, 1); else Gate.setportstate(gate, 26, 0) end " @
"if val >= 128 then val = val-128; Gate.setportstate(gate, 24, 1); else Gate.setportstate(gate, 24, 0) end " @
"if val >= 64 then val = val-64; Gate.setportstate(gate, 23, 1); else Gate.setportstate(gate, 23, 0) end " @
"if val >= 32 then val = val-32; Gate.setportstate(gate, 22, 1); else Gate.setportstate(gate, 22, 0) end " @
"if val >= 16 then val = val-16; Gate.setportstate(gate, 21, 1); else Gate.setportstate(gate, 21, 0) end " @
"if val >= 8 then val = val-8; Gate.setportstate(gate, 20, 1); else Gate.setportstate(gate, 20, 0) end " @
"if val >= 4 then val = val-4; Gate.setportstate(gate, 19, 1); else Gate.setportstate(gate, 19, 0) end " @
"if val >= 2 then val = val-2; Gate.setportstate(gate, 18, 1); else Gate.setportstate(gate, 18, 0) end " @
"if val >= 1 then val = val-1; Gate.setportstate(gate, 17, 1); else Gate.setportstate(gate, 17, 0) end " @
"end"
;
logicUpdate = "";
logicGlobal = "";
numLogicPorts = 26;
numLogicPorts = 27;
@@ -196,6 +174,11 @@ datablock fxDtsBrickData(LogicGate_Adder8Bit_Data){
logicPortPos[25] = "-15 -1 0";
logicPortDir[25] = 0;
logicPortUIName[25] = "COut";
logicPortCauseUpdate[25] = true;
logicPortType[26] = 1;
logicPortPos[26] = "-15 1 0";
logicPortDir[26] = 0;
logicPortUIName[26] = "InvB";
logicPortCauseUpdate[26] = true;
};