Skip to content

CTPatchEx

Type

CTPatchEx

An extended composite texture patch, with extra properties for use in ZDoom's TEXTURES lump.

Inherits CTPatch

All properties and functions of CTPatch can be used in addition to those below.

Constants

Name Value
TYPE_PATCH 0
TYPE_GRAPHIC 1
BLENDTYPE_NONE 0
BLENDTYPE_TRANSLATION 1
BLENDTYPE_BLEND 2
BLENDTYPE_TINT 3

Properties

Property Type Description
flipX boolean If true, the patch will be flipped horizontally
flipY boolean If true, the patch will be flipped vertically
useOffsets boolean If true, the patch graphic's offsets will be used in addition to the offsetX and offsetY properties (see CTPatch)
rotation integer The rotation of the patch in degrees. Only supports right angles (0, 90, 180, 270)
colour Colour The blend colour to use. Only applicable if blendType is Blend or Tint
alpha float The translucency of the patch, from 0.0 (invisible) to 1.0 (opaque)
style string The style of translucency to use, if alpha is < 1.0
blendType integer The type of colour blend to use for this patch (see BLENDTYPE_ constants). This combines the Translation and Blend properties for ZDoom TEXTURES patches, since they are mutually exclusive. If the blend type is set to BLENDTYPE_TINT, the alpha value of colour is used to specify the tint amount
translation Translation The colour translation to use if blendType is set to Translation

Constructors

No Constructors

This type can not be created directly in scripts.

See:

Functions

Overview

AsText() -> string


AsText

Gets the ZDoom TEXTURES format text definition for this patch.

Returns

  • string: A text representation of the patch