ProtectedconstructorOptionalisInternalConstructor: booleanProtected_buttonThe layout that holds the button elements.
Protected_contentThe main UI layout.
Protected_customThe layout that holds the custom element.
Protected_flexibleProtected_iconThe displayed icon.
Protected_isProtected_mainThe main UI layout.
Protected_messageThe main message.
Protected_messageLabel that displays the message.
Protected_secondaryThe secondary message.
Protected_secondaryLabel that displays the secondary message.
Protected_showProtected_typeType of the dialog box.
ReadonlyinitialThe initial title of the message box.
Callback executed when the user pressed button, or enter/escape are pressed.
Static ReadonlykStatic ReadonlykStatic ReadonlykStatic ReadonlykThe default window content padding to be used for modal windows.
Static ReadonlykThe default window padding to be used for modal windows.
Returns the height of the content area of the window, in points. The content area represents the area of the window not including the title bar and the border.
Returns the height of the content area of the window, in pixels. The content area represents the area of the window not including the title bar and the border.
Returns the width of the content area of the window, in points. The content area represents the area of the window not including the title bar and the border.
Returns the width of the content area of the window, in pixels. The content area represents the area of the window not including the title bar and the border.
Returns the DPI scale factor.
Sets the height of the window in points.
Sets the height of the window in pixels.
Check whether the window was destroyed.
Checks whether the window currently has keyboard focus.
Gets the key window which owns this window.
Returns the X position of the window in screen coordinates in points.
Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.
Gets the parent EditorWindow.
Gets the RenderWindow associated with this EditorWindow.
Specifies the global shortcut context. This context will be always enabled as long as the window is active.
Shows the remember my choice option to the user.
This feature is not compatible with custom elements that can be added to a message box using setCustomElement. If a custom element is set, it will be removed.
Changes the text in the modal window title bar.
Returns the X position of the window in screen coordinates in points.
Sets the width of the window in points.
Sets the width of the window in pixels.
ProtectedautoTriggered when one of the dialog box buttons was clicked.
Type of the button that was clicked.
ProtectedonProtectedonProtectedonVirtualMethod to override to implement initialization of custom windows. Called by the engine after window creation.
VirtualAdds a custom element to the message box.
The element to add to the message box.
OptionaloverflowScroll: booleanIf set, the element will be added to a scroll area if the height overflows The maximum height of the dialog box.
StaticconstructOpens a ModalWindow of the specified type.
The type of the ModalWindow to open.
OptionalmodalOptions: EnumValue<ModalWindowOption, number>OptionalparentWindow: KeyWindowBase | EditorWindowOptionalwindowOptions: anyProtected StaticconstructConstructs the Modal from script.
The base class for a message window containing a title, a message and a set of buttons. Allows an easy way to query and inform the user. When the user click a button, an optional user callback is called and the window is closed.