1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{
"uid": "C9BD558DKFF12A4617SA6A5E76E6CD5B2C51",
"isLoaded": true,
"lastModificationTime": 0,
"items": {
"name": "Component_AnimationHandler",
"type": "game_script",
"order": 12,
"content": "# ===================================================================\n#\n# Script: Component_AnimationHandler\n#\n# $$COPYRIGHT$$\n#\n# ===================================================================\nclass Component_AnimationHandler extends ui.Component_Handler\n ###*\n * An animation-handler component allows a UI game object to execute\n * a flow of animations. For more information about UI animations, see help-file.\n * \n * @module ui\n * @class Component_AnimationHandler\n * @extends ui.Component_Handler\n * @memberof ui\n * @constructor\n ###\n constructor: ->\n super\n \n ###*\n * @property initialized\n * @type boolean\n * @protected\n ###\n @initialized = no\n \n ###*\n * @property waitCounter\n * @type number\n * @protected\n ###\n @waitCounter = 0\n \n ###*\n * @property pointer\n * @type number\n * @protected\n ###\n @pointer = 0\n \n ###*\n * Initializes the animation-handler.\n * \n * @method setup\n ###\n setup: ->\n @initialized = yes\n \n return null\n \n ###*\n * Processes the animation targets and starts the animation on each\n * target object if possible.\n * \n * @method processTargets\n * @param {Object} animation - The animation to start.\n * @param {gs.Object_Base[]} targets - An array of target objects.\n * @protected\n ### \n processTargets: (animation, targets) ->\n for target in targets\n if animation.type?\n target.visible = yes\n if !animation.components? then animation.components = []\n \n if(!@object.animator)\n @object.animator = new gs.Component_Animator()\n @object.addComponent(@object.animator)\n\n animation.components.push(@object.animationExecutor.startAnimation(animation, animation.duration, target, @object.animator))\n\n target.visible = yes\n animation.executed = !(animation.repeat ? yes)\n else\n animation.executed = !(animation.repeat ? yes)\n \n return null\n \n ###*\n * Clears/Resets the specified animation if necessary.\n * \n * @method clear\n * @param {Object} descriptor - The animation descriptor\n * @protected\n ### \n clear: (descriptor) ->\n descriptor.cleared = yes\n descriptor.pointer = 0\n descriptor.waitCounter = 0\n for animation in descriptor.flow\n if animation.components\n for component in animation.components\n #component?.dispose()\n target = @object\n target.visible = yes\n animation.executed = no\n if animation.field? and animation.reset?\n ui.BindingHandler.resolveFieldPath(target, animation.field).set(target, ui.BindingHandler.fieldValue(target, animation.reset || 0))\n animation.components = [] \n \n @object.needsFullUpdate = yes\n \n return null\n \n ###*\n * Processes the animation flow.\n * \n * @method processAnimations\n * @param {Object} descriptor - The animation-descriptor containing the animation-flow.\n * @protected\n ### \n processAnimations: (descriptor) ->\n while descriptor.pointer < descriptor.flow.length\n animation = descriptor.flow[descriptor.pointer]\n descriptor.pointer++\n \n if !animation.wait and animation.executed then continue\n \n targets = if animation.target? then ui.Component_FormulaHandler.fieldValue(@object, animation.target) else @object\n targets = if targets.length? then targets else [targets]\n descriptor.cleared = no\n \n @processTargets(animation, targets)\n \n if animation.wait\n if animation.type?\n descriptor.waitCounter = animation.duration\n else\n descriptor.waitCounter = animation.wait #ui.Component_FormulaHandler.fieldValue(@object, animation.wait || 0, yes)\n break\n \n return null\n \n ###*\n * Updates the animations.\n * \n * @method updateAnimations\n ###\n updateAnimations: ->\n for descriptor, i in @object.animations\n if @checkObject(descriptor)\n if descriptor.waitCounter > 0\n descriptor.waitCounter--\n continue\n \n if (not descriptor.pointer?) or descriptor.pointer >= descriptor.flow.length\n descriptor.pointer = 0\n \n @processAnimations(descriptor)\n else if !descriptor.cleared and (descriptor.clear ? yes)\n @clear(descriptor)\n \n return null\n \n ###*\n * Updates the animation-handler.\n * \n * @method update\n ### \n update: ->\n @object.needsUpdate = yes\n @updateAnimations()\n \n \n \n \nui.Component_AnimationHandler = Component_AnimationHandler",
"parentId": "01A95DA3K01E8A4CB4SBE17E790BCE1FC035",
"folder": false,
"compiledContent": "var Component_AnimationHandler,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\nComponent_AnimationHandler = (function(superClass) {\n extend(Component_AnimationHandler, superClass);\n\n\n /**\n * An animation-handler component allows a UI game object to execute\n * a flow of animations. For more information about UI animations, see help-file.\n * \n * @module ui\n * @class Component_AnimationHandler\n * @extends ui.Component_Handler\n * @memberof ui\n * @constructor\n */\n\n function Component_AnimationHandler() {\n Component_AnimationHandler.__super__.constructor.apply(this, arguments);\n\n /**\n * @property initialized\n * @type boolean\n * @protected\n */\n this.initialized = false;\n\n /**\n * @property waitCounter\n * @type number\n * @protected\n */\n this.waitCounter = 0;\n\n /**\n * @property pointer\n * @type number\n * @protected\n */\n this.pointer = 0;\n }\n\n\n /**\n * Initializes the animation-handler.\n * \n * @method setup\n */\n\n Component_AnimationHandler.prototype.setup = function() {\n this.initialized = true;\n return null;\n };\n\n\n /**\n * Processes the animation targets and starts the animation on each\n * target object if possible.\n * \n * @method processTargets\n * @param {Object} animation - The animation to start.\n * @param {gs.Object_Base[]} targets - An array of target objects.\n * @protected\n */\n\n Component_AnimationHandler.prototype.processTargets = function(animation, targets) {\n var j, len, ref, ref1, target;\n for (j = 0, len = targets.length; j < len; j++) {\n target = targets[j];\n if (animation.type != null) {\n target.visible = true;\n if (animation.components == null) {\n animation.components = [];\n }\n if (!this.object.animator) {\n this.object.animator = new gs.Component_Animator();\n this.object.addComponent(this.object.animator);\n }\n animation.components.push(this.object.animationExecutor.startAnimation(animation, animation.duration, target, this.object.animator));\n target.visible = true;\n animation.executed = !((ref = animation.repeat) != null ? ref : true);\n } else {\n animation.executed = !((ref1 = animation.repeat) != null ? ref1 : true);\n }\n }\n return null;\n };\n\n\n /**\n * Clears/Resets the specified animation if necessary.\n * \n * @method clear\n * @param {Object} descriptor - The animation descriptor\n * @protected\n */\n\n Component_AnimationHandler.prototype.clear = function(descriptor) {\n var animation, component, j, k, len, len1, ref, ref1, target;\n descriptor.cleared = true;\n descriptor.pointer = 0;\n descriptor.waitCounter = 0;\n ref = descriptor.flow;\n for (j = 0, len = ref.length; j < len; j++) {\n animation = ref[j];\n if (animation.components) {\n ref1 = animation.components;\n for (k = 0, len1 = ref1.length; k < len1; k++) {\n component = ref1[k];\n target = this.object;\n target.visible = true;\n animation.executed = false;\n if ((animation.field != null) && (animation.reset != null)) {\n ui.BindingHandler.resolveFieldPath(target, animation.field).set(target, ui.BindingHandler.fieldValue(target, animation.reset || 0));\n }\n }\n animation.components = [];\n }\n }\n this.object.needsFullUpdate = true;\n return null;\n };\n\n\n /**\n * Processes the animation flow.\n * \n * @method processAnimations\n * @param {Object} descriptor - The animation-descriptor containing the animation-flow.\n * @protected\n */\n\n Component_AnimationHandler.prototype.processAnimations = function(descriptor) {\n var animation, targets;\n while (descriptor.pointer < descriptor.flow.length) {\n animation = descriptor.flow[descriptor.pointer];\n descriptor.pointer++;\n if (!animation.wait && animation.executed) {\n continue;\n }\n targets = animation.target != null ? ui.Component_FormulaHandler.fieldValue(this.object, animation.target) : this.object;\n targets = targets.length != null ? targets : [targets];\n descriptor.cleared = false;\n this.processTargets(animation, targets);\n if (animation.wait) {\n if (animation.type != null) {\n descriptor.waitCounter = animation.duration;\n } else {\n descriptor.waitCounter = animation.wait;\n }\n break;\n }\n }\n return null;\n };\n\n\n /**\n * Updates the animations.\n * \n * @method updateAnimations\n */\n\n Component_AnimationHandler.prototype.updateAnimations = function() {\n var descriptor, i, j, len, ref, ref1;\n ref = this.object.animations;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n descriptor = ref[i];\n if (this.checkObject(descriptor)) {\n if (descriptor.waitCounter > 0) {\n descriptor.waitCounter--;\n continue;\n }\n if ((descriptor.pointer == null) || descriptor.pointer >= descriptor.flow.length) {\n descriptor.pointer = 0;\n }\n this.processAnimations(descriptor);\n } else if (!descriptor.cleared && ((ref1 = descriptor.clear) != null ? ref1 : true)) {\n this.clear(descriptor);\n }\n }\n return null;\n };\n\n\n /**\n * Updates the animation-handler.\n * \n * @method update\n */\n\n Component_AnimationHandler.prototype.update = function() {\n this.object.needsUpdate = true;\n return this.updateAnimations();\n };\n\n return Component_AnimationHandler;\n\n})(ui.Component_Handler);\n\nui.Component_An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ICAgIyMjKlxuICAgICogQW4gYW5pbWF0aW9uLWhhbmRsZXIgY29tcG9uZW50IGFsbG93cyBhIFVJIGdhbWUgb2JqZWN0IHRvIGV4ZWN1dGVcbiAgICAqIGEgZmxvdyBvZiBhbmltYXRpb25zLiBGb3IgbW9yZSBpbmZvcm1hdGlvbiBhYm91dCBVSSBhbmltYXRpb25zLCBzZWUgaGVscC1maWxlLlxuICAgICogXG4gICAgKiBAbW9kdWxlIHVpXG4gICAgKiBAY2xhc3MgQ29tcG9uZW50X0FuaW1hdGlvbkhhbmRsZXJcbiAgICAqIEBleHRlbmRzIHVpLkNvbXBvbmVudF9IYW5kbGVyXG4gICAgKiBAbWVtYmVyb2YgdWlcbiAgICAqIEBjb25zdHJ1Y3RvclxuICAgICMjI1xuICAgIGNvbnN0cnVjdG9yOiAtPlxuICAgICAgICBzdXBlclxuICAgICAgICBcbiAgICAgICAgIyMjKlxuICAgICAgICAqIEBwcm9wZXJ0eSBpbml0aWFsaXplZFxuICAgICAgICAqIEB0eXBlIGJvb2xlYW5cbiAgICAgICAgKiBAcHJvdGVjdGVkXG4gICAgICAgICMjI1xuICAgICAgICBAaW5pdGlhbGl6ZWQgPSBub1xuICAgICAgICBcbiAgICAgICAgIyMjKlxuICAgICAgICAqIEBwcm9wZXJ0eSB3YWl0Q291bnRlclxuICAgICAgICAqIEB0eXBlIG51bWJlclxuICAgICAgICAqIEBwcm90ZWN0ZWRcbiAgICAgICAgIyMjXG4gICAgICAgIEB3YWl0Q291bnRlciA9IDBcbiAgICAgICAgXG4gICAgICAgICMjIypcbiAgICAgICAgKiBAcHJvcGVydHkgcG9pbnRlclxuICAgICAgICAqIEB0eXBlIG51bWJlclxuICAgICAgICAqIEBwcm90ZWN0ZWRcbiAgICAgICAgIyMjXG4gICAgICAgIEBwb2ludGVyID0gMFxuICAgICAgICBcbiAgICAjIyMqXG4gICAgKiBJbml0aWFsaXplcyB0aGUgYW5pbWF0aW9uLWhhbmRsZXIuXG4gICAgKiBcbiAgICAqIEBtZXRob2Qgc2V0dXBcbiAgICAjIyNcbiAgICBzZXR1cDogLT5cbiAgICAgICAgQGluaXRpYWxpemVkID0geWVzXG4gICBcbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICBcbiAgICAjIyMqXG4gICAgKiBQcm9jZXNzZXMgdGhlIGFuaW1hdGlvbiB0YXJnZXRzIGFuZCBzdGFydHMgdGhlIGFuaW1hdGlvbiBvbiBlYWNoXG4gICAgKiB0YXJnZXQgb2JqZWN0IGlmIHBvc3NpYmxlLlxuICAgICogXG4gICAgKiBAbWV0aG9kIHByb2Nlc3NUYXJnZXRzXG4gICAgKiBAcGFyYW0ge09iamVjdH0gYW5pbWF0aW9uIC0gVGhlIGFuaW1hdGlvbiB0byBzdGFydC5cbiAgICAqIEBwYXJhbSB7Z3MuT2JqZWN0X0Jhc2VbXX0gdGFyZ2V0cyAtIEFuIGFycmF5IG9mIHRhcmdldCBvYmplY3RzLlxuICAgICogQHByb3RlY3RlZFxuICAgICMjIyBcbiAgICBwcm9jZXNzVGFyZ2V0czogKGFuaW1hdGlvbiwgdGFyZ2V0cykgLT5cbiAgICAgICAgZm9yIHRhcmdldCBpbiB0YXJnZXRzXG4gICAgICAgICAgICBpZiBhbmltYXRpb24udHlwZT9cbiAgICAgICAgICAgICAgICB0YXJnZXQudmlzaWJsZSA9IHllc1xuICAgICAgICAgICAgICAgIGlmICFhbmltYXRpb24uY29tcG9uZW50cz8gdGhlbiBhbmltYXRpb24uY29tcG9uZW50cyA9IFtdXG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgaWYoIUBvYmplY3QuYW5pbWF0b3IpXG4gICAgICAgICAgICAgICAgICAgIEBvYmplY3QuYW5pbWF0b3IgPSBuZXcgZ3MuQ29tcG9uZW50X0FuaW1hdG9yKClcbiAgICAgICAgICAgICAgICAgICAgQG9iamVjdC5hZGRDb21wb25lbnQoQG9iamVjdC5hbmltYXRvcilcblxuICAgICAgICAgICAgICAgIGFuaW1hdG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KClcbiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0ID0gQG9iamVjdFxuICAgICAgICAgICAgICAgICAgICB0YXJnZXQudmlzaWJsZSA9IHllc1xuICAgICAgICAgICAgICAgICAgICBhbmltYXRpb24uZXhlY3V0ZWQgPSBub1xuICAgICAgICAgICAgICAgICAgICBpZiBhbmltYXRpb24uZmllbGQ/IGFuZCBhbmltYXRpb24ucmVzZXQ/XG4gICAgICAgICAgICAgICAgICAgICAgICB1aS5CaW5kaW5nSGFuZGxlci5yZXNvbHZlRmllbGRQYXRoKHRhcmdldCwgYW5pbWF0aW9uLmZpZWxkKS5zZXQodGFyZ2V0LCB1aS5CaW5kaW5nSGFuZGxlci5maWVsZFZhbHVlKHRhcmdldCwgYW5pbWF0aW9uLnJlc2V0IHx8IDApKVxuICAgICAgICAgICAgICAgIGFuaW1hdGlvbi5jb21wb25lbnRzID0gW10gIFxuICAgICAgICAgICAgICAgIFxuICAgICAgICBAb2JqZWN0Lm5lZWRzRnVsbFVwZGF0ZSA9IHllc1xuICAgICAgICBcbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICBcbiAgICAjIyMqXG4gICAgKiBQcm9jZXNzZXMgdGhlIGFuaW1hdGlvbiBmbG93LlxuICAgICogXG4gICAgKiBAbWV0aG9kIHByb2Nlc3NBbmltYXRpb25zXG4gICAgKiBAcGFyYW0ge09iamVjdH0gZGVzY3JpcHRvciAtIFRoZSBhbmltYXRpb24tZGVzY3JpcHRvciBjb250YWluaW5nIHRoZSBhbmltYXRpb24tZmxvdy5cbiAgICAqIEBwcm90ZWN0ZWRcbiAgICAjIyMgXG4gICAgcHJvY2Vzc0FuaW1hdGlvbnM6IChkZXNjcmlwdG9yKSAtPlxuICAgICAgICB3aGlsZSBkZXNjcmlwdG9yLnBvaW50ZXIgPCBkZXNjcmlwdG9yLmZsb3cubGVuZ3RoXG4gICAgICAgICAgICBhbmltYXRpb24gPSBkZXNjcmlwdG9yLmZsb3dbZGVzY3JpcHRvci5wb2ludGVyXVxuICAgICAgICAgICAgZGVzY3JpcHRvci5wb2ludGVyKytcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgaWYgIWFuaW1hdGlvbi53YWl0IGFuZCBhbmltYXRpb24uZXhlY3V0ZWQgdGhlbiBjb250aW51ZVxuICAgICAgICAgICAgXG4gICAgICAgICAgICB0YXJnZXRzID0gaWYgYW5pbWF0aW9uLnRhcmdldD8gdGhlbiB1aS5Db21wb25lbnRfRm9ybXVsYUhhbmRsZXIuZmllbGRWYWx1ZShAb2JqZWN0LCBhbmltYXRpb24udGFyZ2V0KSBlbHNlIEBvYmplY3RcbiAgICAgICAgICAgIHRhcmdldHMgPSBpZiB0YXJnZXRzLmxlbmd0aD8gdGhlbiB0YXJnZXRzIGVsc2UgW3RhcmdldHNdXG4gICAgICAgICAgICBkZXNjcmlwdG9yLmNsZWFyZWQgPSBub1xuICAgICAgICAgICAgXG4gICAgICAgICAgICBAcHJvY2Vzc1RhcmdldHMoYW5pbWF0aW9uLCB0YXJnZXRzKVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBpZiBhbmltYXRpb24ud2FpdFxuICAgICAgICAgICAgICAgIGlmIGFuaW1hdGlvbi50eXBlP1xuICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdG9yLndhaXRDb3VudGVyID0gYW5pbWF0aW9uLmR1cmF0aW9uXG4gICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdG9yLndhaXRDb3VudGVyID0gYW5pbWF0aW9uLndhaXQgI3VpLkNvbXBvbmVudF9Gb3JtdWxhSGFuZGxlci5maWVsZFZhbHVlKEBvYmplY3QsIGFuaW1hdGlvbi53YWl0IHx8IDAsIHllcylcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIFxuICAgICAgICByZXR1cm4gbnVsbFxuICAgICAgICAgICAgICAgIFxuICAgICMjIypcbiAgICAqIFVwZGF0ZXMgdGhlIGFuaW1hdGlvbnMuXG4gICAgKiBcbiAgICAqIEBtZXRob2QgdXBkYXRlQW5pbWF0aW9uc1xuICAgICMjI1xuICAgIHVwZGF0ZUFuaW1hdGlvbnM6IC0+XG4gICAgICAgIGZvciBkZXNjcmlwdG9yLCBpIGluIEBvYmplY3QuYW5pbWF0aW9uc1xuICAgICAgICAgICAgaWYgQGNoZWNrT2JqZWN0KGRlc2NyaXB0b3IpXG4gICAgICAgICAgICAgICAgaWYgZGVzY3JpcHRvci53YWl0Q291bnRlciA+IDBcbiAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRvci53YWl0Q291bnRlci0tXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlXG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgaWYgKG5vdCBkZXNjcmlwdG9yLnBvaW50ZXI/KSBvciBkZXNjcmlwdG9yLnBvaW50ZXIgPj0gZGVzY3JpcHRvci5mbG93Lmxlbmd0aFxuICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdG9yLnBvaW50ZXIgPSAwXG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIEBwcm9jZXNzQW5pbWF0aW9ucyhkZXNjcmlwdG9yKVxuICAgICAgICAgICAgZWxzZSBpZiAhZGVzY3JpcHRvci5jbGVhcmVkIGFuZCAoZGVzY3JpcHRvci5jbGVhciA/IHllcylcbiAgICAgICAgICAgICAgICBAY2xlYXIoZGVzY3JpcHRvcilcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgXG4gICAgIyMjKlxuICAgICogVXBkYXRlcyB0aGUgYW5pbWF0aW9uLWhhbmRsZXIuXG4gICAgKiBcbiAgICAqIEBtZXRob2QgdXBkYXRlXG4gICAgIyMjICAgXG4gICAgdXBkYXRlOiAtPlxuICAgICAgICBAb2JqZWN0Lm5lZWRzVXBkYXRlID0geWVzXG4gICAgICAgIEB1cGRhdGVBbmltYXRpb25zKClcbiAgICAgICAgXG4gICAgICAgIFxuICAgICAgICBcbiAgICAgICAgXG51aS5Db21wb25lbnRfQW5pbWF0aW9uSGFuZGxlciA9IENvbXBvbmVudF9BbmltYXRpb25IYW5kbGVyIl19\n//# sourceURL=Component_AnimationHandler_134.js"
},
"summary": [
"name",
"type",
"order"
]
}
|