2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ParticleSystemQuad
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend ParticleSystem
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Sets a new SpriteFrame as particle.<br>
|
|
|
|
-- WARNING: this method is experimental. Use setTextureWithRect instead.<br>
|
2015-03-23 16:29:35 +08:00
|
|
|
-- param spriteFrame A given sprite frame as particle texture.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- since v0.99.4
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] setDisplayFrame
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame spriteFrame
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Sets a new texture with a rect. The rect is in Points.<br>
|
|
|
|
-- since v0.99.4<br>
|
|
|
|
-- js NA<br>
|
2015-03-23 16:29:35 +08:00
|
|
|
-- lua NA<br>
|
|
|
|
-- param texture A given texture.<br>
|
|
|
|
-- 8 @param rect A given rect, in points.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] setTextureWithRect
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Texture2D texture
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-07-11 13:46:37 +08:00
|
|
|
--------------------------------
|
2015-03-23 16:29:35 +08:00
|
|
|
-- Listen the event that renderer was recreated on Android/WP8.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js NA<br>
|
2015-03-23 16:29:35 +08:00
|
|
|
-- lua NA<br>
|
|
|
|
-- param event the event that renderer was recreated on Android/WP8.
|
2014-07-11 13:46:37 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] listenRendererRecreated
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.EventCustom event
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad)
|
2014-07-11 13:46:37 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, string
|
|
|
|
-- @overload self
|
|
|
|
-- @overload self, map_table
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #map_table dictionary
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad ret (return value: cc.ParticleSystemQuad)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:29:35 +08:00
|
|
|
-- Creates a Particle Emitter with a number of particles.<br>
|
|
|
|
-- param numberOfParticles A given number of particles.<br>
|
|
|
|
-- return An autoreleased ParticleSystemQuad object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] createWithTotalParticles
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int numberOfParticles
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad ret (return value: cc.ParticleSystemQuad)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ParticleSystemQuad] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2015-09-21 16:35:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js NA<br>
|
|
|
|
-- lua NA
|
|
|
|
-- @function [parent=#ParticleSystemQuad] updateParticleQuads
|
|
|
|
-- @param self
|
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#ParticleSystemQuad] ParticleSystemQuad
|
|
|
|
-- @param self
|
|
|
|
-- @return ParticleSystemQuad#ParticleSystemQuad self (return value: cc.ParticleSystemQuad)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|