mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Sync branch v2.2.0 to v2.3.0
This commit is contained in:
+8
-12
@@ -3,7 +3,7 @@ Cocos2d-x, compact version
|
||||
|
||||
<a href="https://travis-ci.org/cocos-creator/cocos2d-x-lite"><img src="https://travis-ci.org/cocos-creator/cocos2d-x-lite.svg?branch=develop " alt="Build Status"></a>
|
||||
|
||||
It is based on [cocos2d-x](https://github.com/cocos2d/cocos2d-x)[version 3.9], but remove 3D and other features. It works on iOS,OS X, Android and Windows.
|
||||
It is based on [cocos2d-x](https://github.com/cocos2d/cocos2d-x)[version 3.9], but remove 3D and other features. It works on iOS, Android, macOS and Windows.
|
||||
|
||||
------------------------------------------------
|
||||
|
||||
@@ -43,19 +43,15 @@ Git user attention
|
||||
1. Clone the repo from GitHub.
|
||||
|
||||
$ git clone https://github.com/cocos-creator/cocos2d-x-lite.git
|
||||
|
||||
2. After cloning the repo, please execute `download-deps.py` to download and install dependencies.
|
||||
|
||||
$ cd cocos2d-x-lite
|
||||
$ python download-deps.py
|
||||
|
||||
3. After running `download-deps.py`.
|
||||
|
||||
$ git submodule update --init
|
||||
|
||||
4. Build simulator
|
||||
|
||||
$ npm install
|
||||
|
||||
2. After cloning the repo, please execute `gulp init` to download and install dependencies.
|
||||
|
||||
$ gulp init
|
||||
|
||||
3. Build simulator
|
||||
|
||||
$ gulp gen-simulator
|
||||
$ gulp update-simulator-config
|
||||
|
||||
|
||||
@@ -363,8 +363,6 @@ enum class CanvasTextBaseline {
|
||||
[_tokenAttributesDict removeObjectForKey:NSForegroundColorAttributeName];
|
||||
|
||||
[_tokenAttributesDict setObject:paragraphStyle forKey:NSParagraphStyleAttributeName];
|
||||
[_tokenAttributesDict setObject:[NSNumber numberWithFloat: _lineWidth * 2]
|
||||
forKey:NSStrokeWidthAttributeName];
|
||||
[_tokenAttributesDict setObject:[NSColor colorWithRed:_strokeStyle.r
|
||||
green:_strokeStyle.g
|
||||
blue:_strokeStyle.b
|
||||
@@ -374,7 +372,8 @@ enum class CanvasTextBaseline {
|
||||
|
||||
// text color
|
||||
CGContextSetRGBFillColor(_context, _fillStyle.r, _fillStyle.g, _fillStyle.b, _fillStyle.a);
|
||||
|
||||
CGContextSetLineWidth(_context, _lineWidth);
|
||||
CGContextSetLineJoin(_context, kCGLineJoinRound);
|
||||
CGContextSetShouldSubpixelQuantizeFonts(_context, false);
|
||||
CGContextBeginTransparencyLayerWithRect(_context, CGRectMake(0, 0, _width, _height), nullptr);
|
||||
|
||||
|
||||
+2
-1
@@ -63,7 +63,8 @@ function downloadSimulatorDLL(callback) {
|
||||
Download('http://192.168.52.109/TestBuilds/Fireball/simulator/dlls/dll.zip', destPath, {
|
||||
mode: '755',
|
||||
extract: true,
|
||||
strip: 0
|
||||
strip: 0,
|
||||
agent: null,
|
||||
}).then(function(res) {
|
||||
callback();
|
||||
}).catch(callback);
|
||||
|
||||
Reference in New Issue
Block a user