Class TabbedWindow

Class used to create windows with multiple tabs.

Implements

Constructors

Methods

  • Called up to 66 times a second to update window's content.

    Parameters

    • time: number

      current time in milliseconds

    Returns void

  • Returns number

    Tab selector window width in global units.

  • Parameters

    • index: number

      index of the tab

    Returns Window

    New UI.Window instance created for the specified tab or null if no window was created for specified window.

  • Forces ui drawables of the window to refresh.

    Parameters

    • onCurrentThread: boolean

      if true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you pass true as the parameter

    Returns void

    onCurrentThread: false
    
  • Forces ui elements of the window to refresh.

    Parameters

    • onCurrentThread: boolean

      if true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you pass true as the parameter

    Returns void

    onCurrentThread: false
    
  • Specifies whether the window should darken and block background.

    Parameters

    • enabled: boolean

      pass true if you want the window to block background

    Returns void

    false
    
  • Turns debug mode for the window on and off.

    Parameters

    • debug: boolean

      if true, additional debug information will be drawn on the window canvas

    Returns void

  • Sets default tab index.

    Parameters

    • tab: number

      index of the tab to be opened by default

    Returns void

  • Sets window location (bounds) to draw window within.

    Parameters

    Returns void

  • Sets new style object as current window's style. If the new style is a different object then an old one, forces window invalidation.

    Parameters

    Returns void

  • Overrides style properties of the current style by the values specified in the style parameter.

    Parameters

    • style: BindingSet

      js object where keys represent binding names and values represent texture gui names

    Returns void

  • Sets content of the tab.

    Parameters

    • index: number

      index of the tab; there are 12 tabs available, from 0 to 11

    • tabOverlay: ElementSet

      content of the tab selector

    • tabContent: WindowContent

      content of the window to be created for the tab

    • isAlwaysSelected: boolean

      if true, tab is always displayed as selected; default value is false

    Returns void

    The location of the tabs is as follows:

    0    6
    1    7
    2    8
    3    9
    4    10
    5    11
    
  • Sets content of the tab.

    Parameters

    • index: number

      index of the tab; there are 12 tabs available, from 0 to 11

    • tabOverlay: ElementSet

      content of the tab selector

    • tabContent: WindowContent

      content of the window to be created for the tab

    Returns void

    The location of the tabs is as follows:

    0    6
    1    7
    2    8
    3    9
    4    10
    5    11
    
  • Sets listener to be notified about tab with specified index opening/closing events.

    Parameters

    Returns void

Properties

closeOnBackPressed: boolean
currentTab: number

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.