Line 502: |
Line 502: |
| | | |
| ===Custom shirts=== | | ===Custom shirts=== |
− | {{/doc status|[[Modding:Items]]|done=false}} | + | {{/doc status|[[Modding:Items#Shirts]]|done=true}} |
| | | |
− | You can now create/edit [[Tailoring#Shirts|shirts]] by editing the new <samp>Data/Shirts</samp> asset, which replaces <samp>Data/clothingInformation</samp>. This consists of a string → model lookup, where... | + | You can now create/edit [[Tailoring#Shirts|shirts]] by editing the new <samp>Data/Shirts</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 shirt data====
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <samp>Name</samp>
| |
− | | ''(Optional)'' The internal name for the item. Default <samp>Shirt</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 shirt text (''Shirt'' and ''A wearable shirt'').
| |
− | |-
| |
− | | <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 shirt's sprite. Defaults to <samp>Characters/Farmer/shirts</samp>.
| |
− | |-
| |
− | | <samp>SpriteIndex</samp>
| |
− | | The shirt's 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 none.
| |
− | |-
| |
− | | <samp>CanBeDyed</samp>
| |
− | | ''(Optional)'' Whether the player can [[dyeing|dye]] this shirt. Default false.
| |
− | |-
| |
− | | <samp>IsPrismatic</samp>
| |
− | | ''(Optional)'' Whether the shirt continuously shifts colors. This overrides <samp>DefaultColor</samp> and <samp>CanBeDyed</samp> if set. Default false.
| |
− | |-
| |
− | | <samp>HasSleeves</samp>
| |
− | | ''(Optional)'' Whether to draw shirt sleeves. Default true.
| |
− | |}
| |
− | | |
− | ====Other====
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <samp>CanChooseDuringCharacterCustomization</samp>
| |
− | | ''(Optional)'' Whether this shirt 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 tools=== | | ===Custom tools=== |