Skip to content

CTPatch

Type

CTPatch

A single patch in a composite texture. See TEXTURE1 and TEXTURE2 for more information.

Derived Types

The following types inherit all CTPatch properties and functions:

Properties

Property Type Description
name string The name of the patch
offsetX integer The horizontal offset of the patch (from the left of the texture)
offsetY integer The vertical offset of the patch (from the top of the texture)

Constructors

No Constructors

This type can not be created directly in scripts.

See:

Functions

Overview

PatchEntry(parent) -> ArchiveEntry AsExtended() -> CTPatchEx


PatchEntry

Parameters

  • parent (Archive): The parent archive (can be nil)

Returns

Notes

Entries in the given parent archive will be prioritised when searching if it is not nil.


AsExtended

Casts to a CTPatchEx, if it is one.

Returns