Commit Graph

377 Commits

Author SHA1 Message Date
dogeFu 09e000266d feature : add EDITOR_NOT_IN_PREVIEW marco (#15354)
* feature : add marco for editor preview and refactor code with new marco

* refactor: replace GAME_VIEW with EDITOR_PREVIEW

* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"

This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.

* update cc config json

* refactor code

* remove uselese parentheses

* set ccglobal to be false

* skip global variable test case
2023-06-07 17:52:51 +08:00
mrtzd 46cc8c6a0a fixed button touch detection issue (#15128) 2023-05-24 15:51:39 +08:00
qiuguohua be5eae04f5 Add ‘screen.on’ interface to listen to screen-related events. (#15080)
* 1、Add ‘screen.on’ interface to listen to screen-related events.
2、Deprecate ‘setResizeCallback’ interface

* Modify comment errors
2023-05-17 17:36:54 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
mmyduckx 38c0ed4f95 add wechatprogram platform support (#14580)
* add wechatprogram platform support
2023-03-15 14:13:24 +08:00
mmyduckx de98057c6b speed up launch time (#14307) 2023-02-24 16:20:46 +08:00
pandamicro 89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
qiuguohua 1934459b9b Add a check that windowId is 0 by default (#14159) 2023-02-09 16:07:31 +08:00
ChiaNing b603baae23 Improve api doc (2d&UI) (#13898)
* Improve api doc (2d&UI)

* remove @internal

* msic

* remove eracut

* update doc

* Update

* fix

* misc
2023-02-08 14:25:48 +08:00
ChiaNing 221c37a275 Protect scroll bar error when its deleted (#14041)
* Protect scroll bar error when its deleted

* change to is Valid
2023-02-01 17:38:53 +08:00
Santy-Wang c82f9c2019 Merge pull request #13969 from cocos/v3.7.0
sync V3.7.0 to v3.7.1
2022-12-30 10:49:12 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
mmyduckx 7048a65b54 allow modify edit-box TEXT_LABEL&PLACEHOLDER_LABEL attributes (#13886) 2022-12-22 18:17:00 +08:00
ChiaNing b53f94c1cf fix scroll view boundary bug (#13840)
* fix scroll view boundary bug

* CI fix
2022-12-16 18:30:29 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
ChiaNing 9a9f3da6e1 Remove layout children restriction (#13630) 2022-12-05 16:50:51 +08:00
mmyduckx 20863b9198 add editbox callback parameter & emit by ralated event (#13623)
* add editbox callback parameter & emit by ralated event

* add comment
2022-12-05 12:00:20 +08:00
bofeng-song 317a30d85b disable unused code (#13591)
* disable unused code
2022-12-05 11:56:52 +08:00
ChiaNing 00eddc4735 Fix toggle destroy bug (#13568)
* fix toggle destroy bug

* fix

* fix ci

* fix

* remove destroy

* fix

* fix
2022-11-29 10:01:29 +08:00
Zhang mingzhen 52b566aa53 scroll-view and scroll-bar issues (#13343)
* avoid auto-spring-back after touching end

* when size changed, updateScrollBarState should be invoked.

* add annotations

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-11-23 19:26:03 +08:00
fqamic 71314f0e81 merge xr platform function codes (#13360)
* feat: add xr settings for xrEnv and xrType

* improve: remove redundant code for xr interaction

* improve: remove redundant code for frameMove

* fix: xr jsb bind adapt to swig

* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +08:00
minggo 1ce742fbee import js from core instead of using js.js (#13261)
js.js is deprecated
2022-11-07 18:15:06 +08:00
kaxifakl e3fcd288b8 fix toggle err function name (#13178) 2022-11-02 15:54:49 +08:00
minggo 83a2717fac Fix module import (#13140)
* fix core module import style

* import murmurhash2_32_gc from core module

* do not export visibleRect
2022-10-25 16:38:38 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
fqamic b7c717492f improve: update engine to support xr development (#12727)
* improve: update engine to support xr development
1.Fixed slider moving in wrong direction
Use local coordinates for determination
2.fix: XR error opening thread detach
The build supports Vulkan and OpenGLES, but when the device does not support Vulkan, the XR platform cannot support thread detach.
3.update xr common

* fix: clang tidy error

* improve: update external version
2022-09-09 16:09:27 +08:00
minggo 2f10f48c15 adjust some folders (#12712)
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
Zhang mingzhen 2879bb044b add deprecated tag of "Renderable2D" (#12606)
* add deprecated tag

* move it to 2d

* supplement other 2d deprecated tags

* fix CI

* add policy description

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 10:17:11 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
王凯鹏 d38c8c1a52 Fix canvas align every frame when run in editor preview mode (#12344) 2022-08-05 12:03:03 +08:00
王凯鹏 fc16ecd4af fix edit-box error in gameview mode (#11733)
* fix edit-box error in gameview mode

* remove game.contener null check

* code refactor
2022-07-05 15:27:08 +08:00
PP 151eeb3dce deprecate exported x-deprecated interface (#11802)
* deprecate exported x-deprecated interface

* update

* update docs
2022-07-01 21:54:15 +08:00
PP 7f41b05cfe support top level deprecate check (#11630)
* support __checkObsolete__

update

update deprecate info

update

fix ci

fix ci

update

* rename interface

* cache namespace proxy

* move deprecate info to version deprecated

* consider undefined Proxy
2022-07-01 11:55:05 +08:00
pandamicro 014813b50a Merge pull request #11569 from cocos/v3.5.2
Merge V3.5.2
2022-06-17 20:10:45 +08:00
PP ea38500f0a don't force top align editbox placeholder label (#11303)
* dont force top align editbox placeholder label

* no need to update placeholder style

* optimize code
2022-06-10 13:46:00 +08:00
minggo 77701a2d84 Merge branch 'v3.5.1' into v3.6.0-merge-v3.5.1 2022-05-27 15:23:33 +08:00
Zhang mingzhen a20d76a152 fix CN characters appear in EN documents and supplements other documents (#11149)
* fix CN characters appear in EN documents and supplements other documents.

* remove rebundant marks of param type

* supplement docs

* First letters should be upper.

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-05-24 18:07:14 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
pandamicro dba83c270d Fix multi blank lines (#11116) 2022-05-17 11:56:06 +08:00
PP 33b7b94ebc fix subcontextview (#11049) 2022-05-14 10:12:02 +08:00
ChiaNing 045e6430cb add base-Renderer and separate & rename renderableComp (#10903)
* add base-Renderer and separate & rename renderableComp

* rename

* some fix

* misc fix

* format change

* file name change & api doc add

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-09 17:44:56 +08:00
Santy-Wang 23de9188ba V3.5 docs (#10898)
* adjust api docs and delete useless annotation

* delete useless annotation
2022-04-27 15:22:22 +08:00
Santy-Wang e82cec17ac update docs (#10796)
* update docs

* update docs more

* refine

* refine
2022-04-20 18:47:53 +08:00
PP d749bbe1c4 remove legacyPublic tag (#10702) 2022-04-08 19:41:20 +08:00
PP cd03f2da2d fix rendering not working on wechat subcontextview (#10698) 2022-04-08 14:48:15 +08:00
ChiaNing f36e9a2799 fix scroll view Auto Scroll Brake bug (#10693) 2022-04-08 11:51:18 +08:00
minggo be735449af Revert "remove some deprecated api (#10656)" (#10694)
This reverts commit a1b1fc5a09.
2022-04-08 11:51:06 +08:00
minggo a1b1fc5a09 remove some deprecated api (#10656)
* remove some deprecated api
2022-04-07 16:31:02 +08:00