Basic Text

Initialise a new instance of BasicBB to start building a block.

const basicBB = new BasicBB();

Add text with the addText function, specifying a Language with the Languages Enum, if the text needs to be translated to different languages, do addText for each language. Here the text added is the result of the calculation done earlier

basicBB.addText(Languages.ENGLISH, `${resultNumber}!`);

Last updated