Shapes

Contains various deformation shapes that can be applied to children of this node

Constructors

this
this(Node parent)

Constructs a new Shapes node

Members

Functions

typeId
string typeId()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

selector
vec2 selector;

The cursor inside the Shapes node

shapes
ShapeNode[][Drawable] shapes;

A list of the shape offsets to apply per part

Inherited Members

From Node

offsetTransform
Transform offsetTransform;

The offset to the transform to apply

offsetSort
float offsetSort;

The offset to apply to sorting

resetMask
void resetMask()
Undocumented in source. Be warned that the author may not have intended to support it.
serializeSelf
void serializeSelf(InochiSerializer serializer)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeSelf
void serializeSelf(InochiSerializerCompact serializer)
Undocumented in source. Be warned that the author may not have intended to support it.
setPuppet
void setPuppet(Puppet puppet)

Needed for deserialization

enabled
bool enabled;

Whether the node is enabled

renderEnabled
bool renderEnabled()

Whether the node is enabled for rendering

name
string name;

Visual name of the node

uuid
uint uuid()

Returns the unique identifier for this node

typeId
string typeId()

This node's type ID

relZSort
float relZSort()

Gets the relative Z sorting

zSort
float zSort()

Gets the Z sorting

zSort
void zSort(float value)

Sets the (relative) Z sorting

lockToRoot
bool lockToRoot()

Lock translation to root

lockToRoot
void lockToRoot(bool value)

Lock translation to root

localTransform
Transform localTransform;

The local transform of the node

globalTransform
Transform globalTransform;

The cached world space transform of the node

recalculateTransform
bool recalculateTransform;
Undocumented in source.
transform
Transform transform()

The transform in world space

transformNoLock
Transform transformNoLock()

The transform in world space without locking

children
Node[] children()

Gets a list of this node's children

parent
Node parent()

Gets the parent of this node

puppet
Puppet puppet()

The puppet this node is attached to

clearChildren
void clearChildren()

Removes all children from this node

addChild
void addChild(Node child)

Adds a node as a child of this node.

parent
void parent(Node node)

Sets the parent of this node

getIndexInParent
ptrdiff_t getIndexInParent()
Undocumented in source. Be warned that the author may not have intended to support it.
getIndexInNode
ptrdiff_t getIndexInNode(Node n)
Undocumented in source. Be warned that the author may not have intended to support it.
OFFSET_START
enum OFFSET_START;
Undocumented in source.
OFFSET_END
enum OFFSET_END;
Undocumented in source.
insertInto
void insertInto(Node node, size_t offset)
Undocumented in source. Be warned that the author may not have intended to support it.
hasParam
bool hasParam(string key)

Return whether this node supports a parameter

getDefaultValue
float getDefaultValue(string key)

Gets the default offset value

setValue
bool setValue(string key, float value)

Sets offset value

scaleValue
float scaleValue(string key, float value, int axis, float scale)

Scale an offset value, given an axis and a scale

draw
void draw()

Draws this node and it's subnodes

drawOne
void drawOne()

Draws this node.

finalize
void finalize()

Finalizes this node and any children

beginUpdate
void beginUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()

Updates the node

transformChanged
void transformChanged()

Marks this node's transform (and its descendents') as dirty

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
void serialize(S serializer)

Allows serializing a node (with pretty serializer)

deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)

Deserializes node from Fghj formatted JSON data.

forceSetUUID
void forceSetUUID(uint uuid)

Force sets the node's ID

getCombinedBounds
vec4 getCombinedBounds()

Gets the combined bounds of the node

canReparent
bool canReparent(Node to)

Gets whether nodes can be reparented

drawOrientation
void drawOrientation()

Draws orientation of the node

drawBounds
void drawBounds()

Draws bounds

Meta