fixed pixel to use new callback system
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
datablock fxDTSBrickData(LogicGate_XNOR_Data : LogicGate_OR_Data)
|
||||
{
|
||||
uiName = "1x2f XNOR";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f XNOR";
|
||||
logicUIName = "XNOR";
|
||||
logicUIDesc = "C is true if A and B are both true or both false";
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate((gate.ports[1].state and gate.ports[2].state) or (not gate.ports[1].state and not gate.ports[2].state)) end";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_XNOR_Data");
|
||||
datablock fxDTSBrickData(LogicGate_XNOR_Data : LogicGate_OR_Data)
|
||||
{
|
||||
uiName = "1x2f XNOR";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f XNOR";
|
||||
logicUIName = "XNOR";
|
||||
logicUIDesc = "C is true if A and B are both true or both false";
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate((gate.ports[1].state and gate.ports[2].state) or (not gate.ports[1].state and not gate.ports[2].state)) end";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_XNOR_Data");
|
||||
|
||||
Reference in New Issue
Block a user