Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.1 release merge v2.0 release #3995

Merged

Conversation

2youyou2
Copy link
Contributor

No description provided.

sunnylanwanjun and others added 30 commits February 20, 2019 17:48
Add spine assembler var define
* Fix dragonbones change cloth bug

* Adapt to old api-> on off once

* DragonBonesAsset do not store dragonBones data

* fix some error

* fix web spine debug draw color error

* Set limit time to 30s
…cocos#3876)

* fix: shaders have same uniform name, different type will effect wrong

* fix shaders have same uniform name, different type will effect wrong

* fix shaders have same uniform name, different type will effect wrong, refine
* add the tween test case

* modify the format of the test-tween.js

1. keep all chain method start at the char 'n' below

* fixed the tween bugs
* Add cache mode of label.

* fix revised comments of pr.

* Simplified variable name.

* share canvas pool.

* cancel use node color.

* modify comment and reserve _batchAsBitMap.

* optimize the assignment of color and delete blendFactor.

* delete reserveImage.

* modify to center alignment.

* modify letter-font do not use node color.

* add outline support of letter-font

* add letter atlas reset on editor when scene loaded.

* change LETTER to CHAR

* modify comment
* fix label rendering error on native

* fix rendering error on native

* revert first commit
* reset the CHAR mode to NONE on subdomin.

* reset CHAR mode on subdomin
* Rename skeleton RenderMode to AnimationCacheMode

* Rename skeleton RenderMode to AnimationCacheMode
jareguo and others added 8 commits March 2, 2019 15:06
…creator/engine into v2.1-release-merge-v2.0-release

# Conflicts:
#	cocos2d/core/assets/CCTexture2D.js
#	cocos2d/core/components/CCLabel.js
#	cocos2d/core/components/CCRenderComponent.js
#	cocos2d/core/components/CCSprite.js
#	cocos2d/core/components/editbox/CCEditBox.js
#	cocos2d/core/components/editbox/CCEditBoxImpl.js
#	cocos2d/core/renderer/render-engine.js
#	cocos2d/core/renderer/utils/label/ttf.js
#	cocos2d/core/renderer/webgl/assemblers/label/2d/ttf.js
#	cocos2d/core/renderer/webgl/assemblers/label/index.js
#	cocos2d/particle/CCParticleSystem.js
#	editor/i18n/en/localization.js
#	editor/i18n/zh/localization.js
#	extensions/dragonbones/ArmatureDisplay.js
#	extensions/spine/Skeleton.js
#	extensions/spine/spine-assembler.js
@@ -0,0 +1,88 @@

const RenderComponent = require('../components/CCRenderComponent');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加了 blend-func.js, 用 mixin 的方式添加到 sprite 和 particle class 上,不用每个 class 都重复定义一遍

_context.fillRect(0, 0, _canvas.width, _canvas.height);
_context.font = _fontDesc;

let startPosition = this._calculateFillTextStartPosition();
let lineHeight = this._getLineHeight();
//use round for line join to avoid sharp intersect point
_context.lineJoin = 'round';
_context.fillStyle = 'white';
_context.fillStyle = `rgba(${_color.r}, ${_color.g}, ${_color.b}, 1)`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这边为什么又改为在这里设置 color 了?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一开始的时候有考虑到节点颜色的覆盖会加深描边的颜色,但是有些用户使用白色描边,覆盖之后白色描边就无效了,只能再改回去了。

Copy link
Contributor

@sunnylanwanjun sunnylanwanjun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这一波dragonbones和spine的修改2.0和2.1没有冲突。

****************************************************************************/

const js = require('../../../../../platform/js');
const bmfintAssembler = require('./bmfont');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bmfintAssembler 改为 bmfontAssembler 吧

fillMeshVertices(node, renderer._meshBuffer, comp._renderData, WHITE._val);
},

appendQuad: bmfintAssembler.appendQuad
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bmfintAssembler -> bmfontAssembler

…2.1-release-merge-v2.0-release

# Conflicts:
#	cocos2d/core/CCGame.js
@pandamicro pandamicro merged commit 9c498d7 into cocos:v2.1-release Mar 11, 2019
@2youyou2 2youyou2 deleted the v2.1-release-merge-v2.0-release branch August 30, 2019 10:27
minggo pushed a commit that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants