Class StandardWindow

Class used to create standard UI for the mod's machines. UI.StandardWindow is a UI.WindowGroup that has three windows with names "main", "inventory" and "header". They represent custom window contents, player's inventory and window's header respectively.

2.0.4b40

Hierarchy (view full)

Constructors

Methods

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

    Parameters

    • time: number

      current time in milliseconds

    Returns void

  • 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
    
  • Turns debug mode for the window on and off.

    Parameters

    • enabled: boolean

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

    Returns void

Properties

closeOnBackPressed: boolean

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