ProtectedconstructorOptionalisInternalConstructor: booleanProtected_libraryLibrary browser UI element.
Protected_onAction called when the user choses a location or cancels.
Protected_resourceText box used to enter the resource name.
ProtectedcancelCancel the operation and close the dialog.
ProtectedonTriggered when the user doubleclicks an entry.
ProtectedonTriggered when the browser selection changes.
Static ReadonlydefaultThe default window content padding to be used for modal windows.
Static ReadonlydefaultThe 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.
The main layout of the dialog.
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.
Sets the stylesheet for this window's UI surface.
Sets the stylesheet for this window's UI surface.
Sets the stylesheet for this window's UI surface.
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.
Adds an option to the resource browser window.
The label for the option.
The element to add to the options form.
ProtectedcancelProtectedconfirmProtecteddeleteProtectedgetProtectedgetProtectedmoveProtectedmoveProtectedmoveProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonImplemented by the child class to handle the confirmation action.
If this method returns a null, the operation will be aborted without closing the window.
It is assumed that the child class displays a error or message to the user to inform why
the action was canceled.
If this method returns a valid object of type T, the operation will continue and the onAction handler will be called with the object.
ProtectedonProtectedonInitializes the window content.
OptionalshowProtectedpasteProtectedrenameProtectedsaveProtectedselectStaticconstructOpens 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.
StaticopenOpen the resource browser window.
The parent window.
The title to display on the window bar.
The message to display above the name field.
Optional default name to display in case no initial resource path is available.
Action executed when the user confirms or cancels the operation.
OptionalnameFieldLabel: I18NEditorThe optional text to display next to the name field.
OptionalinitialLibraryPathOrResourceEntry: LibraryIdentifierPath | ResourceEntryThe optional initial library path or ResourceEntry to select.
StaticopenOpen the resource browser window for the specified resourceType.
The resource type.
The parent window.
Action executed when the user confirms or cancels the operation.
OptionalinitialLibraryPathOrResourceEntry: LibraryIdentifierPath | ResourceEntryThe optional initial library path or ResourceEntry to select.
OptionalinitialFilename: string
The SaveNewResourceDialog class provides a ResourceBrowserWindowBase for saving a resource in the library.