Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IconDrawable

Classes

Class: IconDrawable

Extends Drawablebase

IconDrawable

A IconDrawable is a drawable that can display one or multiple textures. Textures can be added, assigned a key, or cleared entirely.

Method: AddTexture

(method) IconDrawable:AddTexture(filename: string)

Adds a texture to the IconDrawable.

@param filename — The path to the texture file.

Method: AddTextureWithInfo

(method) IconDrawable:AddTextureWithInfo(filename: string, key: string)

Adds a texture with a specific key to the IconDrawable.

@param filename — The path to the texture file.

@param key — The key information for the texture.

Method: ClearAllTextures

(method) IconDrawable:ClearAllTextures()

Clears all textures from the IconDrawable.