Floogen / FashionSense

Stardew Valley framework which allows for bigger accessories, hairstyles and other appearances. Includes animation support and more.
GNU General Public License v3.0
20 stars 16 forks source link

Fix accessory rendering to make drawing behind hair work #11

Closed mus-candidus closed 2 years ago

mus-candidus commented 2 years ago

First of all, FashionSense is great! I tried to use accessory as a secondary hair layer to be able to recolor the sides of a mohawk differently. This didn't work so I adjusted the layerFix variable. The result seems to work well for that use case and the code is even simpler than before. Test content pack attached.

BuzzcutAsAccessory.zip

Floogen commented 2 years ago

Thank you for the kind words!

Unfortunately, committing this PR would break many existing Fashion Sense packs (including accessories available in the example pack, such as the One Winged Angel).

image

There is a lot of magic numbering involved with the player's draw logic in Stardew Valley, which is inherently worked around with in Fashion Sense. One of the upcoming updates in SDV 1.6 should resolve this and hopefully help FS do away with much of the messy logic.

I've updated your example accessory.json to utilize the DrawBeforeHair property, which should do what you are looking for. A full list of accessory related properties can be found on the repository's wiki.

Buzzcut.zip