Object representing window style. Window styles allows to customize the way your windows look like.

Constructors

Methods

  • Adds gui texture name to use for the specified window part.

    Parameters

    • key: string

      binding name

    • name: string

      gui texture name

    Returns void

  • Adds an additional style object to the current style.

    Parameters

    • style: Style

      additional style object to be added

    Returns void

  • Returns Style

    A copy of the current style. Only style bindings of the current style are copied, no parent/additional styles are copied.

  • Gets texture binding bt it's name. Searches first in the additional styles, then in the current style, then in all it's parents.

    Parameters

    • key: string

      binding name

    • fallback: string

      value to return on binding failure

    Returns string

    Ui texture name if current object, additional styles or one of the parents contains such a binding name, fallback otherwise.

  • If name is a style value (starts with "style:"), returns corresponding gui texture name, else returns input string.

    Parameters

    • name: string

      style value or bitmap name

    Returns string

  • Parameters

    • name: string
    • fallback: boolean

    Returns boolean

  • Parameters

    • name: string
    • fallback: number

    Returns number

  • Parameters

    • name: string
    • fallback: number

    Returns number

  • Parameters

    • name: string
    • fallback: number

    Returns number

  • Parameters

    • name: string
    • fallback: string

    Returns string

  • Specifies parent style object for the current style.

    Parameters

    • style: Style

      style to be set as parent

    Returns void

  • Parameters

    • name: string
    • value: any

    Returns void

Properties

CLASSIC: Style

Classic (0.16.*-like) windows style, which also used before legacy version.

DEFAULT: Style

Default windows style.

LEGACY: Style

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