Commit Graph

69 Commits

Author SHA1 Message Date
zhakesi fed044e8fb optimize opacity update (#9679)
* optimize opacity update

* remove _cacheAlpha

* modify code style

* Update cocos/core/scene-graph/node-ui-properties.ts

* Update cocos/core/scene-graph/node-ui-properties.ts

* 1. supplement unit test case
2. supplement default dirty parameter

(cherry picked from commit 7e62d265ffbc8566e92bfcc10c1f9eb68e081487)

Co-authored-by: Santy-Wang <wh19930829@qq.com>
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-11-19 17:35:19 +08:00
ChiaNing cbc142f89c fix label memory leak when destroy (#9677)
* fix label memory leak when  destroy

* function move
2021-11-17 17:15:19 +08:00
Zhang mingzhen 60cae28a26 Optimize label serialization of "spacingX" and "underlineHeight" on v3.4 (#9628)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-11-05 14:07:09 +08:00
ChiaNing 92c0e7c154 fix set trim bug (#9568) 2021-10-29 11:48:22 +08:00
Zhang mingzhen 1448c55ab7 update tooltips of "cocos/2d" and "cocos/ui"#9163 (#9489)
* Update tooltips of sprite-frame and texture(#9163)

* Supplement some tooltips and annotations of som attributes in folder "cocos/2d/component" and "cocos/ui"

* Optimize some tooltips according to comments of PR

* optimize tooltips according to comment at 2021/10/19

(cherry picked from commit fe3d0a910fe11489521c46656343483a502594c3)

* fix "anisotropy" interpretation.It emphasizes threshold instead of just amount.

(cherry picked from commit d06a8c3d6b2d4205a9a51dc769d32ae1eb707b9a)

* optimize tooltips according to EricCorleone's comment at 2021/10/19

(cherry picked from commit df7044bb73a0e1b1dc1f9e946a45d96bc839b00e)

* optimize tooltips according to Xunyi0's comment at 2021/10/20

(cherry picked from commit 6b42df5c69d12a74adee44bc9add2c27e6064c9f)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-10-25 11:49:58 +08:00
ChiaNing c6a80a8310 fix graphics draw info bug (#9529) 2021-10-25 10:11:56 +08:00
ChiaNing 97fb689578 fix ui-static-batch crash on native (#9488) 2021-10-14 17:50:00 +08:00
ChiaNing c7e432e50b fix trim bug (#9451) 2021-10-14 10:29:36 +08:00
ChiaNing f54c8f5844 fix tiled bug for GPU Mode (#9456) 2021-10-11 13:46:19 +08:00
ChiaNing 24fe3ff784 UI GPU dirven add (#9378)
* uniform

* uniform buffer add

* add dummy IA

* first working version

* misc & data structure optimize

* fix webGL1 bug

* rebase on 3.3

* add maxQuadPerDrawcall by device
现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定

* add index

* index bug fix

* sliced ia add(Not finish)

* change mat4 to vec4

* change stride num

* new vec4PreUI finish

* misc fix

* size & anchor dirty add

* bug fix

* add UICapacityDirty

(cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1)

* static buffer cache version

(cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119)

* static buffer update version

(cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c)

* cache localbuffer

(cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791)

* fix setPosition event & fix DS release

* weak sliced & filp tiled mode add

* fix tiled y

* fix sliced bug

* ugly but work filled type add

* update effect

* filled mode effect

* shader fix

* RenderData dirty for render data update

* revert fillbuffer

* misc fix

* support label bmfont by meshBuffer

* fix sliced bug & commit Model

* fixed some render dirty flag bug

* cut code by macro.UI_GPU_DRIVEN

* cut code by UI_GPU_DRIVEN Macro on build

* cut file by UI_GPU_DRIVEN

* I-batcher interface add

* remove render queue cache

* file name change

* file name change

* after merge

* fix for v3.4

* useless remove

* fix texture rotation

* fix sliced when atlas rotation

* useless code remove

* native bind

* update effect

* fix DynamicOffsets bind bug

* PR review fix

* effect encapsulation

* change chunk

* update effect

* update shader

* remove color in fs

* move code

* fix UBO buffer bug

* fix ubo count to 10

* fix vk bind
2021-09-29 22:32:33 +08:00
PP 5878829d51 refactor UI pointer event dispatcher (#9363)
* optimize node event processor

# Conflicts:
#	cocos/core/scene-graph/node-event-processor.ts
#	cocos/core/scene-graph/node.ts

* support pointer event dispatcher

* remove event manager, event listener

# Conflicts:
#	cocos/core/director.ts
#	cocos/input/index.ts

* remove docs for event-manager

* fix pointer lock on web

* BREAKING-CHANGE: ui-transform.isHit interface

ud

* fix CI

* fix CI

* activeInHierarchy
2021-09-24 13:34:43 +08:00
santy-wang 6391b5705a Merge branch 'v3.3.2' of github.com:cocos-creator/engine into v3.4.0-physx 2021-09-24 12:11:48 +08:00
ChiaNing 8be1785d8d fix mask graphics enable bug for android (#9317) 2021-09-11 10:35:40 +08:00
santy-wang c87577b809 Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4 2021-09-09 13:33:35 +08:00
ChiaNing 68c5a04416 fix mask graphics enable bug & update builtin res meta (#9301) 2021-09-08 16:30:21 +08:00
PP 97b3657549 migrate input module out of platform (#9296)
* migrate input module out of platform

* revert EventKeyboard.isPressed deprecation

* fix CI
2021-09-07 15:24:43 +08:00
GengineJS fd1ea41235 Fix the problem of deferred pipeline uimodel without light and metal crash (#9261)
* Fix the problem of deferred pipeline uimodel without light and metal crash

* update effect

* update comment

* update comment

* modify comment
2021-09-01 15:51:56 +08:00
ChiaNing 844b1ea8d8 fix rich text color bug (#9240)
* fix rich text color bug

* reset other value
2021-08-25 18:10:40 +08:00
ChiaNing 5af3102b67 fix label opacity change bug (#9049) 2021-07-23 15:55:29 +08:00
Santy-Wang 00367f39e1 support auto-finalization in editor (#9008)
* support auto-finalization in editor

* refine

* refine

* handle global variable

* refine

* fix bug

* refine

* use debug instead
2021-07-23 15:10:40 +08:00
ChiaNing 7c05ca3bd3 fix label insert atlas twice bug (#9035)
* fix label insert atlas twice bug

* change function
2021-07-22 16:22:43 +08:00
ChiaNing b157f056eb label string null protect (#9015)
* label string null protect

* update change
2021-07-20 16:03:34 +08:00
Santy-Wang 9d23637f06 delete useless code (#8601)
* delete useless code

* refine format and fix typo
2021-07-09 14:38:04 +08:00
santy-wang c5dd05fbf1 Merge branch 'v3.1.2' of github.com:cocos-creator/engine into v3.3-merge 2021-06-28 14:40:34 +08:00
ChiaNing cbf7090542 sprite fillbuffer cache & sprite misc change when set spf (#8876)
* sprite fillbuffer cache & sprite misc change when set spf

* misc fix

* remove Rect Dirty & add uiTransformDirty

* remove getHash
2021-06-25 13:57:24 +08:00
troublemaker52025 8d0e57b0c5 Delete imageAsset.texture for v3.3 (#8707)
* delete imageAsset._texture for v3.3

* fix merge

* update

* update
2021-06-10 10:56:27 +08:00
minggo 424232493e Merge pull request #8777 from minggo/merge_v3.1.2
Merge v3.1.2
2021-06-09 14:12:21 +08:00
PP 4914116834 optimize SystemEventType and NodeEventType (#8678)
* remove recomendation for usage of string type of event

* deprecate KEY_DOWN KEY_UP event

* support SystemEventType.KEYBOARD_DOWN && SystemEventType.KEYBOARD_UP

* deprecate some useless properties

* implement keyboard pal

* remove SystemEventType toString()

update

* fix instantiating EventTouch

* optimize deprecated info

* support native keyboard KEYBOARD_DOWN event

* remove usage of event code

* fix deprecating pure value properties

* optimize deprecating Event type

* optimize deprecating getEventCode()

update

* optimize deprecating eventType

* optimize deprecating isPressed

* optimize deprecating keybaord event

* optimize deprecating rawEvent

* Revert "fix deprecating pure value properties"

This reverts commit 60d586532496fa1f422f05c54a922b86d1dc96ee.

* fix deprecate pure value properties

* Revert "fix deprecate pure value properties"

This reverts commit a83f1725fedfbd7af445892912aacab8e8502147.

* fix deprecating pure value property

* update

updaate

* deprecate some EventType enum in SystemEventType and NodeEventType

* optimize

* update

update

* update

* update

* fix CI

* fix CI

* fix Circular dependency

* fix Circular dependency
2021-06-07 19:06:29 +08:00
ChiaNing 968173d595 fix mask & graphics memory leak (#8746)
* fix mask & graphics memory Leak

* misc fix
2021-06-01 19:24:26 +08:00
Santy-Wang 102916833c fix typo (#8633) 2021-05-06 14:30:47 +08:00
ChiaNing 587c40dc31 add char mode warn when size too big & sprite dirty bug (#8595)
* add char mode warn when size too big & sprite dirty bug

* update
2021-04-29 16:38:25 +08:00
ChiaNing ef119af6ec hot point (#8540)
* hot point

* Revert

* Optimize non-skeletal curves

Co-authored-by: shrinktofit <leslieleigh@outlook.com>
2021-04-25 20:20:22 +08:00
ChiaNing 98bf04576f remove event at _applySpriteFrame (#8517)
* remove event at _applySpriteFrame

* remove version dirty
2021-04-22 16:52:18 +08:00
ChiaNing cfcd66a76a fix auto Atlas PersistRootNode bug (#8500)
* fix auto Atlas PersistRootNode bug

* name change
2021-04-20 18:20:46 +08:00
GengineJS 8b89c3fef2 [Feature] Rt adaptation (#8483)
* [Feature] Rt adaptation

* [Feature] Effect adds CC_HANDLE_GET_CLIP_FLIP function

* update effect

* update effects
2021-04-19 20:05:48 +08:00
Santy-Wang 2b3ab66a47 add asset place holder and remove deferred loading (#8473)
* remove deferred loading and add place holder

* resolve circle referenced

* support most of asset

* refine

* fix bugs

* refine

* should use getClassId

* change name

* change name

* change isPlaceHolder to isDefault
2021-04-19 19:48:27 +08:00
ChiaNing edfaa4ad64 UI opacity Refactoring (#8384)
* UI opacity Refactoring

* add dirty flag

* fix bmfont

* change for update
2021-04-16 19:03:41 +08:00
troublemaker52025 05a72cdee1 Delete private node for v3.1 (#8382)
* delete private node

# Conflicts:
#	cocos/core/scene-graph/private-node.ts

* update

* Alias of Node

* update

* dont use enum ALL

* fix bug for editor

* update

* update

* update

* Retaining deprecated objects

* update

* update

* update

* using warnID and update EngineErrorMap.md
2021-04-08 17:47:05 +08:00
Santy-Wang d9f7793971 merge v3.0.1 2021-03-18 16:39:41 +08:00
ChiaNing 05134e29bf BlendState deprecate (#8361)
* BlendState deprecate

* tips change
2021-03-18 14:30:59 +08:00
ChiaNing 362a3770ce mask graphics destroy bug fix (#8375) 2021-03-18 11:14:38 +08:00
ChiaNing 0cdcff2de5 bmfont support compressTexture (#8364) 2021-03-17 10:36:16 +08:00
ChiaNing 24e9e573f0 fix richText maxWidth bug (#8345)
* fix richText maxWidth bug

* add notice
2021-03-11 19:12:47 +08:00
ChiaNing f219fd20a0 fix mask un-do bug (#8338) 2021-03-10 14:01:48 +08:00
mmyduckx eefc5e8b61 2d module support zh/en UItooltip (#8332) 2021-03-07 16:35:20 +08:00
ChiaNing cfa42f5b4c fix static ui bug on iOS 14 (#8320) 2021-03-04 11:12:04 +08:00
ChiaNing 2a5778b55d update assembler RenderData when label updateRenderData force (#8316) 2021-03-02 19:11:37 +08:00
ChiaNing 034e380b50 mask event through bug (#8313)
* mask event through bug

* update
2021-03-02 13:51:19 +08:00
ChiaNing 15a4041aa5 fix mask event through bug (#8293) 2021-02-26 14:31:00 +08:00
ChiaNing bb9125e07f Change component menu (#8249)
* Change component menu

* update
2021-02-03 11:11:42 +08:00