Table of Contents

Class SkinnablePart

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

A part that is applied to player's shape, voice or textures during customization Open in GitHub

[DocumentAsJson]
public class SkinnablePart
Inheritance
SkinnablePart

Fields

Code (Required)

Unique code of the skin part. Used in translation together with skinpart- as prefix, e.g. skinpart-baseskin

[DocumentAsJson("Required", "", false)]
public string Code

Field Value

string

Colbreak (Optional) (Default: False)

Moves the next skin part after this one to the right side of the customization UI

[DocumentAsJson("Optional", "False", false)]
public bool Colbreak

Field Value

bool

DisableElements (Optional) (Default: None)

Disables listed shape elements in entity shape when this skin part is applied

[DocumentAsJson("Optional", "None", false)]
public string[] DisableElements

Field Value

string[]

Hidden (Optional) (Default: False)

Hides the skin part option in the customization UI

[DocumentAsJson("Optional", "False", false)]
public bool Hidden

Field Value

bool

ShapeTemplate (Optional) (Default: None)

The part shape that is applied to entity shape. Only works with Type set to Shape

[DocumentAsJson("Optional", "None", false)]
public CompositeShape ShapeTemplate

Field Value

CompositeShape

TextureRenderTo (Optional) (Default: None)

The offset of texture from TextureTarget. Only works with Type set to Texture

[DocumentAsJson("Optional", "None", false)]
public Vec2i TextureRenderTo

Field Value

Vec2i

TextureTarget (Optional) (Default: None)

The main texture code to which the texture defined in TextureTemplate will be applied to. Only works with Type set to Texture

[DocumentAsJson("Optional", "None", false)]
public string TextureTarget

Field Value

string

TextureTemplate (Optional) (Default: None)

The texture path applied to the main texture. Only works with Type set to Texture

[DocumentAsJson("Optional", "None", false)]
public AssetLocation TextureTemplate

Field Value

AssetLocation

Type (Optional) (Default: EnumSkinnableType.Shape)

A type of the skin part

[DocumentAsJson("Optional", "EnumSkinnableType.Shape", false)]
public EnumSkinnableType Type

Field Value

EnumSkinnableType

UseDropDown (Optional) (Default: False)

Uses dropdown instead of icon grid for choosing this skin part in customization UI. Only works with Type set to Texture

[DocumentAsJson("Optional", "False", false)]
public bool UseDropDown

Field Value

bool