Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
clearAttrLink | |
clearNodeLink | |
forceUpdate | |
getAttr | |
getAttrLink | |
moveAttr | |
scheduleUpdate | |
seekAttr | |
setAttrLink | |
setAttr | |
setNodeLink |
Evaluates the dependency graph for this node. Typically, the entire active dependency graph is evaluated once per frame, but in some cases it may be desirable to force evaluation of a node to make sure source dependencies are propagated to it immediately.
function forceUpdate ( MOAINode self )
self | ( MOAINode ) |
Animate the attribute by applying a delta. Creates and returns a MOAIEaseDriver initialized to apply the delta.
function moveAttr ( MOAINode self, number attrID, number delta, number length [, number mode ] )
self | ( MOAINode ) |
attrID | ( number ) ID of the attribute to animate. |
delta | ( number ) Total change to be added to attribute. |
length | ( number ) Length of animation in seconds. |
mode | ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH. |
Animate the attribute by applying a delta. Delta is computed given a target value. Creates and returns a MOAIEaseDriver initialized to apply the delta.
function seekAttr ( MOAINode self, number attrID, number goal, number length [, number mode ] )
self | ( MOAINode ) |
attrID | ( number ) ID of the attribute to animate. |
goal | ( number ) Desired resulting value for attribute. |
length | ( number ) Length of animation in seconds. |
mode | ( number ) Optional. The ease mode. One of MOAIEaseType.EASE_IN, MOAIEaseType.EASE_OUT, MOAIEaseType.FLAT MOAIEaseType.LINEAR, MOAIEaseType.SMOOTH, MOAIEaseType.SOFT_EASE_IN, MOAIEaseType.SOFT_EASE_OUT, MOAIEaseType.SOFT_SMOOTH. Defaults to MOAIEaseType.SMOOTH. |
Sets a *pull* attribute connecting an attribute in the node to an attribute in a foreign node.
function setAttrLink ( MOAINode self, number attrID, MOAINode sourceNode [, number sourceAttrID ] )
self | ( MOAINode ) |
attrID | ( number ) ID of attribute to become dependent of foreign node. |
sourceNode | ( MOAINode ) Foreign node. |
sourceAttrID | ( number ) Optional. Attribute in foreign node to control value of attribue. Default value is attrID. |