Commit Graph

296 Commits

Author SHA1 Message Date
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
ChiaNing 0587992cb1 fix label Blend Factor bug for BYTEDANCE (#10516)
* fix label Blend Factor bug for BYTEDANCE

* update
2022-03-26 18:53:07 +08:00
PP 5ef14f649f remove help decorator on non-component class (#10503) 2022-03-25 16:25:30 +08:00
PP 96f3bd00e3 fix pointer event when camera.orthoHeight changed (#10496)
* deprecated uiTransform.isHit with hitTest method

* use hitTest instead of isHit

* add type info

* update
2022-03-25 13:53:09 +08:00
ChiaNing e348ae4e2e clear Particle under UIMeshRenderer when play end (#10468)
* clear Particle under UIMeshRenderer when play end

* format

* format change
2022-03-23 20:21:26 +08:00
Zhang mingzhen f7c2559944 Chunk renderdata reform v3.6 (#10329)
* reform chunk & renderdata

* add some optimizations

* update eslint

* add optimizations

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-23 11:21:33 +08:00
pandamicro d3f5e58acc Fix templates and minor tweaks (#10434)
* Fix templates

* Minor tweaks

* Minor
2022-03-22 17:22:41 +08:00
Santy-Wang ab82e1b42d remove hidden (#10414)
* remove hidden

* fix typo

* fix unit-test

* turn on auto fix
2022-03-22 15:11:16 +08:00
zhakesi 1f4e10a0c8 fix spine/dragonbones opacity update (#10349)
* fix spine/dragonbones opacity update

* fix use ui-opacity with spine on editor

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-21 19:51:34 +08:00
ChiaNing 44b78f0a89 fix opacity dirty bug when parent change (#10416) 2022-03-21 19:13:51 +08:00
alpha 5647498081 UIOpacity Component DisallowMultiple (#10390) 2022-03-21 13:52:39 +08:00
Zhang mingzhen 9c37363b69 use approx instead of === (#10357)
* use approx instead of ===

* remove rebundant as
2022-03-16 13:39:11 +08:00
Zhang mingzhen 8d3c975116 Rich text v align v3.5 #9984 new (#10340)
* add vertical alignment attribute

(cherry picked from commit fc4013e4016203c9ff13c3fb55ab24d8f6afdd82)

* set vertical alignment

(cherry picked from commit 60afa526e215c6e599560683427701baf42595c8)

* distinguish hAlign and vAlign

(cherry picked from commit 010e097b5c862a8373e860f01c1104b6396f81ba)

* use as instead of instanceof

* reorder attributes

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-15 16:27:30 +08:00
Zhang mingzhen 8d0108807e Rich Text Optimization (#9601)
* split long string into short pieces

* Add '\n' toughly, to be optimized.

* Unified offset of rendering label of ttf and bmfont

* remove chinese or redundant explanations

* step1.optimize truncate long string

* step2: add details

* optimization of tough switching line

* 1. add condition if maxWdith is over 2048.
2. add a ErrorOffset to avoid a little characters will overstep these designed lines.

* remove log

* remove rebundant code and rename the method

* resolve bug: complete english words are truncated

* revert "remove annotations"

* Revert "Unified offset of rendering label of ttf and bmfont"

This reverts commit 37d6a57d820ad5be09a90510526e85e8cca77c5a.

* optimize split algorithm

* consider one char step condition (for chinese characters)

* update conditions causing many bugs

* remove rebundant code

* add two optimizations
1. split with '\n' earlier, excute the method less;
2. when the left string size is less than 2048, the method can finish.

* remove annotated code

* resolve confict

* add internal annotation

* replace "internal" by "engineInternal"

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-10 16:21:47 +08:00
Zhang mingzhen b2e497adc5 update richtext truncation condition (new) (#10252)
* update richtext truncation condition

(cherry picked from commit 585eab687a039e5e6caa76ac465b4285f3711710)

* remove rebundant condition

(cherry picked from commit a04bef01fbe8ff61ae3aebc1daf8fe5bda2d58cf)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-09 16:09:00 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
santy-wang 10349e567d Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-03-08 10:21:39 +08:00
ChiaNing cb721f1d81 fix atlas bug when spriteframe is null (#10239) 2022-03-04 11:57:15 +08:00
ChiaNing 9f1a230018 fix merge batches bug when multi canvas (#10232) 2022-03-03 11:07:39 +08:00
ChiaNing bd89a7bc1a protect when texture insert to atlas (#10214) 2022-03-03 10:01:24 +08:00
黄森斌 4f05432c23 Displayorder is removed from the edit template and is taken over completely by the decorator (#10165) 2022-03-02 21:14:37 +08:00
pandamicro 1446db89e7 Merge branch 'v3.4.2' into v3.5.0
# Conflicts:
#	cocos/2d/components/sprite.ts
#	cocos/2d/framework/ui-transform.ts
#	cocos/2d/renderer/render-uniform-buffer.ts
#	cocos/core/builtin/effects.ts
#	cocos/core/builtin/shader-sources/glsl1.ts
#	cocos/core/builtin/shader-sources/glsl3.ts
#	cocos/core/builtin/shader-sources/glsl4.ts
#	cocos/dragon-bones/ArmatureDisplay.ts
#	cocos/spine/skeleton.ts
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk
#	editor/assets/chunks/cc-sprite-fs-gpu.chunk.meta
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk
#	editor/assets/chunks/cc-sprite-vs-gpu.chunk.meta
#	editor/assets/default_skybox.meta
#	editor/assets/effects/builtin-sprite-gpu.effect.meta
2022-02-28 17:24:02 +08:00
zhakesi c2d0dad3d1 fix mask invalid for spine/db (#10201) 2022-02-28 15:40:27 +08:00
ChiaNing e378c85ab1 fix canvas camera resize bug in editor (#10164)
* fix canvas camera resize bug in editor

* event off
2022-02-28 14:25:10 +08:00
pandamicro 2ba83f18a4 Ensure RenderData.clear won't break usability (#10177)
* Cleanup Renderable2D onDestroy and destroyRenderData

* Ensure RenderData.clear won't break usability

* Remove quad render data

* Fix Skeleton.destroyRenderData

* Small tweak

* Fix ci

* Add protection to buffer accessor size calculation

* Cleanup spine & dragonbones code

* Improve DragonBones draw list management

* Fix currRenderData state issue
2022-02-25 14:56:54 +08:00
Santy-Wang b57b805e8b Revert "fix fuzzy text on high resolution displays (#9888)" (#10157)
This reverts commit 24f74e178c.
2022-02-22 23:06:10 +08:00
Santy-Wang 2aed94a34f Revert "change DPR to 1 when BMfont (#10154)" (#10156)
This reverts commit c27b2d34b6.
2022-02-22 23:02:02 +08:00
ChiaNing c27b2d34b6 change DPR to 1 when BMfont (#10154) 2022-02-22 19:20:04 +08:00
Zhang mingzhen 782be9bdce add extra name like cc.xxx from legacyCC namespace (#10076)
* add extra name as cc.xxx from legacyCC namespace

* remove rebundant code

* remove rebundant namespaces

* fix unit test bug. supplement global variables classes.

* UIModel->UIMeshRender

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-02-21 14:14:16 +08:00
pandamicro 50a43e18e4 Shared vb accessor for spine (#10077)
* Robust updateOpacity in batcher & cleanup code

* Support Batcher2D commitIA

* Support customized buffer size for StaticVBAccessor

* Reorganize RenderData logic and prepare spine refactor

* spine realTimeTraverse using dedicated accessor

* Support spine clipping

* Fix updateOpacity in batcher 2d

* Support Spine cache mode

* Fix ci

* Use different accessor for tint spine

* Update effect

* Fix native spine and dagonbones IA range issue

* Fix spine tint accessor registartion

* Revert darkColor default value

* Fix spine accessor switching issue and render data init issue

* Shared vb accessor for dragonbones (#44)

* Shared vb accessor for dragonbones

* fix code style

* add explanation why need resize render data in realTimeTraverse

Co-authored-by: zhakesi <liqiao@cocos.com>
2022-02-18 15:24:59 +08:00
ChiaNing f08fdd13a8 Sprite grayscale use compress Texture bug (#10129) 2022-02-18 14:35:48 +08:00
PP 54f2dad263 fix pointer event list manager (#10084)
* fix pointer event list manager

* optimize
2022-02-17 10:01:12 +08:00
ankye sheng 24f74e178c fix fuzzy text on high resolution displays (#9888)
* fix fuzzy text on high resolution displays

* modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

fix rebase 3.4.2 ,limit dpr 1 or 2

fix font min dpr

fix font min dpr

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

Merge branch 'v3.4.1' of github.com:ankye/engine into v3.4.1

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

fix rebase 3.4.2 ,limit dpr 1 or 2

fix font min dpr

fix eslint error

fix fuzzy text on high resolution displays

fix fuzzy text on high resolution displays

modify devicePixelRatio scale factor and fix eslint

modify devicePixelRatio scale factor and fix eslint

fix eslint error

fix fuzzy text on high resolution displays

Co-authored-by: shengxiehua <shengxiehua@soulapp.cn>
2022-02-16 10:09:22 +08:00
ChiaNing 2bae6537f5 fix renderData update bug when renderable2d not render (#10101) 2022-02-14 18:41:46 +08:00
zhakesi b3946bc07b fix native platform mesh-render-data index error. (#10071) 2022-02-10 16:38:39 +08:00
Zhang mingzhen 6583e1eeac add condition that node.uiprops is valid (#10060)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-02-09 15:38:35 +08:00
ChiaNing 8f87cbd483 useless UI_GPU code delete (#10048) 2022-01-25 19:14:41 +08:00
santy-wang 41fe64b097 Merge branch 'v3.5.0' of https://gitlab.cocos.net/publics/engine into v3.6.0 2022-01-24 17:45:05 +08:00
santy-wang 995f5b2d41 Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge 2022-01-24 15:56:49 +08:00
zxx43 55cd1f9e61 V3.4.2 2d particle fix (#10038)
* fix 2d particle bug

* modify engine version
2022-01-24 13:22:44 +08:00
pandamicro 1ed6b85579 Temporary fix for tiled map with custom nodes (#10017)
* Revert "use byteLength instead of byteCount in tiled-layer (#10008)"

This reverts commit 2d23a28b32.

* Temporary fix for shield node test case
2022-01-19 08:58:23 +08:00
pandamicro be2b44748b Improve mesh buffer for avoid iOS14 performance drop (#10015)
* Improve mesh buffer for avoid iOS14 performance drop

* Fix mesh buffer unit test
2022-01-18 23:13:20 +08:00
ChiaNing 59acd7eec7 sprite event off & fix renderData hash bug (#10012)
* event off

* fix renderData hash bug
2022-01-18 18:18:26 +08:00
ChiaNing 4397003da5 fix sprite rect bug (#10011) 2022-01-18 18:01:47 +08:00
zhakesi 2d23a28b32 use byteLength instead of byteCount in tiled-layer (#10008)
* use byteLength instead of byteCount in tiled-layer

* use byteLength to replace byteCount
2022-01-18 13:35:35 +08:00
ChiaNing fea3f70dbc protect meshBuffer max vertex count (#10005)
* protect meshBuffer max vertex count

* format change
2022-01-17 18:50:20 +08:00
ChiaNing 466a2dc97d change macro for meshBuffer (#10001)
* change macro for meshBuffer

* name change

* test used name change
2022-01-17 16:09:49 +08:00
PP 6167bab1aa fix touch event on IMAGE STENCIL mask component (#10000) 2022-01-17 14:03:09 +08:00
PP 09f5a029ab support EventDispatcherPriority (#9976)
* expect error requestPermission undefined

* support EventDispatcherPriority

* Revert "expect error requestPermission undefined"

This reverts commit fb08ba61987600c8a9237b4202dc46e22e298636.

* fix systemEvent touch event

* Revert "revert deprecate system event (#9941)"

This reverts commit d69d18dc7b.

* optimize code
2022-01-14 10:48:13 +08:00
ChiaNing 085b4a2d2e fix spriteFrame apply time (#9987) 2022-01-13 17:54:20 +08:00