Commit Graph

175 Commits

Author SHA1 Message Date
pandamicro 8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
pandamicro 87fd1dac1f Merge remote-tracking branch 'cocos-for-editor/v3.6.3' into develop
# Conflicts:
#	native/cocos/platform/android/java/libs/game-sdk.jar
#	native/external-config.json
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:28:39 +08:00
oahc09 9860c66c63 improve:xr remote preview process controller stick value (#13935)
* improve:xr remote preview process controller stick value
2022-12-29 18:07:18 +08:00
bofeng-song 19ffc349b6 Make audio be independent of core module (#13948) 2022-12-29 15:32:08 +08:00
bofeng-song 0d0d74e7bf fix wrong init at native scene (#13936) 2022-12-28 17:07:28 +08:00
fqamic 1f928364f4 fix some xr devices stretch when splash-screen logo and add handle device key (#13915)
* fix: some xr devices stretch when splash-screen logo

* feat: xr handle device support button menu and button start
2022-12-28 11:56:35 +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
minggo 5c90582715 fix merge typo 2022-12-21 17:32:51 +08:00
minggo bfeca12a09 Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-21 17:26:22 +08:00
PP d255936cdb optimize audio adaption on Taobao (#13835)
* fix: onPlay

* fix: onPause

* don't call stop

* remove HACK
2022-12-16 15:16:42 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
mmyduckx 2efe60a576 fix game.init assetDB-warning (#13809)
* fix game.init assetDB-warning
2022-12-14 14:31:14 +08:00
bofeng-song 4939c4d915 Fix audio bugs on the mini-game platform (#13772) (#13787) 2022-12-12 10:13:06 +08:00
bofeng-song 3c393ae111 Fix audio bugs on the mini-game platform (#13772)
(cherry picked from commit 8ee9ad317190134a51d67045d3d36927b16f9523)
2022-12-09 14:41:50 +08:00
PP c46edb704f fix: wechat Android doesn't support base64 webp (#13663)
* fix: wechat Android doesn't support base64 webp
2022-12-06 10:10:24 +08:00
minggo 8d8c283b59 Merge branch 'v3.6.3' into merge-v3.6.3 2022-11-28 13:37:25 +08:00
fqamic 2316dc77c1 improve(xr):Rename Handset to Handheld (#13558)
Co-authored-by: linyuanyi <1111>
2022-11-28 11:30:27 +08:00
fqamic d4055f7e32 new basic capabilities of supporting handset ar and webxr (#13420)
* feat: add the basic capability of handset ar native

* feat: add handset input device, for ar camera pose

* feat: native pack tool supports xr platform name

* feat: web gl context supports webxr

* feat: webxr has been converted to screen coordinates via camera

* fix: pr ts-expect-error undefined xr

* feat: support webxr, and remove ar redundant code

* fix:xr-spaces gradlew permission error

* feat: revert redundant ar engine feature

* fix: eslint check error

* feat: remove redundant code

* fix: eslint check warning

* adjust armodule process in forward stage, mtl texture and jsb

* fix: exlint warning, and add license

* adjust ar lib and interfaces

* change webxr check interface

* merge external arlib header and move it to engine

* improve: update native external version

* move ar background stage to xr/rendering and move its init to webxr device in xr plugin

* fix format error

* fix format error

* adjust jsb_ar_manual, ARModule, ARBackground

* adjust arbackground

Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
2022-11-24 13:33:50 +08:00
minggo f78617a11d Merge pull request #13509 from yyycggg/v3.6.3
Merge branch 'v3.6.1-taobao' into v3.6.3
2022-11-24 09:46:59 +08:00
timlyeee 6063a4a4c1 [Hack] Jump across the safety policy (#13517) 2022-11-23 17:00:24 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00
ycg 071ee7edb7 Merge branch 'v3.6.1-taobao' into v3.6.3 2022-11-23 14:10:14 +08:00
ycg 69edf6d1fa Fix: A filpY operation will be performed after ReadPixels on Taobao. (#13482)
* Fix: npm test error.

* Fix: A filpY operation will be performed after ReadPixels on Taobao.
2022-11-22 16:32:18 +08:00
timlyeee 2a7648de7f [Bug fix] Add detections for innerAudioContext. (#13162)
* [Bug fix] Add detections for innerAudioContext.

1. Pausing an innerAudioContext which is not fully initialized, the currentTime might be null.-https://github.com/cocos/3d-tasks/issues/14080
2. Pause means nothing for a stopped audio
3. InnerAudioContext.destroy behavior is insane that it might not stop the audio immediatly,

* remove log

* get once
2022-11-21 11:29:38 +08:00
timlyeee e48b1f225e add windowId as a parameter for MouseWheel (#13433)
* add windowId as a parameter for MouseWheel

* set window id to 1 by default
2022-11-21 10:32:51 +08:00
ycg 6c23564835 Fix: Sprite Blend Factor bug for TAOBAO. (#13217)
* Fix: Sprite Blend Factor bug for TAOBAO.

* update Note

* Do not use premultiplication on the phone.

* delete import
2022-11-18 10:58:31 +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
PP f64250a9e3 support dispatching event on native platform (#12705)
* support dispatching event on native platform

* pass widnowId

* fix ci
2022-11-14 10:33:48 +08:00
ycg 1abec3483c support safeArea on TaoBao. (#13260) 2022-11-08 11:21:51 +08:00
ycg 98f35d7729 support landscape on TaoBao (#13259)
* support landscape on TaoBao
2022-11-08 11:19:10 +08:00
ycg df797fdc0a Fix: Update the implementation of the Safe-area on Web. (#13153) 2022-11-07 10:33:16 +08:00
江战 7ccd14e6e6 JSB export math class : Vec2/Vec3/Vec4/Quat/Mat3/Mat4/Color (#12968) 2022-10-31 17:24:54 +08:00
ycg 827a3f0640 Fix: Update the implementation of the supportWebp on minigame. (#13165)
* Fix: Update the implementation of the supportWebp on minigame.
Optimize: Adjust the initialization of the System-info module.

* Add return type of the sys-init function.

* Add try-catch to _supportsWebp method
2022-10-28 10:44:16 +08:00
minggo a354281d7e Fix core import issue (#13148)
* import binarySearchEpsilon from core module

* remove unused files

* import easing from core module

* use array instead

* do not export MutableForwardIterator

* do not export binarySearchBy

* print deprecated information in runtime
2022-10-26 15:19:26 +08:00
ycg e31abca228 Wrong mouse wheel direction on PCWechat (#13101) 2022-10-20 17:59:37 +08:00
ycg 2696288b3f Fix: Left mouse button swipe on WeChat PC is invalid (#13110) 2022-10-20 16:50:29 +08:00
ycg 4e545eb4cb Add Hindi language. (#13084) 2022-10-19 14:32:49 +08:00
ycg d9b3c18210 Adapter Rendering, Editbox, Label and Audio. (#13025)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments

* Adapter EditBox and Label

* Adapter Audio

* Fix: GL.getUniformLocation returns an incorrect value

* Add @typescript-eslint/no-unsafe-return
2022-10-14 15:55:06 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
ycg 9d3bfffc82 Fix: toDataURL is not supported for this content on iPhone 7p (#12830)
* Fix: toDataURL is not supported for this content on iPhone 7p
2022-09-28 13:45:42 +08:00
ycg 1181b10f29 Adapter screen-adapter on Taobao (#12922)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments
2022-09-28 13:36:19 +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
林玮 e7e8036dcd fix: editor and cocos-play issues (#12908)
* fix: editor and cocos-play issues

* * Change 'windowId' to optional.
2022-09-27 17:45:21 +08:00
ycg 31ad5ab9e1 Adapter System-info on Taobao (#12867)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad
2022-09-27 09:52:30 +08:00
timlyeee f341032746 [Optimize] Cache current time for audio player in minigame. (#12814)
* Cache current time for minigames

* Save current time as private member

* Make cache time changed in callback

* update cache time to abort middle state for seek
2022-09-22 14:20:52 +08:00
PP 8a1b31e0ba support Taobao platform (#12819)
* add taobao adapter

* add TAOBAO platform

* add templates

update templates

* fix: readJsonSync can't work on Taobao platform

add TODO

* fix: update import-map

* fix: ban splash screen on Taobao platform

* fix: adapt image loading

* fix: MINIGAME on Taobao platform

* update constant manager

* optimize: skip splash screen on Taobao

* fix: @ separator on Taobao platform

* Revert "fix: @ separator on Taobao platform"

This reverts commit 18903291807ef3263c27a90ad67753da7e531142.

* fix: @

* fix: undefined canvas.addEventListener

* fix: minigame.isDevTool

* fix: createCanvas on canvasOnReady hook

* optimize: event register

* optimize: onCanvasCreated name
2022-09-21 14:50:03 +08:00
林玮 85708b98d2 bugfix: crash when resizing on MacOS (#12816)
* fix: setCursorEnabled crash

* fix: crash when resize on MacOS
2022-09-20 14:13:39 +08:00
林玮 785fd91511 Add multi-windows support (#12243)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
2022-09-15 14:55:44 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
timlyeee 4381b41525 V3.6.1 fix audio stuck (#12589) 2022-09-01 11:48:34 +08:00