Commit Graph

731 Commits

Author SHA1 Message Date
James Chen cd07d03b7d Removes wx API invocations for JSB projects. (#2668)
* Removes wx API invocation for JSB projects.

* sys.openURL fix for JSB.

* touches, mouse, keyboard capabilities check.
2018-05-11 18:00:40 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
Jare Guo 04d8a432f6 fix _id in editor (#2658) 2018-05-09 19:31:34 +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 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 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 7b98f49cd6 Fix updateWorldVerts based on worldMatUpdated and other issues (#2593)
* Fix updateWorldVerts based on worldMatUpdated

* Fix issues
2018-04-24 22:23:18 +08:00
minggo 92241e4ca9 fix bugs for new renderer (#2574)
* gulp task: add clean cache & support native renderer

* fix binding codes of Texture2D.updateSubImage

* fix some issues

* fix Texture2D.updateSubImage()
2018-04-20 14:43:58 +08:00
pandamicro ef97c6fa2b Support 3d transform with polyfill3d 2018-04-20 00:45:15 +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 27f2bd412c Fix js.getset 2018-04-17 10:36:34 +08:00
pandamicro 3ffdf16c61 Fix issues for next merging dev 2018-04-16 19:44:34 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
pandamicro e7a1d59dcc Remove useless typeof check 2018-04-16 16:31:35 +08:00
Jare Guo c2368128aa minor update 2018-04-13 23:10:42 +08:00
Jare Guo 75b922eed3 remove resources path from settings.js 2018-04-12 09:51:19 +08:00
Jare Guo 0a932aef00 replace all RawAssets with Assets 2018-04-09 14:48:21 +08:00
Jare Guo d6332ae1a5 Merge pull request #2504 from cocos-creator/v1.9
sync branch
2018-04-04 18:22:59 +08:00
James Chen ee3afd4403 bugfix in equalsToDefault. 2018-04-04 17:32:29 +08:00
James Chen ebef9795a0 Merge runtime builtin scripts. 2018-04-03 20:55:02 +08:00
zilongshanren 9634311fe7 fix qqplay multiple touch 2018-03-30 16:49:21 +08:00
minggo 02bc807ebf merge and fix conflict 2018-03-30 10:34:50 +08:00
minggo 5a05af7795 fix according review comments 2018-03-30 10:25:54 +08:00
minggo a87ae66cb2 helloworld can run correctly 2018-03-28 09:15:17 +08:00
pandamicro 2e8198861a Support colored image 2018-03-27 18:22:27 +08:00
minggo d9c0236e50 jsb adapt 2018-03-26 14:54:34 +08:00
minggo f91bab267f merge h5 and fix conflict 2018-03-26 11:05:19 +08:00
pandamicro 0fb074ec82 Cleanup old deprecated APIs 2018-03-22 16:58:55 +08:00
pandamicro 259f1c565a Cleanup View APIs 2018-03-22 16:24:32 +08:00
Cocos Ass 4ca7a671ce add Chinese note to 2.0 scripts
add Chinese note to 2.0 scripts
2018-03-22 14:42:13 +08:00
Jare Guo 3210895e46 Merge 1.9
# Conflicts:
#	cocos2d/core/CCGame.js
#	cocos2d/core/load-pipeline/pack-downloader.js
#	cocos2d/core/platform/CCObject.js
2018-03-22 13:45:42 +08:00
knox 2a0bfd932d improve multi-touch for qqplay 2018-03-22 12:05:02 +08:00
Jare Guo f2c37f6f27 Merge pull request #2460 from umbrellaPP/v1.9
optimize getComponent performance
2018-03-22 00:20:26 +08:00
PP 74fa58895e optimize getComponent performance
optimize getComponent performance


optimize getComponent performance


optimize getComponent performance
2018-03-21 18:41:06 +08:00
minggo 0863363f32 merge from h5 2018-03-21 09:56:04 +08:00
pandamicro 8cf3e3114e Add antialias macro, cherry pick from next. 2018-03-20 20:02:29 +08:00
pandamicro cd8f4d3caa Merge pull request #2447 from jareguo/v1.9
support indicates whether the object will be destroyed by using cc.isValid
2018-03-20 17:37:05 +08:00
pandamicro 9e0c688de7 Cleanup CCMacro 2018-03-19 22:30:52 +08:00
pandamicro 196c4000e9 Fix issues 2018-03-19 20:57:57 +08:00
pandamicro f92894ea08 Remove CCTypes 2018-03-19 18:40:14 +08:00
knox 1fb848e7a7 refine code 2018-03-19 14:32:13 +08:00
pandamicro 6e0825cd78 Fix other cc.p usage 2018-03-19 12:43:15 +08:00
knox b0410c0283 refine code 2018-03-18 19:31:55 +08:00
knox 95de04f08b refine code 2018-03-18 15:49:30 +08:00
knox 9e73f50620 add wechatgame subdomian 2018-03-17 12:47:14 +08:00
Jare Guo 7d95be5f18 allow cc.isValid to indicates whether the object will be destroyed 2018-03-16 11:35:28 +08:00
pandamicro 2ccb7c1dd4 Add default touch id for mouse simulated touch 2018-03-15 15:56:34 +08:00
pandamicro 9a61e299db Add antialias macro 2018-03-15 15:17:20 +08:00
pandamicro d9b219c68c Cleanup macros 2018-03-14 17:02:26 +08:00