githubEdit

Gendered preview icons

This is a sub-page of "your own preview icons" and only contains information on how to hook up gendered variants once you already have the files. If you aren't quite there yet, refer to the other guide first.

Requirements:

This will not work unless your item is using the corresponding suffix. Without it, the game has no way to tell male and female items apart.

  appearanceSuffixes: [ itemsFactoryAppearanceSuffix.Gender ]
circle-info

If you want to know more about this, you can read up here: What are suffixes?

If you don't have a gendered item yet, see the original ArchiveXL guide, section "adding a male instance".

How to do it

By adding an icon property to your item's yaml, you're telling ArchiveXL to create an UIIcon record for you. The generated records will be the same for all genders, variants and tags.

If you want to use a gendered preview picture, you can create a more specific record yourself. In this case, you can delete the icon entry from your item.

Its name will follow this schema:

UIIcon.clothing_ENTITYNAME_APPEARANCENAME_SUFFIXES_VISUALTAGS

Wait, what?

ENTITYNAME, APPEARANCENAME, SUFFIXES and VISUALTAGSabove are placeholders for the corresponeding fields in your YAML.

circle-info

You can look up the actual names of the created records in CET's Tweak Browser and simply copy them to your .yaml

For example, if you have the following item:

โ€ฆ then you'd define a preview image like this:

The trailing underscore separates the empty visual tags from the suffixes entry.

circle-info

Your items won't need an icon record anymore, the assignment now happens by magic!

Last updated