fixed pixel to use new callback system

This commit is contained in:
Redo
2019-05-10 19:59:26 -05:00
parent 7f1c5ea417
commit 5b5231a4b3
70 changed files with 28929 additions and 28935 deletions

View File

@@ -1,37 +1,37 @@
datablock fxDTSBrickData(LogicGate_OR_Data)
{
category = "Logic Bricks";
subCategory = "Gates";
uiName = "1x2f OR";
iconName = $LuaLogic::Path @ "icons/1x2f OR";
brickFile = $LuaLogic::Path @ "bricks/blb/1x2f_2i_1o.blb";
hasPrint = 1;
printAspectRatio = "Logic";
isLogic = 1;
isLogicGate = 1;
logicUIName = "OR";
logicUIDesc = "C is true if A or B are true";
logicUpdate = "return function(gate) gate.ports[3]:setstate(gate.ports[1].state or gate.ports[2].state) end";
numLogicPorts = 3;
logicPortType[0] = 1;
logicPortPos[0] = "0 1 0";
logicPortDir[0] = "0";
logicPortCauseUpdate[0] = true;
logicPortUIName[0] = "A";
logicPortType[1] = 1;
logicPortPos[1] = "0 -1 0";
logicPortDir[1] = "0";
logicPortCauseUpdate[1] = true;
logicPortUIName[1] = "B";
logicPortType[2] = 0;
logicPortPos[2] = "0 -1 0";
logicPortDir[2] = "2";
logicPortUIName[2] = "C";
};
lualogic_registergatedefinition("LogicGate_OR_Data");
datablock fxDTSBrickData(LogicGate_OR_Data)
{
category = "Logic Bricks";
subCategory = "Gates";
uiName = "1x2f OR";
iconName = $LuaLogic::Path @ "icons/1x2f OR";
brickFile = $LuaLogic::Path @ "bricks/blb/1x2f_2i_1o.blb";
hasPrint = 1;
printAspectRatio = "Logic";
isLogic = 1;
isLogicGate = 1;
logicUIName = "OR";
logicUIDesc = "C is true if A or B are true";
logicUpdate = "return function(gate) gate.ports[3]:setstate(gate.ports[1].state or gate.ports[2].state) end";
numLogicPorts = 3;
logicPortType[0] = 1;
logicPortPos[0] = "0 1 0";
logicPortDir[0] = "0";
logicPortCauseUpdate[0] = true;
logicPortUIName[0] = "A";
logicPortType[1] = 1;
logicPortPos[1] = "0 -1 0";
logicPortDir[1] = "0";
logicPortCauseUpdate[1] = true;
logicPortUIName[1] = "B";
logicPortType[2] = 0;
logicPortPos[2] = "0 -1 0";
logicPortDir[2] = "2";
logicPortUIName[2] = "C";
};
lualogic_registergatedefinition("LogicGate_OR_Data");