ProtectedconstructorOptionalisInternalConstructor: booleanProtectedonTriggered when the user cancels gradient editing and closes the dialog.
ProtectedonOKTriggered when the user selects a gradient and closes the dialog.
Static 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.
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.
ProtectedonProtectedonProtectedonVirtualMethod to override to implement initialization of custom windows. Called by the engine after window creation.
OptionalgradientOptionalonStaticconstructOpens 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.
StaticopenShows the gradient picker window with a default gradient.
Optional callback to trigger when the user finishes editing the gradient or cancels out of the dialog.
An instance of the gradient picker window.
StaticopenShows the gradient picker window and sets the initial gradient.
Gradient to initially display in the window.
OptionalonClose: ((isSuccess: boolean, gradient: ColorGradient) => void)Optional callback to trigger when the user finishes editing the gradient or cancels out of the dialog.
The gradient picker window.
The GradientEditorWindow implements a ColorGradient editor window that allows the user to add or modify colors from a color gradient.
Note
The color gradient must be specified in sRGB color space as no tone mapping is applied.