Commit Graph

326 Commits

Author SHA1 Message Date
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
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
Zhang mingzhen 09352240ce dont force setting overflow clamp when excuting (#10368) 2022-03-18 14:37:43 +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
黄森斌 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
PP ceb1b90570 update editBox size when node resize (#10188) 2022-02-28 11:18:25 +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
Zhang mingzhen ed7e7e552c update recalculate widget data in editor (#9811)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-02-20 15:36:45 +08:00
ChiaNing f6c65524dd fix canvas widget bug in editor (#10052) 2022-02-14 16:46:48 +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
will f369711f40 fix: keep childs with same layer in editbox (#9971) 2022-01-12 14:31:53 +08:00
PP c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
PP fbde8d1e90 use lagacyPublic to marked deprecated public interface (#9859)
* use lagacy-public

* publish beta6

* remove jsDoc tag from constructor

* use legacyPublic

* publish beta 7
2021-12-28 11:48:10 +08:00
PP cc01fad918 support internal interface filter (#9797)
* support interface filter

* publish build-engine@4.2.20-beta.1

* update

* fix other type of statement

* publish @cocos/build-engine 4.2.20

* update lock

* remove `@internal` from constructor documentation

* change to internal_cc tag

* support target tag in interface-filter

* publish  4.2.21-beta.1

* remove `@private_cc` tag

* remove public internal interface

* remove public internal getter setter

* remove public declare internal property

* update

* remove `__editorExtrasTag__`

* remove public internal interface on `js`

* pulish @cocos/build-engine 4.2.21-beta.2

* change tag to `@deprecated_to_user`

* support `@deprecated_to_user`

* publish 4.2.21-beta.3

* finish change request

* change to marked_as_engine_private

* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
Zhang mingzhen de78f6c7a8 optimization: set same value attribute v3.5 (#9744)
* return process when same value attributes are assigned

* add warn log in ErrorMap

* optimize upper character

* remove warn when same texture is assigned

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-21 17:20:41 +08:00
PP ae7635be17 add note for perperties on SubContextView component (#9676) 2021-11-18 13:47:05 +08:00
PP 1abbc90c23 compability for PROPORTIONAL_TO_FRAME container strategy (#9642)
* support isProportionalToFrame field on screen-adapter

update

stash

* rename _setupContainer to _setupCanvas

* optimize view.setResolutionPolicy()

* remove TIME_OUT to handle resize event

* compability for PROPORTIONAL_TO_FRAME container strategy

comp

update

* add NOTE

* optimize 'window-resize'

resize

* deprecate game.frame && game.container

deprecate

game

* close screen.resolutionScale interface

close

* fix npm test

* fix view unit test

* space
2021-11-11 19:24:39 +08:00
Zhang mingzhen a315eecd55 optimize scroll view offset annotations in v3.4 (#9563)
* optimize offset annotations #8625

(cherry picked from commit 993cc695d1b0e1c59f852dfabff1ed58d9448311)

* optimize annotations

(cherry picked from commit b1556674949c4a56e97324d4ce2f3ed896d5e06e)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-10-30 18:48:50 +08:00
Zhang mingzhen 80160d1114 fix bug that causes autoScrolling is always triggered#8443 (#9564)
(cherry picked from commit f22ffa7d4f706375ddfd743179760a68384bec44)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-10-30 18:41:24 +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
Zty bad357d864 fix ScrollView event dispatch error (#8937) 2021-10-04 19:52:28 +08:00
Santy-Wang e8cf9a0ada export active-in-hierarchy-changed event (#9369) 2021-09-23 14:22:18 +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 9d4cb44c4a fix button scale bug (#9302) 2021-09-08 16:32:15 +08:00
PP ec36b5e700 fix EditBox.background.node is null (#9298)
* detect editBox background.node

* unregister editbox backgroundImage event on disable phase
2021-09-07 16:46:24 +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
PP d5ccf5d7c7 add sprite frame changed event listener on EditBox (#9266) 2021-09-01 18:03:43 +08:00
ChiaNing 3412025645 add widget dirty when target anchor change (#9267) 2021-09-01 12:46:06 +08:00
ChiaNing ee6d6e57e0 fix button original Scale bug (#9237)
* fix button original Scale bug

* update to apply Target

* check target valid

* add test
2021-08-31 09:07:51 +08:00
pandamicro 476edcc8c5 Merge pull request #9232 from cocos-creator/develop
Merge develop to v3.4
2021-08-23 15:36:16 +08:00
pandamicro 770d111fc1 Fix format in edit-box-impl 2021-08-23 15:31:23 +08:00
pandamicro b35bfd79c8 Fix format in edit-box-impl 2021-08-23 15:25:43 +08:00
wanghaha1991 29f3c92bda mouse wheel can cause the phone number to negative (#9157)
* mouse wheel can cause the phone number to negative

* Update cocos/ui/editbox/edit-box-impl.ts

Co-authored-by: yuantao <yuantao.wang@moblab.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com>
2021-08-21 16:37:39 +08:00
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
PP eb06667bda fix touch event on SubContextView when fitWidth and fitHeight (#9043)
update
2021-07-22 18:31:14 +08:00
ChiaNing d6469818e4 widget misc bug fix (#8970)
* widget misc bug fix

* refresh Scene on EVENT_AFTER_SCENE_LAUNCH
2021-07-22 16:23:35 +08:00
OnlyKoei bdd789c31a Update button.ts (#8977)
* Update button.ts

fix the button node to continue to play after hiding and then displaying the animation

* Update button.ts
2021-07-15 15:16:25 +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
PP 6487e67b36 optimize enum type in SystemEvent module (#8912)
* export KeyCode

* rename to SystemEvent.EventType

remove legacy import

update pal

* systemEventType =value type, SystemEvent.EventType =enum type

* support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event

* add back Event.NO_TYPE

* update pal/input interface

* fix ci

* Revert "support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event"

This reverts commit 623385e5f8e6c133f287753654b21a5bb7adafee.

# Conflicts:
#	pal/input/minigame/keyboard.ts

* remove KEY_PRESS event

* remove legacy usage of macro.KEY

* fix KeyCode spell
2021-07-08 16:39:03 +08:00
santy-wang e58499bb3f Merge branch 'v3.2.0' of https://gitlab.cocos.net/publics/engine into v3.3-merge 2021-06-22 16:59:04 +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
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
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
Santy-Wang 68896f6cfa Merge pull request #8700 from cocos-creator/v3.1.1
merge V3.1.1
2021-05-21 15:48:53 +08:00
江战 2a2719a79c HarmonyOS support (#8679) 2021-05-21 15:42:37 +08:00
PP 420c9f59d4 support system.getSafeAreaEdge() (#8654)
* support system.getSafeAreaEdge()

* remove legacy adapter

* remove code

* update
2021-05-17 18:12:13 +08:00