IsLocked Property - Floogen/FashionSense GitHub Wiki
What is IsLocked?
IsLocked
is a property available to all appearances which, when enabled, hides the respective model from the Hand Mirror tool.
An example utilizing the property:
{
"Name": "Colorable Mouse Ears",
"IsLocked": true,
"FrontHat": {
"ColorMasks": [
[ 191, 183, 181 ]
],
"StartingPosition": {
"X": 0,
"Y": 0
},
"HeadPosition": {
"X": -2,
"Y": 0
},
"HatSize": {
"Width": 16,
"Length": 16
}
}
}
This property can easily be changed by using Content Patcher to modify Data/PeacefulEnd/FashionSense/AppearanceData
.
An example of utilizing Content Patcher to lock the hat Animated Pumpkin Head until 9PM in the game:
{
"Format": "1.26.0",
"Changes": [
{
"Action": "EditData",
"Target": "Data/PeacefulEnd/FashionSense/AppearanceData",
"Fields": {
"ExampleAuthor.ExampleFashionSensePack/Hat/Animated Pumpkin Head": {
"IsLocked": true
}
},
"When": {
"Time": "{{Range: 0600, 1800}}"
},
"Update": "OnTimeChange"
},
{
"Action": "EditData",
"Target": "Data/PeacefulEnd/FashionSense/AppearanceData",
"Fields": {
"ExampleAuthor.ExampleFashionSensePack/Hat/Animated Pumpkin Head": {
"IsLocked": false
}
},
"When": {
"Time": "{{Range: 1900, 2600}}"
},
"Update": "OnTimeChange"
}
]
}
For more information on utilizing Content Patcher for Fashion Sense, see this page for details.
Note: IsLocked
is set to false by default.