Class SubdirectoryListDropDownWindow

Drop down window that displays all the possible sub-paths to go in.

Hierarchy (view full)

Constructors

Properties

_isRememberingPosition: boolean
_rememberingPositionKey: string | Type
previousWindowPositions: Map<string | Type, Immutable<Vector2>>
windowContentPadding: RectOffset

The default window content padding to be used for drop down windows.

windowPadding = 15

The default window padding to be used for drop down windows.

Accessors

  • get dpiScale(): number
  • Returns the DPI scale factor.

    Returns number

    The DPI scale is in relation to a 1x base resolution of 75 DPI.

  • get height(): number
  • Sets the height of the window in points.

    Returns number

  • set height(value): void
  • Parameters

    • value: number

    Returns void

  • get heightInPixels(): number
  • Sets the height of the window in pixels.

    Returns number

  • set heightInPixels(value): void
  • Parameters

    • value: number

    Returns void

  • get isDestroyed(): boolean
  • Check whether the window was destroyed.

    Returns boolean

  • get isFocused(): boolean
  • Checks whether the window currently has keyboard focus.

    Returns boolean

  • set isFocused(value): void
  • Parameters

    • value: boolean

    Returns void

  • get keyWindow(): KeyWindowBase
  • Gets the key window which owns this window.

    Returns KeyWindowBase

  • get left(): number
  • Returns the X position of the window in screen coordinates in points.

    Returns number

  • get localShortcutContext(): ShortcutContext
  • Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.

    Returns ShortcutContext

  • get position(): Immutable<Vector2>
  • Determines the position in which the key window is, in screen coordinates.

    Returns Immutable<Vector2>

  • get renderWindow(): RenderWindow
  • Gets the RenderWindow associated with this EditorWindow.

    Returns RenderWindow

  • get shortcutContext(): ShortcutContext
  • Specifies the global shortcut context. This context will be always enabled as long as the window is active.

    Returns ShortcutContext

  • get top(): number
  • Returns the X position of the window in screen coordinates in points.

    Returns number

  • get width(): number
  • Sets the width of the window in points.

    Returns number

  • set width(value): void
  • Parameters

    • value: number

    Returns void

  • get widthInPixels(): number
  • Sets the width of the window in pixels.

    Returns number

  • set widthInPixels(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Centers the window within it's parent window.

    Returns void

  • Virtual

    Called whenever the user or the program requested to close the window.

    Returns void

  • Virtual

    Method to override to implement destruction of custom windows. Called by the engine before the window is destroyed.

    Returns void

  • Virtual

    Method to override to implement custom behavior of a window, called by the engine once per frame.

    Returns void

  • Virtual

    Method to override to implement custom behavior of a window, called by the engine once per frame, once all the windows had their onEditorUpdate() method called.

    Returns void

  • Virtual

    Method to override to implement initialization of custom windows. Called by the engine after window creation.

    Parameters

    • options: {
          childPaths: string[];
          onClickCallback: ((arg0: string) => void);
      }
      • childPaths: string[]
      • onClickCallback: ((arg0: string) => void)
          • (arg0): void
          • Parameters

            • arg0: string

            Returns void

    Returns void

  • Virtual

    Called whenever window visibility changed.

    Parameters

    • isVisible: boolean

    Returns void

    Implementing classes must call super.

  • Virtual

    Triggered whenever the window gains or loses focus.

    Parameters

    • inFocus: boolean

      True if focus was gained, false otherwise.

    Returns void

  • Virtual

    Triggered whenever the window size changes.

    Parameters

    • width: number

      New width of the window in pixels.

    • height: number

      New height of the window in pixels.

    Returns void

  • Defines the window maximum width and height in points.

    Parameters

    • maxWidth: number
    • maxHeight: number

    Returns void

  • Defines the window minimum width and height in points.

    Parameters

    • minWidth: number

      The minimum width of the window in points.

    • minHeight: number

      The minimum height of the window in points.

    Returns void

  • Moves the window on the desktop. Coordinates are in screen space using points.

    Parameters

    • x: number
    • y: number

    Returns void

  • Moves the window on the desktop. Coordinates are in screen space using pixels.

    Parameters

    • x: number
    • y: number

    Returns void

  • Resizes the window using a width and height in points.

    Parameters

    • width: number
    • height: number

    Returns void

  • Resizes the window using a width and height in pixels.

    Parameters

    • width: number
    • height: number

    Returns void

  • Temporary workaround for ScriptDropDownWindow script interface generation that causes compilation issues due to missing methods.

    Returns void

  • Opens a DropDownWindow of the specified type.

    Type Parameters

    Parameters

    • type: Type

      The type of the DropDownWindow to open.

    • keyWindow: KeyWindowBase

      The parent key window, if null, will use the current.

    • dropdownOptions: EnumValueTyped<DropDownWindowOption, number>

      The window options.

    • anchorElement: UIElementBase

      The optional element to anchor the drop down window.

    • anchorPosition: Immutable<Vector2>

      The optional anchor position. If anchorElement is not null, the value is relative to it, otherwise absolute.

    • OptionalparentWindow: EditorWindow

      Optional. A custom parent window of the drop down. Will use the parent from the anchor if null.

    • OptionalwindowOptions: any

      Optional. The window options that will be passed to onInitialize.

    Returns T

    The newly constructed DropDownWindow.

  • Creates a dropdown window to display all sub-paths available in a path.

    Parameters

    • keyWindow: KeyWindowBase

      The KeyWindow to open the dropdown from.

    • anchor: UIElementBase

      UI Element to anchor this dropdown to.

    • childPaths: string[]

      A list of all the sub-directories available to the current path.

    • onClickCallback: ((arg0: string) => void)

      Callback to call when the user clicks in one of the sub-paths.

        • (arg0): void
        • Parameters

          • arg0: string

          Returns void

    • OptionalpositionOffset: Immutable<Vector2>

      Optional. A custom offset for the position of the dropdown.

    Returns SubdirectoryListDropDownWindow

Events

onFocusChangedInternal: Event<[boolean], void>