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
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
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
江战
f6854cd16e
native introduce jsb.window ( #13816 )
2022-12-16 13:50:59 +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
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
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
王凯鹏
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
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
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
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +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
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
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
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
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
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
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
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
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
江战
2a2719a79c
HarmonyOS support ( #8679 )
2021-05-21 15:42:37 +08:00
yeshao2069
06a0b5e589
update 2D UI component interface ( #8103 )
...
* Fix ui component ci
Fix ui component ci, fix ci
* update interface
* optimization
optimization
* update
update
* update
Modify according to Panda's amendment
* fix ci check
fix ci check error
* update scrollview
update scrollview
* fix error
* fix error
fix error
* fix: according to panda's advice
* Update scroll-view.ts
* Update scroll-view.ts
Co-authored-by: pandamicro <lphuabin@gmail.com >
2021-04-19 16:00:19 +08:00
PP
7ed0e73a84
remove deprecate warning in engine ( #8482 )
...
* remove deprecated BrowserType usage
* remove deprecated OS usage
update
* remove deprecated Platform usage
* fix esLint
2021-04-19 14:14:51 +08:00
ChiaNing
2d869577a5
UI module support zh/en UItooltip ( #8335 )
...
* UI module support zh/en UItooltip
* change sub-context file name
* remove white space
* update
2021-03-13 13:04:34 +08:00
ChiaNing
15a4041aa5
fix mask event through bug ( #8293 )
2021-02-26 14:31:00 +08:00
pandamicro
c6dad8c494
Merge render scene and improve naming for 2d render ( #8142 )
...
* format and tweek
* Refactor renderer: UI to 2D naming
* refactor root.ui to root.batcher2D
* Refactor UIBatchView to BatchView2D
* Fix issues
* Merge UI render scene to main render scene
* Improve camera scene check in forward pipeline
* Fix eslint ci
* skip js files
2021-01-15 11:43:09 +08:00
ChiaNing
fa2057deb4
RenderRoot2d comp add ( #8120 )
...
* RenderRoot2d comp add
* name change
* require UITransform on renderRoot
2021-01-12 14:55:17 +08:00
Leslie Leigh (李的序)
9bd9baac12
Eslint autofix all ( #8108 )
...
* Eslint autofix all
* Manual fix
2021-01-09 11:41:10 +08:00
yeshao2069
bea67aac0d
fix editbox label ( #8079 )
...
when input mode is not ANY, user can change the vertical text alignment of placeholder_label and text_label.
2021-01-06 13:32:23 +08:00
Santy-Wang
ad4bff3988
Restructure Module ( #7968 )
...
* module restructure
* refine
* restructure module
* merge
* revert
* fix ci
* update import path of unit-test
* split 2d and ui
* add more module
* change audio adapter
* rename primitive
* config wechat plugin
* merge
* add category config
* merge
* merge
2020-12-24 19:07:26 +08:00