Line 444: |
Line 444: |
| | | |
| ===Custom pants=== | | ===Custom pants=== |
− | {{/doc status|[[Modding:Items]]|done=false}} | + | {{/doc status|[[Modding:Items#Pants]]|done=true}} |
| | | |
− | You can now create/edit [[Tailoring#Pants|pants]] by editing the new <samp>Data/Pants</samp> asset, which replaces <samp>Data/clothingInformation</samp>. This consists of a string → model lookup, where... | + | You can now create/edit [[Tailoring#Pants|pants]] by editing the new <samp>Data/Pants</samp> asset, which replaces <samp>Data/clothingInformation</samp>. |
− | * The key is the unqualified [[#Custom items|item ID]].
| |
− | * The value is a model with the fields listed below.
| |
− | | |
− | ====Basic pants data====
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <samp>Name</samp>
| |
− | | ''(Optional)'' The internal name for the item. Default <samp>Pants</samp>.
| |
− | |-
| |
− | | <samp>DisplayName</samp><br /><samp>Description</samp>
| |
− | | ''(Optional)'' A [[Modding:Tokenizable strings|tokenizable string]] for the item's in-game display name and description. Defaults to the generic pants text (''Pants'' and ''A wearable pair of pants'').
| |
− | |-
| |
− | | <samp>Price</samp>
| |
− | | ''(Optional)'' The default price when the item is sold to the player in a shop. Default 50.
| |
− | |}
| |
− | | |
− | ====Appearance====
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <samp>Texture</samp>
| |
− | | The asset name for the texture containing the pants' sprite. Defaults to <samp>Characters/Farmer/pants</samp>.
| |
− | |-
| |
− | | <samp>SpriteIndex</samp>
| |
− | | The pants' sprite index within the <samp>Texture</samp>, where 0 is the top-left set.
| |
− | |-
| |
− | | <samp>DefaultColor</samp>
| |
− | | ''(Optional)'' The dye color to apply to the sprite when the player hasn't [[dyeing|dyed]] it yet, if any. See [[#Color fields|color format]]. Default <samp>255 235 203</samp> (which matches the color of the cloth item).
| |
− | |-
| |
− | | <samp>CanBeDyed</samp>
| |
− | | ''(Optional)'' Whether the player can [[dyeing|dye]] these pants. Default false.
| |
− | |-
| |
− | | <samp>IsPrismatic</samp>
| |
− | | ''(Optional)'' Whether the pants continuously shift colors. This overrides <samp>DefaultColor</samp> and <samp>CanBeDyed</samp> if set. Default false.
| |
− | |}
| |
− | | |
− | ====Other====
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <samp>CanChooseDuringCharacterCustomization</samp>
| |
− | | ''(Optional)'' Whether these pants can be selected on the character customization screen (e.g. when creating a character). Default false.
| |
− | |-
| |
− | | <samp>CustomFields</samp>
| |
− | | The [[#Custom data fields|custom fields]] for this entry.
| |
− | |}
| |
| | | |
| ===Custom shirts=== | | ===Custom shirts=== |