forked from SilverStudioGames/WTS
LoafyLemon
fb8e3aab0f
* Re-implemented image payload injection using Python3-compliant methods * Added sanity checks for image importing and exporting * Added compression for the payload * Added user input for exported image file names * Removed redundant layer for Tonks' ribbon bra * Updated MyMod clothing definition example. * Fixed regression in outfit clone functions
20 lines
1.4 KiB
Plaintext
20 lines
1.4 KiB
Plaintext
# Add new hairstyle for character as an instance of DollCloth,
|
|
# make sure the variable name is unique, preferably starting with mod name.
|
|
default MyMod_ponytail = DollCloth(
|
|
modpath="MyMod", # File path; Usually a mod folder name. (case insensitive)
|
|
name="hermione", # Character name (case sensitive)
|
|
categories=("head","hair"), # Main category and subcategory of the item (case sensitive)
|
|
type="hair", # Item type (case sensitive)
|
|
id="ponytail", # Item identifier (case sensitive)
|
|
unlocked=True, # True=Item is unlocked by default, False=Item is a part of the outfit and requries to be bought
|
|
level=0, # Character whoring/friendship level required to wear this cloth. (Optional)
|
|
color=["#985930", "#c38959"], # Python list with default colours in one of the formats listed down below.
|
|
zorder=None # Item zorder number, or None, if None default zorder for the slot will be used.
|
|
)
|
|
|
|
# Example valid colour formats:
|
|
# RGB: [(255, 255, 255), (255, 255, 255)]
|
|
# RGBA: [(255, 255, 255, 255), (255, 255, 255, 255)]
|
|
# HEX: [("#985930", "#c38959")]
|
|
# HEXA: [("#985930FF", "#c38959FF")]
|