Skip to content

Commit

Permalink
feat: 3d text add get color and charset function
Browse files Browse the repository at this point in the history
  • Loading branch information
dockfries committed Oct 16, 2022
1 parent c7d139f commit 04cc324
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omp-node-lib",
"version": "0.5.8",
"version": "0.5.9",
"description": "Better with omp-node-ts",
"main": "dist/bundle.js",
"types": "dist/bundle.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions src/wrapper/streamer/3dtext/base3DText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ export class Dynamic3DTextLabel {
public isValid(): boolean {
return IsValidDynamic3DTextLabel(this.id);
}
public getColor(): void | string {
if (this.id === -1)
return logger.warn(
"[Streamer3DTextLabel]: Unable to get color before create"
);
return this.sourceInfo.color;
}
public getCharset(): void | string {
if (this.id === -1)
return logger.warn(
"[Streamer3DTextLabel]: Unable to get charset before create"
);
return this.sourceInfo.charset;
}
public getText(): void | string {
if (this.id === -1)
return logger.warn(
Expand Down

0 comments on commit 04cc324

Please sign in to comment.