Add the Pivot Assist widget

Part of #525
This commit is contained in:
Keavon Chambers
2022-08-29 00:07:38 -07:00
parent 41c137ed1b
commit 0f6f3be6e7
10 changed files with 199 additions and 4 deletions
@@ -612,6 +612,12 @@ export class TextLabel extends WidgetProps {
multiline!: boolean;
}
export type PivotPosition = "None" | "TopLeft" | "TopCenter" | "TopRight" | "CenterLeft" | "Center" | "CenterRight" | "BottomLeft" | "BottomCenter" | "BottomRight";
export class PivotAssist extends WidgetProps {
position!: PivotPosition;
}
// WIDGET
const widgetSubTypes = [
@@ -631,6 +637,7 @@ const widgetSubTypes = [
{ value: TextButton, name: "TextButton" },
{ value: TextInput, name: "TextInput" },
{ value: TextLabel, name: "TextLabel" },
{ value: PivotAssist, name: "PivotAssist" },
];
export type WidgetPropsSet = InstanceType<typeof widgetSubTypes[number]["value"]>;