Commit Graph

182 Commits

Author SHA1 Message Date
ChiaNing 0796fb1e3d Text Processing Refactoring (#14739)
* text processing file add

* processing String

* render & effect

* bmfont add

* char mode add

* code collate

* use less remove

* after rebase and change Sync

* add data class

* fix bm font clamp bug

* fix bitmap mode

* fix ci

* fix misc

* fix ci

* remove some code

* remove data class

* name change

* bug fix
2023-05-25 11:56:45 +08:00
ChiaNing 548dbefd2e fix rich text render bug (#15081) 2023-05-24 17:30:29 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
zxx43 fbbdab53a4 use getSharedMaterial to replace getMaterial (#14814)
* use getSharedMaterial to replace getMaterial

* call getSharedMaterial directly

* modify note
2023-04-19 11:07:46 +08:00
ChiaNing 0e530a1d89 Fix Richtext miss string bug (#14782)
* some rich text bug hack

* fix rich Text miss String bug

* use temp size

* use global

* use vec2
2023-04-18 13:42:47 +08:00
PP c2dc30ac95 revert fix crash on OH platform (#14726) 2023-04-06 10:55:19 +08:00
PP a909e69982 update OH template for esmodule and ts engine compile (#14714) 2023-04-04 09:28:57 +08:00
minggo 37f89f4cb0 make UIRenderer._renderData as protected (#14677)
* make UIRenderer._renderData as public
2023-03-29 11:07:13 +08:00
minggo 5bc0fe59df make _priority and _rootBufferDirty protected (#14639)
* make _priority and _rootBufferDirty protected

* change to function
2023-03-24 14:50:15 +08:00
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +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
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
ChiaNing ddeba2863c Update UIMeshRender model pre frame (#13738) 2022-12-08 15:45:11 +08:00
minggo 7294de16f6 Adjust core import (#13230)
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +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
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
Zhang mingzhen 37e67d55c8 Richtext add child optimization v3.7 (#13002)
* add child optimization(in 3.6.2)

(cherry picked from commit 6f44dd375faa1d62becf25818abc4f83ad7e08d1)

* add estimation before calculate size precisely

(cherry picked from commit 92b26a6f6b8f78abd2bcafffbe2a9c86b18a1e50)

* add anotations

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-10-10 16:00:56 +08:00
Zhang mingzhen bfa5a0ef18 richtext addChild optimization (#12928)
* 1. remove rebundant invoking
2. ttf canvas texture resizes to width and height as (1,1)

* remove start() and move it to onLoad()

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-28 11:39:29 +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
Zhang mingzhen f40cbe910d sort the attributes (#12904)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-27 14:44:25 +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
minggo bd0fcc67c4 move cocos/core/pipeline to cocos/rendering (#12797)
* move cocos/core/pipeline to cocos/rendering
2022-09-16 16:10:26 +08:00
minggo b035f697bf Merge pull request #12769 from cocos/v3.6.1
V3.6.1
2022-09-15 09:46:23 +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
ChiaNing 6ec93687b5 mask node active bug fix (#12734)
* mask node active bug fix

* misc
2022-09-09 19:33:49 +08:00
minggo 4261ccae76 move cocos/core/renderer to cocos/render-scene (#12729)
* move cocos/core/renderer to cocos/render-scene

* fix compiling error on native
2022-09-09 18:19:06 +08:00
ChiaNing 2f1567bb7d mask interface deprecated (#12667)
* mask interface deprecated

* fix

* warn add

* warnid

* msic
2022-09-09 16:34:43 +08:00
Zhang mingzhen 63ee31606a when checking useSystemFont, the fontFamily should appear (#12684)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-08 10:36:54 +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
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
ChiaNing 482b20ea47 Mask Refactoring (#12636)
* first version mask

* image stencil material fix

* misc fix

* type change fix

* export fix

* some native code

* native fix

* use less remove

* remove isForMask

* material change

* delate sprite frame

* use less remove

* misc fix

* ci

* mate updte

* de

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-09-02 10:17:44 +08:00
Zhang mingzhen ec2043092e filled sprite color is incorrect with uiOpacity parent (#12533)
* 1. updateColorLate is rebundant
2. UIOpacity add node condition

* consistent interrupt opacities should be multiplied to the entity

* remove entity is null condition

* use isValid

* add comment

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 11:21:37 +08:00
Zhang mingzhen 8588c50db7 richtext-resetStates: use assert and remove unreasonable and deprecated condition (#12565)
* use assert and remove unreasonable and deprecated condition

* add debug condition

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 10:44:20 +08:00
minggo c5c7b987ea move cocos/core/gfx to cocos/gfx (#12559)
* move cocos/core/gfx to cocos/gfx
2022-08-26 17:51:46 +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
ChiaNing f71ce47c10 fix native mask invert bug (#12362)
* fix native mask invert bug

* version change

* version change

* lock version change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-09 18:38:07 +08:00
Zhang mingzhen 013b4b42f9 remove char mode condition in set entity color (#12355)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:37:06 +08:00
Zhang mingzhen de0cde06e0 remove rebundant code. (#12352)
dont need to set color for children

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:36:32 +08:00
ChiaNing f2a1191b6d fix mask type change bug (#12340)
* fix mask type change bug

* enable fix

* fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-05 11:54:30 +08:00
ChiaNing 5e5c037e7b fix label vertex color bug (#12306)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-03 17:06:47 +08:00
ChiaNing e2eb71b9a1 fix ui mesh renderer enable bug (#12265)
* fix ui mesh renderer enable bug

* add canRender

* remove material protect

* misc fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-29 14:01:36 +08:00
Santy-Wang 52cd47fa08 optimize frame animation performance (#12209)
* optimize frame animation performance

* refine code
2022-07-27 10:21:13 +08:00
ChiaNing 310525e358 fix ui Model proxy memory leak (#12184) 2022-07-26 15:37:46 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
ChiaNing 74ebf33dc5 fix mask default material bug (#12070)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:16:29 +08:00
Santy-Wang ddfa13e4cf optimize a bit jsb call (#12065) 2022-07-19 11:36:25 +08:00
Zhang mingzhen 1fd70ef5e7 UIOpacity and UIRenderer recursion bug (#12015)
* optimize JSB sync in every frame

* opacity bug, enabled doesn't sync to native

* UIOpacity and UIRenderer recursion

* avoid parameters are undefined

* resolve circular dependency

* exclude UIMeshRenderer in setEntityColorDirtyRecursively

* exclude UIMeshRenderer in UIOpacity setEntityLocalOpacityDirtyRecursively

* blend hash should put into passdirty

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-18 15:42:02 +08:00
ChiaNing 968c3837fc Fix sprite render bug when Sprite Frame is null (#12041)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 18:09:03 +08:00
ChiaNing 4534698708 mask _updateBuiltinMaterial overload (#12033)
* mask update material overload

* function change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 13:35:12 +08:00