Перейти к основному содержанию

UI.TextureSource

Namespace containing methods used to get and add gui textures.

Index

Constructors

Methods

Constructors

constructor

Methods

staticget

  • Parameters

    • name: string

      gui texture name

    Returns Bitmap

    Bitmap instance with the ui texture, if it was loaded, with "missing_texture" texture otherwise.

staticgetNullable

  • getNullable(name: string): Bitmap
  • Parameters

    • name: string

      gui texture name

    Returns Bitmap

    Bitmap instance with the ui texture, if it was loaded, null otherwise.

staticput

  • put(name: string, bitmap: Bitmap): void
  • Adds any bitmap as a gui texture with specified name.


    Parameters

    • name: string

      gui texture name

    • bitmap: Bitmap

      android.graphics.Bitmap instance to be used as gui texture

    Returns void