added serial text brick using ascii characters
This commit is contained in:
@@ -174,11 +174,46 @@ package LuaLogic_Bricks
|
||||
|
||||
parent::onRemove(%this, %brick);
|
||||
}
|
||||
|
||||
|
||||
function fxDtsBrick::setColor(%brick, %color){
|
||||
%data = %brick.getDatablock();
|
||||
if(%data.logicForceColor!$=""){
|
||||
%color = lualogic_getcolor(%data.logicForceColor);
|
||||
}
|
||||
|
||||
parent::setColor(%brick, %color);
|
||||
}
|
||||
|
||||
function fxDtsBrick::setPrint(%brick, %print){
|
||||
%data = %brick.getDatablock();
|
||||
if(%data.logicForcePrint!$=""){
|
||||
%print = lualogic_getprint(%data.logicForcePrint);
|
||||
}
|
||||
|
||||
parent::setPrint(%brick, %print);
|
||||
}
|
||||
|
||||
function fxDtsBrickData::onUse(%data, %player, %slot){
|
||||
parent::onUse(%data, %player, %slot);
|
||||
|
||||
if(isObject(%player.tempBrick)){
|
||||
%brick = %player.tempBrick;
|
||||
|
||||
if(%data.logicForceColor!$=""){
|
||||
%brick.setColor();
|
||||
}else{
|
||||
%brick.setColor(%player.client.currentColor);
|
||||
}
|
||||
if(%data.logicForcePrint!$=""){
|
||||
%brick.setPrint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Player::activateStuff(%this, %a, %b)
|
||||
{
|
||||
parent::activateStuff(%this, %a, %b);
|
||||
|
||||
|
||||
if(isObject(%client = %this.client))
|
||||
{
|
||||
%eye = %this.getEyePoint();
|
||||
|
||||
Reference in New Issue
Block a user