Commit Graph

392 Commits

Author SHA1 Message Date
Jare Guo bd29a6db8c Merge 2.0-release
# Conflicts:
#	predefine.js
2018-09-06 10:41:21 +08:00
pandamicro 4f25b1a0d9 Add mat4 value type (#3179)
* Add mat4 value type

* Fix api doc in vec2 / vec3

* Use Mat4 type globally
2018-09-02 23:54:47 +08:00
pandamicro e77527763f Support loading ttf with loader, adapt Label & RichText (#3170)
* Make ttf font occupied by loader

* Remove font downloader

* Add font loader

* Support loading ttf with loader, adapt Label & RichText

* Fix log functions before resetDebugSetting

* fix loader unit test

* Fix load font with md5 cache

* Fix Label & RichText lazy loading
2018-08-31 13:29:40 +08:00
yinkaile a33be26b1a support skeleton animation (#3151)
* support 2.5D

* refine code

* refine code

* refine code

* refine code

* refine code

* refine code

* update

* support skin mesh

* add is3DNode property

* add comment

* update

* update

* update

* fixed test

* refine code

* update

* refine code

* refine code

* refine code
2018-08-30 14:56:18 +08:00
Jare Guo a0087103d4 Merge v2.0-release
# Conflicts:
#	predefine.js
2018-08-29 20:03:38 +08:00
ColinCollins ea7803f874 modify the path.baseName() (#3142)
* modify the path.baseName() 

judge the adaptation of the file basename

* add path.basename test
2018-08-28 10:51:56 +08:00
yinkaile 6c6ee961f0 support 2.5D (#3120)
* support 2.5D

* refine code

* refine code

* refine code

* refine code

* refine code

* refine code
2018-08-23 11:21:18 +08:00
pandamicro 2791fda517 Fix cc.view._resizeWithBrowserSize typo (#3130) 2018-08-23 10:40:59 +08:00
pandamicro a8a84dd9fa Fix Particle plist parsing issues (#3122)
* Support absent textureFile in particle plist

* Fix particle parse issue when color channel value equals to zero
2018-08-20 19:09:45 +08:00
pandamicro 411e52b580 Fix user reported issues (#3081)
* Upgrade render engine to fix some issues

* preserve drawing buffer in qqplay

* Fix label issue when using system font and fontFamily is not set

* Secure Editbox _impl access

* Fix Joint.getReactionForce

* Remove cc.director.getProjection usage

* Fix particle system color type issue in editor

* Apply Skeleton frame when changing animation in editor

* Fix docs, improve deprecation
2018-08-14 10:25:21 +08:00
SijieWang 4d63ca3712 Adjust the enable time (#3075)
* Adjust the enable time

* review code
2018-08-13 13:46:41 +08:00
pandamicro 74b38f2f99 Pick fixes from next (#3024)
* fix editbox show multi labels when editing (#3015)

* fix load ttf with md5 (#3016)
2018-07-27 15:44:48 +08:00
pandamicro b3a6310043 Fix issues in font family name and bmfont size (#3017)
* Fix layout not responding to bmfont size changing issue

* Add quotation around font family name with space
2018-07-26 16:05:52 +08:00
pandamicro 1102e50750 Fix user reported issues (#2995)
* Cleanup code & fix api doc

* Fix plist parser require issue

* Fix spine null material issue

* Fix Sprite null material issue

* Fix uninit editbox updateString issue
2018-07-19 00:01:20 +08:00
pandamicro eeac56e7cc Merge pull request #2989 from cocos-creator/next
Merge next to v2.0 release
2018-07-17 16:52:06 +08:00
pandamicro 69166aef92 Fix typo 2018-07-17 16:46:11 +08:00
pandamicro 83e9630333 Fix ttf loading issue 2018-07-17 16:33:51 +08:00
pandamicro c42f77ab25 Secure measureText in wechat (offscreen) 2018-07-17 16:33:34 +08:00
Knox 498bb67365 fix load ttf error in md5 for fireball/issues/7896 (#2982) 2018-07-16 15:13:11 +08:00
pandamicro 4180152cdf Fix beta users reported issues (#2979)
* Fix node API docs

* Fix debug panel appear in release mode issue

* Do not alert rotation inconsistency, avoid alert in 3d

* Fix skew not updated issue

* Fix EventTarget not inited in SpriteFrame

* Added Animation.EventType

* Add getQuat & setQuat for 3d node

* do not alert normalize zero vector

* Fix spine assembler rendering issue

* Improve node hitTest & fix mask hitTest

* Add missing Node.once implementation

* Fix EventTarget.once callback parameters

* Improve event API docs

* Fix return type should be vec2 instead of simple object

* Improve showFPS parse
2018-07-16 11:26:17 +08:00
pandamicro 88e58d39b7 Add forceCanvas build option, rearrange modules for canvas renderer (#2969)
* Remove useless requires

* Build engine support forceCanvas to use canvas version render engine

* Rearrange modules, separate webgl & canvas renderer

* Do not create material in canvas

* Cleanup canvas renderers

* Improve modules.json

* Fix unit test

* Fix wechat sub domain build issues

* Make Camera working for canvas render mode

* Fix canvas renderer issues

* Reenable camera in Canvas

* Fix label colorizing issue
2018-07-13 14:13:48 +08:00
pandamicro f1cc4bd5aa Merge remote-tracking branch 'fireball/master' into next 2018-07-02 10:27:46 +08:00
pandamicro 5e55976997 Improve Node event emit performance (#2862)
* Improve Node event emit performance

* Simplify Node event emit by removing event obj

* Fix example
2018-06-19 15:34:19 +08:00
yinkaile d8bcdb8f0f define class name (#2872) 2018-06-19 12:04:22 +08:00
pandamicro 03e2af76a5 Merge remote-tracking branch 'fireball/master' into merge 2018-06-15 18:37:33 +08:00
yinkaile 303f20653b add debug camera (#2853)
* add debug camera

* refine code
2018-06-13 11:30:20 +08:00
yinkaile 28527bdc10 remove es6 class (#2838)
* remove es6 class

* refine code

* refine code
2018-06-11 19:04:29 +08:00
黄家辉 1632908fcc correct the api docs template (#2852) 2018-06-11 19:02:14 +08:00
SijieWang 91f63dd132 Scene modularization (#2773) 2018-06-05 12:34:48 +08:00
pandamicro dbb8dc4c90 Merge remote-tracking branch 'origin/master' into next 2018-05-29 18:59:36 +08:00
Jare Guo 85f3603546 Merge branch 'v1.9-release'
# Conflicts:
#	cocos2d/audio/CCAudioEngine.js
2018-05-29 16:45:35 +08:00
Jare Guo 92e99f3038 new instantiated nodes should clean it's fileId before adding to other prefabs. (#2753) 2018-05-29 09:27:29 +08:00
pandamicro 5b99f8cdfa Fix API doc configs (#2750) 2018-05-28 18:22:37 +08:00
pandamicro efaf0c5d4d Merge remote-tracking branch 'fireball/master' into next 2018-05-24 19:04:55 +08:00
pandamicro 8aea3b8be6 Small fixes for ParticleSystem reimplementation (#2729)
* Refactor vfmtPosColorUv to vfmtPosUvColor

* Fix Node getNodeToWorldTransform

* Reset quad buffer during walker reset

* Fix affine transform api doc

* Remove useless uintbuf
2018-05-24 15:57:43 +08:00
pandamicro 9f9ac0b1e3 Remove Node _worldMatUpdated (#2698)
* Maintain worldMatUpdated state

* Remove _worldMatUpdated property from Node
2018-05-17 15:57:20 +08:00
pandamicro 27fef43853 Issue fixes for 3d project (#2669)
* Remove useless handleLoadedTexture

* Fix RenderFlow flag setting issue

* Remove useless key board event check
2018-05-11 18:24:02 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
Jare Guo 550e85b9e2 update _id management (#2648) 2018-05-09 09:58:51 +08:00
pandamicro 8a92606e29 Fix _id reset issue 2018-05-08 19:05:12 +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
Jare Guo 32205ee27b define apisrc.json in this repo 2018-05-05 18:07:40 +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 a0043db9df Small issue fixes (#2617)
* Fix emit event on invalid animation issue

* Support setQuat with x, y, z, w

* Fix native running issue
2018-05-02 15:38:15 +08:00
pandamicro 396154d41b Fix issues (#2608)
* Add missed vec3 APIs

* Fix Node property setter issue

* Fix scene dirty sync issue

* Fix setWorldRot not setting dirty issue
2018-04-27 18:00:48 +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
pandamicro 6bf14fef51 Avoid configurable property and avoid editor issue 2018-04-26 11:32:17 +08:00
pandamicro 4f1f0a7cfb Fix issues 2018-04-26 10:52:46 +08:00
pandamicro 661c5327e7 Tranform properties API polyfill for 3d 2018-04-26 09:35:48 +08:00
pandamicro ef97c6fa2b Support 3d transform with polyfill3d 2018-04-20 00:45:15 +08:00