21 lines
511 B
TypeScript
21 lines
511 B
TypeScript
// UE/TextBlock.ts
|
|
|
|
import { Name } from '#root/UE/Name.ts';
|
|
import type { Text } from '#root/UE/Text.ts';
|
|
import { TextLayoutWidget } from '#root/UE/TextLayoutWidget.ts';
|
|
import { UEObject } from '#root/UE/UEObject.ts';
|
|
|
|
export class TextBlock extends TextLayoutWidget {
|
|
private text: Text = '' as Text;
|
|
|
|
constructor(outer: UEObject | null = null, name: Name | string = Name.NONE) {
|
|
super(outer, name);
|
|
|
|
console.log(this.text);
|
|
}
|
|
|
|
public SetText(text: Text): void {
|
|
this.text = text;
|
|
}
|
|
}
|