Dialog
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
A modal window your code opens over another and waits on for an answer.
A Window parented under a Window opens as its owned window: it stays above it and is minimised and closed with it. A Dialog also blocks that window's input while it is open. ShowAsync opens it centred and waits until Finish gives a result, or nil if it is closed. For a plain question, every Window has ConfirmAsync, with no Dialog to build.
Made with Instance.new("Dialog") or Clone().
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Modal | boolean | True by default: while it is open, the window it belongs to takes no input. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| ShowAsync yields | () | any | Opens centred on the window it belongs to and waits until Finish gives a result, or returns nil when the dialog is closed. |
| Finish | (result: any) | () | Ends the wait of ShowAsync, which returns this result. |
From Window 34
TitleIconSizeMinSizePositionStateResizableAlwaysOnTopBackgroundColorSaveKeyDpiScaleFocusedFocusedObjectMousePositionMenuBarSizeChangedCloseRequestedClosedFocusChangedDpiChangedInputBeganInputEndedFilesDroppedFocusFlashNotifyCloseIsKeyDownSetClipboardGetClipboardAsyncConfirmAsyncPickFolderAsyncPickFilesAsyncPickSaveFileAsync
From ScreenItem 2
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
