From 16c07441beed67761ad4264ddb16a45049f4ad9d Mon Sep 17 00:00:00 2001 From: caizhitao Date: Fri, 27 Dec 2019 23:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A9=AC=E8=B5=9B=E5=85=8Bde?= =?UTF-8?q?mo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/materials/sprite-mosaic.mtl | 4 ++-- assets/scenes/MosaicEffectScene.fire | 18 +++++++++--------- assets/scripts/MosaicEffectScene.ts | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/assets/materials/sprite-mosaic.mtl b/assets/materials/sprite-mosaic.mtl index 6f80048..08d93ec 100644 --- a/assets/materials/sprite-mosaic.mtl +++ b/assets/materials/sprite-mosaic.mtl @@ -11,7 +11,7 @@ "USE_MOSAIC": true }, "_props": { - "xBlockCount": 30, - "yBlockCount": 30 + "xBlockCount": 50, + "yBlockCount": 50 } } \ No newline at end of file diff --git a/assets/scenes/MosaicEffectScene.fire b/assets/scenes/MosaicEffectScene.fire index de16110..614d822 100755 --- a/assets/scenes/MosaicEffectScene.fire +++ b/assets/scenes/MosaicEffectScene.fire @@ -171,7 +171,7 @@ "array": [ 0, 0, - 492.17758360225525, + 492.7684547533456, 0, 0, 0, @@ -2128,7 +2128,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 384, - "height": 583.73 + "height": 598.4 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2140,7 +2140,7 @@ "ctor": "Float64Array", "array": [ 288, - 291.865, + 299.2, 0, 0, 0, @@ -2657,8 +2657,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 167.5, - "height": 33.33 + "width": 201, + "height": 48 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2670,7 +2670,7 @@ "ctor": "Float64Array", "array": [ 0, - -567.065, + -574.4000000000001, 0, 0, 0, @@ -2710,8 +2710,8 @@ "_useOriginalSize": false, "_string": "BM Font", "_N$string": "BM Font", - "_fontSize": 40, - "_lineHeight": 40, + "_fontSize": 48, + "_lineHeight": 48, "_enableWrapText": true, "_N$file": { "__uuid__": "4c95de7e-8cca-47bf-a446-47b7594e0992" @@ -2764,7 +2764,7 @@ "_layoutSize": { "__type__": "cc.Size", "width": 384, - "height": 583.73 + "height": 598.4 }, "_resize": 1, "_N$layoutType": 2, diff --git a/assets/scripts/MosaicEffectScene.ts b/assets/scripts/MosaicEffectScene.ts index 01b2064..5409ac7 100644 --- a/assets/scripts/MosaicEffectScene.ts +++ b/assets/scripts/MosaicEffectScene.ts @@ -37,10 +37,10 @@ export default class MosaicEffectScene extends cc.Component { } private _onSliderChanged() { - let xMosaicCount = Math.round(this._xMosaicCountSlider.progress * 100); + let xMosaicCount = Math.round(this._xMosaicCountSlider.progress * 300); this._xMosaicCountSliderLabel.string = `${xMosaicCount}`; - let yMosaicCount = Math.round(this._yMosaicCountSlider.progress * 100); + let yMosaicCount = Math.round(this._yMosaicCountSlider.progress * 300); this._yMosaicCountSliderLabel.string = `${yMosaicCount}`; // 更新材质