Commit Graph

1312 Commits

Author SHA1 Message Date
Knox 0c0716671c fix EditorBox unable to input Chinese for fireball/issues/7286 (#2732) 2018-05-25 15:30:54 +08:00
PP 5217d2af1c remove useless code in EditBoxImpl (#2738) 2018-05-25 14:41:19 +08:00
pandamicro efaf0c5d4d Merge remote-tracking branch 'fireball/master' into next 2018-05-24 19:04:55 +08:00
pandamicro acb08dcab5 CPU based ParticleSystem implementation (#2730)
* Add RenderComponent markForCustomIARender

* CPU based ParticleSystem implementation

* Remove GPU based ParticleMaterial
2018-05-24 16:05:15 +08:00
yinkaile 7158d8635a fixed motions streak set texture to null (#2714) 2018-05-23 10:03:10 +08:00
Knox 29fa51c47b fix audio bug in wxgame for fireball/issues/7325 (#2709)
* fix audio bug in wxgame for fireball/issues/7325

* update CC_WECHATGAME and CC_QQPLAY value

* refine CCAudio code
2018-05-22 10:20:09 +08:00
pandamicro c3a9e6235b Improve render flag control in render component (#2695)
* Improve render flag control in render component

* Overwrite disableRender in Mask

* Secure markForUpdateRenderData for Sprite (check material)

* Fix particle auto remove process
2018-05-17 10:41:46 +08:00
Knox 2e95f374f8 optimization label memory (#2693)
* optimization label memory and refine code

* refine code
2018-05-17 09:56:02 +08:00
yinkaile bd2dd76826 move webgl stuff into webgl folder (#2690) 2018-05-16 10:44:33 +08:00
pandamicro 172f520259 Update mask assembler and mask materials (#2688) 2018-05-16 10:15:21 +08:00
yinkaile ec176ce336 refine activate material (#2685)
* refine label activateMaterial

* refine sprite activateMaterial

* refine motion streak activateMaterial
2018-05-15 18:44:45 +08:00
yinkaile 97c50c24de destroy dynamic atlas texture before loading scene (#2678)
* destroy dynamic atlas texture before loading scene

* refine code

* refine code
2018-05-15 11:33:46 +08:00
Knox d57064fa43 fix CCMotionStreak color error for fireball/issues/7286 (#2679) 2018-05-15 10:37:26 +08:00
Knox 646a406ebd CCSprite spriteframe avoid RenderFlow.FLAG_RENDER (#2675) 2018-05-15 09:35:32 +08:00
pandamicro b4313de272 Fix issue caused by sprite.spriteFrame set to null (#2672) 2018-05-12 17:01:17 +08:00
yinkaile f326869f47 fixed richtext (#2667) 2018-05-11 15:42:53 +08:00
yinkaile 15e63fc817 fixed label error (#2664)
* fixed label error

* should not render label if string is empty

* improve color render  flag
2018-05-11 11:19:50 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
Jare Guo 8d9fc58a6a fix scene reloading (#2660) 2018-05-10 14:59:21 +08:00
Knox 174635b630 fix videoplay md5 err for fireball/issues/6755 (#2657)
* label texture releaseTexture changed _releaseTexture

* fix videoplay md5 err for fireball/issues/6755

* refine code
2018-05-10 10:28:22 +08:00
Jare Guo 6b9c9242fa Merge 1.9 2018-05-09 21:14:29 +08:00
Jare Guo 36e9616ce5 fix api doc 2018-05-09 19:49:14 +08:00
pandamicro 314b0b55c0 Issue fixes for 2.0 (#2656)
* Generate component _id with uuid in editor

* Fix issues
2018-05-09 18:10:04 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
knox 3419688d1d fix ParticleSystem and update EngineErrorMap 2018-05-09 11:27:43 +08:00
pandamicro ec9a718569 Issue fixes for 2.0 (#2650)
* Upgrade render engine

* Fix sprite rendering issue while loading sprite frame

* Fix mesh buffer initialization issue

* Fix color fromHEX

* Remove ;
2018-05-09 10:05:23 +08:00
yinkaile e4325577ad Next vertex format (#2645)
* restructure vertex format

* update render-engine.js

* refine vertex format

* refine sprite vertex property name
2018-05-08 21:51:27 +08:00
chenxianyin c4f350c54a fix AudioSource load error. (#2616)
* fix AudioSource load error.

* release spriteFrame when you set a null value.

* fix audio preload error, more preload call will not create more WebAudioElement yet.
2018-05-08 15:53:11 +08:00
pandamicro 13314a1298 Fix native build issue (#2636) 2018-05-07 17:14:24 +08:00
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47:48 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 3531effe14 Merge pull request #2622 from knoxHuang/temp
fix layout newChildWidth bug for cocos-creator/engine/issues/2383
2018-05-04 10:09:07 +08:00
knox e45c5cd1a9 improve code 2018-05-04 09:57:43 +08:00
knox 06cc115b76 improve layout code 2018-05-03 09:44:06 +08:00
knox 70bf3e325b fix layout newChildWidth bug for cocos-creator/engine/issues/2383 2018-05-02 17:45:35 +08:00
pandamicro e4bdd1edc3 Merge remote-tracking branch 'fireball/master' into next 2018-05-02 16:16:33 +08:00
Jare Guo c47f5aa68e Merge branch 'v1.9'
# Conflicts:
#	cocos2d/actions/CCActionInterval.js
#	cocos2d/audio/CCAudioEngine.js
2018-04-27 14:20:10 +08:00
pandamicro 87a8613c39 Fix issues (#2606)
* Fix _LocalDirtyFlag undefined issue

* Fix blend function intialization issue

* Fix graphic usage issue in spine assembler
2018-04-27 09:49:14 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
Jare Guo 1ce0134f26 fix api doc 2018-04-26 19:20:35 +08:00
Jare Guo 5da0f872ee refine api doc 2018-04-26 12:43:33 +08:00
pandamicro 7c94a5f771 Fix Label issues (#2594)
* Fix bmfont anchor point issue

* Fix 0 is ignored as label.string

* Fix doc
2018-04-25 12:36:29 +08:00
Cocos Ass eef5f1cd4c fixed Layout can't caculate the width size correctly 2018-04-22 15:20:44 +08:00
pandamicro 0889e7e8df Use system font if no font found and not using system font 2018-04-20 00:45:37 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
yinkaile 2ed79ae029 minor fixed 2018-04-18 11:53:22 +08:00
yinkaile 441d88f874 minor fixed 2018-04-17 18:50:35 +08:00
yinkaile d07dbc103f optimize dynamic atlas 2018-04-17 18:48:30 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00