Clothingclass
Describes an item of clothing and implicitly which other items it can be worn with
Constructors1
Showing 1 constructors
public Clothing()
No results match this filter.
Methods5
Showing 5 methods
public bool CanBeWornWith(Sandbox.Clothing target)
Return true if this item of clothing can be worn with the target item, at the same time.
| Parameter | Type | Description |
|---|---|---|
| target | Clothing | — |
bool—public static System.Collections.Generic.List`1<Sandbox.SceneModel> DressSceneObject(Sandbox.SceneModel citizen, System.Collections.Generic.IEnumerable`1<Sandbox.Clothing> Clothing)
Obsolete: We should be using Scene/Components now
| Parameter | Type | Description |
|---|---|---|
| citizen | SceneModel | — |
| Clothing | IEnumerable<Clothing> | — |
public bool HasPermissions()
Can we wear this item?
bool—No results match this filter.
Properties29
Showing 29 properties
public bool Sandbox.Clothing.AllowTintSelect { get; set; }
bool—public Sandbox.Clothing.ClothingCategory Sandbox.Clothing.Category { get; set; }
What kind of clothing this is?
public System.Collections.Generic.Dictionary`2<string,string> Sandbox.Clothing.ConditionalModels { get; set; }
A list of conditional models. (key) = tag(s), (value) = model
Dictionary<string,string>—public string Sandbox.Clothing.EyesMaterial { get; set; }
Replace the eyes with this material
string—public bool Sandbox.Clothing.HasHumanSkin { get; set; }
bool—public float Sandbox.Clothing.HeelHeight { get; set; }
Do we need to lift the heel up?
float—public Sandbox.Clothing.BodyGroups Sandbox.Clothing.HideBody { get; set; }
Which body parts of the player model should not show when this clothing is equipped.
public string Sandbox.Clothing.HumanAltFemaleModel { get; set; }
The model to bonemerge to the human player when this clothing is equipped.
string—public string Sandbox.Clothing.HumanAltModel { get; set; }
The model to bonemerge to the human player when this clothing is equipped.
string—public string Sandbox.Clothing.HumanEyesMaterial { get; set; }
Replace skin with this
string—public ulong Sandbox.Clothing.HumanSkinBodyGroups { get; set; }
Bodygroup on the model to choose
ulong—public string Sandbox.Clothing.HumanSkinMaterial { get; set; }
Replace skin with this
string—public string Sandbox.Clothing.HumanSkinMaterialGroup { get; set; }
Bodygroup on the model to choose
string—public string Sandbox.Clothing.HumanSkinModel { get; set; }
Model to replace the human skin with
string—public Sandbox.TagSet Sandbox.Clothing.HumanSkinTags { get; set; }
Allows adding tags for this skin, ie "female". This affects which alternative clothing models are used with it.
public string Sandbox.Clothing.MaterialGroup { get; set; }
Which material group of the model to use.
string—public string Sandbox.Clothing.Model { get; set; }
The model to bonemerge to the player when this clothing is equipped.
string—public Sandbox.Clothing Sandbox.Clothing.Parent { get; set; }
The clothing to parent this too. It will be displayed as a variation of its parent
Obsolete: This API member is obsolete.
public string Sandbox.Clothing.SkinMaterial { get; set; }
Replace the skin with this material
string—public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsOver { get; set; }
Which slots this clothing takes on "outer" layer.
public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsUnder { get; set; }
Which slots this clothing takes on "inner" layer.
public System.Nullable`1<int> Sandbox.Clothing.SteamItemDefinitionId { get; set; }
The Steam Item Definition ID for this clothing item, if it's an inventory item
Nullable<int>—public string Sandbox.Clothing.SubCategory { get; set; }
This should be a single word to describe the subcategory, and should match any other items you want to categorize in the same bunch. The work will be tokenized so it can become localized.
Obsolete: This API member is obsolete.
string—public string Sandbox.Clothing.Subtitle { get; set; }
A subtitle for this clothing piece.
string—public string Sandbox.Clothing.Tags { get; set; }
string—public float Sandbox.Clothing.TintDefault { get; set; }
float—No results match this filter.