Commit Graph

66 Commits

Author SHA1 Message Date
Zhang mingzhen c0ca3405b5 remove deprecated attributes: srcBlendFactor and dstBlendFactor#6461 (#9533)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-10-26 13:49:52 +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
PP f5511f4c87 Revert "Revert "optimize interface in screen module (#9176)"" (#9490)
This reverts commit b88d4845cc.
2021-10-15 10:21:04 +08:00
pandamicro b88d4845cc Revert "optimize interface in screen module (#9176)"
This reverts commit 4735476945.
2021-10-14 23:07:23 +08:00
PP 4735476945 optimize interface in screen module (#9176)
* optimize interface in screen module

* remove DPR calculating

* update screen-adapter init

* set screen.resolutionScale as 1 by default

* remove pixelRatio getter in system-info

* remove sys.windowPixelRatio access

* optimize screen.windowSize

update

* convertToCocosScreenSpace

* change resolution-change to window-resize

* fix native UI

update

update UI

update UI

* optimize screen init

* fix subContextView

* fix root resize

* fix precision issue on Metal render end

* sys.windowPixelRatio

* use warnID

* remove screen.convertToCocosScreenSpace

* put private property and method together after public ones

* warnID

* fix landScape on CocosPlay

* fix DPR on vivo platform

* fix CI
2021-10-14 22:16:34 +08:00
ChiaNing 9e4bafcbdd fix custom material bug (#9482)
* fix custom material bug

* change material default value
2021-10-14 10:30:09 +08:00
ChiaNing 6f1c083ba4 fix renderData null bug (#9476) 2021-10-14 10:29:37 +08:00
ChiaNing 26ce72983f fix contentSize bug when alpha is zero (#9434) 2021-10-14 10:29:37 +08:00
ChiaNing 8d916b9816 fix rotation with anchor (#9453) 2021-10-11 11:29:52 +08:00
ChiaNing a360eec69b fix canRenderBug when color change (#9437) 2021-09-30 18:00:59 +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
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
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
ChiaNing b4d2b3e7c1 fix canvas off bug (#9128) 2021-08-04 16:09:22 +08:00
ChiaNing 48bf90d61d fix canvas targetTexture bug (#9116)
* fix canvas targetTexture bug

* resize camera by event

* name change
2021-08-04 12:01:55 +08:00
ChiaNing aef1c2038d fix sprite opacity change bug when start zero (#9057) 2021-07-23 18:54:06 +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 33725d600f fix rich Text opacity bug (#8985)
* fix rich Text opacity bug

* update opacity use currOpacity
2021-07-18 17:34:08 +08:00
PP d7067c29c8 deprecate interface in View module && support pal/screenManager (#8836)
* remove BrowserGetter

* deprecated view.adjustViewportMeta

* deprecate view.enableAutoFullScreen and view.isAutoFullScreenEnabled

* remove view._adjustSizeKeepCanvasSize

* remove view._convertMouseToLocation, view._convertTouchWidthScale and view._convertTouchesWithScale

* remove view._originalDesignResolutionSize

* deprecate cc.winSize and cc.visibleRect

update

* access local winSize

* access local visibleRect

* deprecate view.getVisibleOrigin view.getVisibleOriginInPixel

* Revert "deprecate view.getVisibleOrigin view.getVisibleOriginInPixel"

This reverts commit 1ae9e1d5c51d8c701eaa2e4a65cd4c17e5f6d971.

* Revert "deprecate cc.visibleRect"

* optimize screen module

update

* update

update

* optimize deprecation info

* rename pal/system to pal/systemInfo

* update pal/systemInfo access in engine layer

* support pal/screenManager

* update pal/screenManager access in engine layer

* fix bug

* optimize deprecation info

* fix auto fullscreen

* fix ci

* fix ci

* update change request

update

update

* fix CI
2021-07-09 18:57:03 +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
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
minggo 9f2a83330d merge v3.1.2 2021-06-07 16:01:03 +08:00
cary f37099c294 Change the parameter of the math library to Readonly. (#8765)
* Change the parameter of the math library to Readonly.

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* delete pool
2021-06-04 17:36:15 +08:00
zxx43 e1f5d7393a V3.1.2 optimization #7487 (#8743)
* optimize fillBuffers & updateWorldTransform

* modify _updateWorldAlpha & invalidateChildren

* 3d should consider parent rotation, so use the Vec3.transformMat4 function

* remove if check null

* remove if check
2021-06-02 11:25:40 +08:00
ChiaNing b6352f6bd1 fix node sort bug when value same (#8568) 2021-04-27 15:23:30 +08:00
ChiaNing 00aca35ef2 fix some deprecated value warn (#8553) 2021-04-25 21:08:58 +08:00
ChiaNing f1735ee251 fix ui opacity bug on some type (#8549) 2021-04-25 20:27:29 +08:00
zheng han 2949226876 remove priority visible decorator (#8546) 2021-04-25 16:18:03 +08:00
ChiaNing b7ff216502 fix priority bug when scene change (#8531) 2021-04-23 16:46:43 +08:00
ChiaNing 217bc4c4e6 fix opacity bug (#8504) 2021-04-20 18:01:18 +08:00
ChiaNing b49b50d829 ui priority deprecated (#8477) 2021-04-19 10:30:14 +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
zhefeng.zhang 8d4b4590f0 fixed setMaterial incorrect code (#8415)
* fixed setMaterial incorrect code

* Revert "fixed setMaterial incorrect code"

This reverts commit 6c41e3aed27ad2e5b717c79cdfd7ea0cbcfdfd27.

* correction code
2021-04-16 18:37:32 +08:00
ChiaNing b89c07f2ef UITransform priority change (#8435)
* UITransform priority change

* better version

* update

* name change

* name change
2021-04-15 13:38:35 +08:00
mmyduckx 24359b0b85 fix native spine premultiliedAlpha bug (#8396)
* fix native spine premultiliedAlpha bug

* ci
2021-03-25 13:42:32 +08:00
pandamicro 5005752386 Merge remote-tracking branch 'origin/develop' into v3.1
# Conflicts:
#	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/core/gfx/define-class.ts
#	cocos/core/gfx/define.ts
#	cocos/core/gfx/webgl/webgl-buffer.ts
#	cocos/core/gfx/webgl2/webgl2-buffer.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/planar-shadow-queue.ts
#	cocos/core/pipeline/render-additive-light-queue.ts
#	cocos/particle/renderer/particle-system-renderer-data.ts
#	editor/assets/chunks/cc-shadow-map-fs.chunk
#	editor/assets/chunks/shading-standard.chunk
2021-03-18 18:33:35 +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
Zeqiang Li 0218c98143 Particle system tooltop translation (#8358)
* half completed translation

* Tooltip translation

* add renderable2D

* comment CPU-supported-only features
2021-03-15 18:49:51 +08:00
mmyduckx eefc5e8b61 2d module support zh/en UItooltip (#8332) 2021-03-07 16:35:20 +08:00
pandamicro c5d4c5c08e Merge remote-tracking branch 'origin/v3.0.0' into device-proof
# Conflicts:
#	cocos/3d/assets/morph-rendering.ts
#	cocos/core/builtin/builtin-res-mgr.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/core/pipeline/index.jsb.ts
#	cocos/core/pipeline/planar-shadow-queue.ts
#	cocos/core/pipeline/render-additive-light-queue.ts
#	cocos/core/pipeline/shadow/shadow-flow.ts
#	cocos/particle/renderer/trail.ts
#	cocos/physics/ammo/polyfill-atob.ts
#	editor/assets/effects/builtin-spine-two-colored.effect.meta
#	jest.config.js
#	platforms/native/engine/jsb-pipeline.js
#	tests/general/sealed-global-variables.json
2021-02-07 18:33:59 +08:00
Yun Hsiao Wu 5a02d3f1d0 structure 2021-02-03 17:51:22 +08:00
ChiaNing bb9125e07f Change component menu (#8249)
* Change component menu

* update
2021-02-03 11:11:42 +08:00
ChiaNing d3347dde1c fix ui blendhash default value bug (#8220) 2021-01-27 18:32:23 +08:00
ChiaNing b05dc98cea Fix ui pass hash calculation method (#8217)
* fix ui pass hash calculation method

* useless remove

* bug fix

* hash change

* hash change
2021-01-27 18:15:32 +08:00
PP bdae8e370d cache camera priority in event listener (#8216)
* Revert "cache first render camera (#8215)"

This reverts commit 4cdb7043c9.

* cut down touch move callback

* cache camera priority in event listener

* Revert "cut down touch move callback"

This reverts commit 19da61e3f16c3d1c14c1e8111b0da98b4997dea4.

* fix esLint
2021-01-27 15:56:56 +08:00
PP 4cdb7043c9 cache first render camera (#8215)
* cache first render camera

* fix esLint

* fix esLint

* update var name
2021-01-27 12:50:11 +08:00