AssetLayerDefinition
Hierarchy
- AssetCommonPropertiesGroupAssetLayer
- AssetCommonPropertiesAssetLayer
- AssetLayerDefinition
Index
Properties
- AllowColorize
- AllowPose
- AllowTypes
- Alpha
- BlendingMode
- ColorGroup
- ColorSuffix
- CopyLayerColor
- CreateLayerTypes
- EditOpacity
- FixedPosition
- HasImage
- HideAs
- HideColoring
- HideForAttribute
- HideForPose
- InheritColor
- Left
- LockLayer
- MaxOpacity
- MinOpacity
- MirrorExpression
- Name
- Opacity
- ParentGroup
- PoseMapping
- Priority
- ShowForAttribute
- Top
- Visibility
Properties
optionalAllowColorize
Whether that layer is colorized
optionalAllowPose
The poses that have pose-specific assets.
Used when building the file paths for the asset's layers.
If a pose is absent then the asset corresponding to the default pose will be used in its place. Note that a pose's absence from this list does not prevent its usage.
optionalAllowTypes
A record (or a list thereof) with all screen names + option indices that should make the layer visible
optionalAlpha
A list of alpha mask definitions.
optionalBlendingMode
Set canvas globalCompositeOperation for current layer. Use "destination-in" if you want to use layer as an alpha mask. Note that game uses WebGL when available, so you might need to implement similar blending mode if it's not done already (currently in GLDrawImage() in GLDraw.js).
optionalColorGroup
The color group that layer is part of. Layers part of the same color group get a selector in the Color Picker UI
optionalColorSuffix
optionalCopyLayerColor
Uses the color of the named layer.
optionalCreateLayerTypes
optionalEditOpacity
optionalFixedPosition
Whether the asset is drawn at an absolute position.
optionalHasImage
Whether the layer uses an image. Defaults to true.
optionalHideAs
Type declaration
optionalAsset?: string
Group: AssetGroupName
optionalHideColoring
Whether the layer is hidden in the Color Picker UI. Defaults to false.
optionalHideForAttribute
optionalHideForPose
A list of poses that hide the asset when they get set.
Note that this does not prevent usage of the pose (see AssetDefinition.AllowActivePose). Values are automatically added to Asset.AllowPose.
optionalInheritColor
The group the target should inherit its color from.
optionalLeft
The left coordinate of the target draw rect or a record with pose-specific left coordinates.
optionalLockLayer
Specify that this is (one of) the asset's lock layer.
Allows for the manual specification lock layers as opposed to AssetDefinition.AllowLock's automatic assignment.
optionalMaxOpacity
optionalMinOpacity
optionalMirrorExpression
optionalName
The layer's name
optionalOpacity
optionalParentGroup
A group identifier that will be used to inherit the body size
optionalPoseMapping
A record mapping pose names to the actually to-be drawn poses. Special values can be specified, via use of PoseType, for either hiding the asset or using pose-agnostic assets.
Poses that are absent from the mapping (or whose value is set to PoseType.DEFAULT) will use the default pose-agnostic path.
optionalPriority
The drawing priority of the target
optionalShowForAttribute
optionalTop
The top coordinate of the target draw rect or a record with pose-specific top coordinates.
optionalVisibility
This can be used to make a layer invisible depending on certain conditions, provided the AssetDefinition.LayerVisibility is set correctly.
Here's what each option means:
- Player: Invisible to the player.
- AllExceptPlayerDialog: Invisible to the player when in a dialog.
- Others: Invisible to others.
- OthersExceptDialog: Invisible to others in a dialog.
- Owner: Invisible to your owner.
- Lovers: Invisible to your lovers.
- Mistresses: Invisible to club mistresses.
Properties common to groups, assets and layers
Those properties will be inherited by default from layer, to asset, to group. Defining it will override the parent's value altogether.