Like this.
datablock fxDTSBrickData(brick2x2PictureFrameData)
{
brickFile = "./2x2PictureFrame.blb";
category = "Special";
subCategory = "Decorative";
uiName = "2x2 Picture Frame";
iconName = "Add-Ons/Brick_DecorativeBlocks/2x2PictureFrame";
hasPrint = 1;
printAspectRatio = "2x2f";
};
That will create a print brick in the subcategory 'Decorative'.
The problem:
DUPLICATOR (yes) will only duplicate print bricks, if they are in the subcategory 'Prints'.
So can I grab the datablock with something like
fxdtsbrickdata::onadd(%this, %unknown, %args, %here)Then check
if(%this.hasprint)And if it's true set
%this.subcategory = "Prints";Then continue on with the creation?