aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-04-14 18:32:27 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-04-14 18:32:27 -0500
commit15316764dfcc1d230efdc6cd2f2f0bd47be3efd8 (patch)
tree1d3330a863fc88bba4e81a7801c101d915aa6d2b /src/client/documents/Documents.ts
parente7469b5454acd59238dfeb5a7e023a591a23d852 (diff)
add on finish button and change button drag out
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index e6f3b21ca..aea4867cd 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -648,7 +648,12 @@ export namespace Docs {
}
export function ButtonDocument(options?: DocumentOptions) {
- return InstanceFromProto(Prototypes.get(DocumentType.BUTTON), undefined, { ...(options || {}), "onClick-rawScript": "-script-" });
+ const btn = InstanceFromProto(Prototypes.get(DocumentType.BUTTON), undefined, { ...(options || {}), "onClick-rawScript": "-script-" });
+ btn.layoutKey = "layout_onClick";
+ btn.height = 250;
+ btn.width = 200;
+ btn.layout_onClick = ScriptingBox.LayoutString("onClick");
+ return btn;
}
export function SliderDocument(options?: DocumentOptions) {