QtCraft API C++ classes QML types Handbook

QcAppearanceLayer Struct

Texture for one slot of a model. More...

Header: #include <common/content/mobs/QcAppearanceDefinition.h>

Public Variables

QString slot
QString texture
QcTint tint
enum class QcTint { None, Skin, Hair, Shirt, Pants, Collar }

Detailed Description

Member Variable Documentation

QString QcAppearanceLayer::slot

Slot the texture covers (the key in "layers").

QString QcAppearanceLayer::texture

Content name of the texture ("texture").

QcTint QcAppearanceLayer::tint

Colour the texture is multiplied with ("tint": none, skin, hair, shirt or pants).

Related Non-Members

enum class QcTint

Colour a texture is multiplied with: one of the player's chosen colours, or none.

Collar is the collar of a tame creature (only on creature model parts, QcMobPart::tint; decision E-480), which travels in the shirt colour of the creature's appearance.

ConstantValueDescription
QcAppearanceLayer::QcTint::None0the texture as it is
QcAppearanceLayer::QcTint::Skin1the skin colour
QcAppearanceLayer::QcTint::Hair2the hair colour
QcAppearanceLayer::QcTint::Shirt3the shirt colour
QcAppearanceLayer::QcTint::Pants4the pants colour
QcAppearanceLayer::QcTint::Collar5a tame creature's collar colour