├── .gitignore ├── README.md ├── cx-framework3.1 ├── cocos3-libs │ ├── cocos3-ios.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcuserdata │ │ │ │ └── blank.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── cocos3 iOS.xcscheme │ │ └── xcuserdata │ │ │ └── blank.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── cocos3-libcc │ │ ├── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── libs │ │ │ ├── com.android.vending.expansion.zipfile.jar │ │ │ ├── okhttp-3.12.7.jar │ │ │ └── okio-1.15.0.jar │ │ ├── proguard-rules.pro │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── btn_normal.xml │ │ │ │ ├── btn_outline.xml │ │ │ │ ├── divider.xml │ │ │ │ ├── edit_focus.xml │ │ │ │ ├── edit_gray.xml │ │ │ │ ├── edit_normal.xml │ │ │ │ ├── edit_selector.xml │ │ │ │ └── launch_image.png │ │ │ ├── values-zh-rCN │ │ │ │ └── strings.xml │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ └── src │ │ │ ├── com │ │ │ └── cocos │ │ │ │ └── lib │ │ │ │ ├── CanvasRenderingContext2DImpl.java │ │ │ │ ├── CocosActivity.java │ │ │ │ ├── CocosDownloader.java │ │ │ │ ├── CocosEditBoxActivity.java │ │ │ │ ├── CocosHandler.java │ │ │ │ ├── CocosHelper.java │ │ │ │ ├── CocosHttpURLConnection.java │ │ │ │ ├── CocosJavascriptJavaBridge.java │ │ │ │ ├── CocosKeyCodeHandler.java │ │ │ │ ├── CocosLocalStorage.java │ │ │ │ ├── CocosNativeActivity.java │ │ │ │ ├── CocosOrientationHelper.java │ │ │ │ ├── CocosReflectionHelper.java │ │ │ │ ├── CocosSensorHandler.java │ │ │ │ ├── CocosSurfaceView.java │ │ │ │ ├── CocosTouchHandler.java │ │ │ │ ├── CocosVideoHelper.java │ │ │ │ ├── CocosVideoView.java │ │ │ │ ├── CocosWebView.java │ │ │ │ ├── CocosWebViewHelper.java │ │ │ │ ├── GlobalObject.java │ │ │ │ └── Utils.java │ │ │ └── cx │ │ │ ├── NativeIntf.java │ │ │ ├── NativeParams.java │ │ │ ├── mask │ │ │ ├── MaskIntf.java │ │ │ └── MaskView.java │ │ │ └── sys │ │ │ └── SysIntf.java │ ├── cocos3-libso │ │ ├── app │ │ │ ├── AndroidManifest.xml │ │ │ ├── build.gradle │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ └── cx3 │ │ │ │ └── blank │ │ │ │ └── so │ │ │ │ └── AppActivity.java │ │ ├── build.gradle │ │ ├── engine │ │ │ ├── CMakeLists.txt │ │ │ ├── build-cfg.json │ │ │ ├── cfg.cmake │ │ │ ├── common │ │ │ │ └── CMakeLists.txt │ │ │ └── jni │ │ │ │ └── main.cpp │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── local.properties │ │ └── settings.gradle │ ├── cocos3-mac.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcuserdata │ │ │ │ └── blank.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── cocos3 Mac.xcscheme │ │ └── xcuserdata │ │ │ └── blank.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── libcocos3 Mac.a │ └── libcocos3 iOS.a ├── cx-native │ ├── Game.cpp │ ├── Game.h │ ├── cxCreator.cpp │ ├── cxCreator.h │ ├── cxDefine.h │ ├── cxIntf.cpp │ ├── cxIntf.h │ ├── cxJsb.cpp │ ├── cxJsb.hpp │ ├── cxMask │ │ ├── cxMaskIntf.h │ │ ├── cxMaskIntf.mm │ │ ├── cxMaskView.h │ │ └── cxMaskView.mm │ ├── cxSys │ │ ├── cxSysIntf.h │ │ └── cxSysIntf.mm │ └── jsb_module_register.cpp ├── cx.d.ts └── cx │ ├── core.meta │ ├── core │ ├── cx.adapt.ts │ ├── cx.adapt.ts.meta │ ├── cx.define.ts │ ├── cx.define.ts.meta │ ├── cx.native.ts │ ├── cx.native.ts.meta │ ├── cx.picker.ts │ ├── cx.picker.ts.meta │ ├── cx.res.ts │ ├── cx.res.ts.meta │ ├── cx.script.ts │ ├── cx.script.ts.meta │ ├── cx.serv.ts │ ├── cx.serv.ts.meta │ ├── cx.sys.ts │ ├── cx.sys.ts.meta │ ├── cx.ui.ts │ ├── cx.ui.ts.meta │ ├── cx.utils.ts │ └── cx.utils.ts.meta │ ├── prefab.meta │ ├── prefab │ ├── cx.alert.prefab │ ├── cx.alert.prefab.meta │ ├── cx.confirm.prefab │ ├── cx.confirm.prefab.meta │ ├── cx.hint.prefab │ ├── cx.hint.prefab.meta │ ├── cx.picker.prefab │ ├── cx.picker.prefab.meta │ ├── cx.pickerScrollView.prefab │ ├── cx.pickerScrollView.prefab.meta │ ├── s_al.png │ ├── s_al.png.meta │ ├── s_alert_bg.png │ ├── s_alert_bg.png.meta │ ├── s_alert_ok.png │ ├── s_alert_ok.png.meta │ ├── s_border.png │ ├── s_border.png.meta │ ├── s_color.png │ ├── s_color.png.meta │ ├── s_confirm_bg.png │ ├── s_confirm_bg.png.meta │ ├── s_confirm_no.png │ ├── s_confirm_no.png.meta │ ├── s_confirm_yes.png │ ├── s_confirm_yes.png.meta │ ├── s_loading.png │ ├── s_loading.png.meta │ ├── s_none.png │ ├── s_none.png.meta │ ├── s_picker_no.png │ ├── s_picker_no.png.meta │ ├── s_picker_yes.png │ ├── s_picker_yes.png.meta │ ├── s_shadow.png │ └── s_shadow.png.meta │ ├── scripts.meta │ ├── scripts │ ├── cxui.mainScene.ts │ ├── cxui.mainScene.ts.meta │ ├── cxui.nativeMask.ts │ ├── cxui.nativeMask.ts.meta │ ├── cxui.page.ts │ ├── cxui.page.ts.meta │ ├── cxui.pageView.ts │ ├── cxui.pageView.ts.meta │ ├── cxui.safearea.ts │ ├── cxui.safearea.ts.meta │ ├── cxui.scrollView.ts │ └── cxui.scrollView.ts.meta │ ├── template.meta │ └── template │ ├── cx.imageLabel.prefab │ ├── cx.imageLabel.prefab.meta │ ├── cx.page.prefab │ └── cx.page.prefab.meta ├── cx3-demo.apk └── cx3-demo ├── assets ├── cx.meta ├── cx │ ├── core.meta │ ├── core │ │ ├── cx.adapt.ts │ │ ├── cx.adapt.ts.meta │ │ ├── cx.define.ts │ │ ├── cx.define.ts.meta │ │ ├── cx.native.ts │ │ ├── cx.native.ts.meta │ │ ├── cx.picker.ts │ │ ├── cx.picker.ts.meta │ │ ├── cx.res.ts │ │ ├── cx.res.ts.meta │ │ ├── cx.script.ts │ │ ├── cx.script.ts.meta │ │ ├── cx.serv.ts │ │ ├── cx.serv.ts.meta │ │ ├── cx.sys.ts │ │ ├── cx.sys.ts.meta │ │ ├── cx.ui.ts │ │ ├── cx.ui.ts.meta │ │ ├── cx.utils.ts │ │ └── cx.utils.ts.meta │ ├── prefab.meta │ ├── prefab │ │ ├── cx.alert.prefab │ │ ├── cx.alert.prefab.meta │ │ ├── cx.confirm.prefab │ │ ├── cx.confirm.prefab.meta │ │ ├── cx.hint.prefab │ │ ├── cx.hint.prefab.meta │ │ ├── cx.picker.prefab │ │ ├── cx.picker.prefab.meta │ │ ├── cx.pickerScrollView.prefab │ │ ├── cx.pickerScrollView.prefab.meta │ │ ├── s_al.png │ │ ├── s_al.png.meta │ │ ├── s_alert_bg.png │ │ ├── s_alert_bg.png.meta │ │ ├── s_alert_ok.png │ │ ├── s_alert_ok.png.meta │ │ ├── s_border.png │ │ ├── s_border.png.meta │ │ ├── s_color.png │ │ ├── s_color.png.meta │ │ ├── s_confirm_bg.png │ │ ├── s_confirm_bg.png.meta │ │ ├── s_confirm_no.png │ │ ├── s_confirm_no.png.meta │ │ ├── s_confirm_yes.png │ │ ├── s_confirm_yes.png.meta │ │ ├── s_loading.png │ │ ├── s_loading.png.meta │ │ ├── s_none.png │ │ ├── s_none.png.meta │ │ ├── s_picker_no.png │ │ ├── s_picker_no.png.meta │ │ ├── s_picker_yes.png │ │ ├── s_picker_yes.png.meta │ │ ├── s_shadow.png │ │ └── s_shadow.png.meta │ ├── scripts.meta │ ├── scripts │ │ ├── cxui.mainScene.ts │ │ ├── cxui.mainScene.ts.meta │ │ ├── cxui.nativeMask.ts │ │ ├── cxui.nativeMask.ts.meta │ │ ├── cxui.page.ts │ │ ├── cxui.page.ts.meta │ │ ├── cxui.pageView.ts │ │ ├── cxui.pageView.ts.meta │ │ ├── cxui.safearea.ts │ │ ├── cxui.safearea.ts.meta │ │ ├── cxui.scrollView.ts │ │ └── cxui.scrollView.ts.meta │ ├── template.meta │ └── template │ │ ├── cx.imageLabel.prefab │ │ ├── cx.imageLabel.prefab.meta │ │ ├── cx.page.prefab │ │ └── cx.page.prefab.meta ├── img.meta ├── img │ ├── btn_orange.png │ ├── btn_orange.png.meta │ ├── m_home1.png │ ├── m_home1.png.meta │ ├── m_home2.png │ ├── m_home2.png.meta │ ├── m_mine1.png │ ├── m_mine1.png.meta │ ├── m_mine2.png │ ├── m_mine2.png.meta │ ├── rank1.png │ ├── rank1.png.meta │ ├── rank2.png │ ├── rank2.png.meta │ ├── rank3.png │ └── rank3.png.meta ├── resources.meta ├── resources │ ├── banner1.png │ ├── banner1.png.meta │ ├── banner2.png │ ├── banner2.png.meta │ ├── banner3.png │ └── banner3.png.meta ├── scene.meta ├── scene │ ├── mainScene.scene │ └── mainScene.scene.meta ├── script.meta ├── script │ ├── config.ts │ ├── config.ts.meta │ ├── page.meta │ └── page │ │ ├── home.ts │ │ ├── home.ts.meta │ │ ├── pageBanner.ts │ │ ├── pageBanner.ts.meta │ │ ├── pageChild.ts │ │ ├── pageChild.ts.meta │ │ ├── pagePicker.ts │ │ ├── pagePicker.ts.meta │ │ ├── pageScrollView.ts │ │ ├── pageScrollView.ts.meta │ │ ├── pageVideo.ts │ │ ├── pageVideo.ts.meta │ │ ├── start.ts │ │ └── start.ts.meta ├── ui.meta └── ui │ ├── home.prefab │ ├── home.prefab.meta │ ├── mine.prefab │ ├── mine.prefab.meta │ ├── pageBanner.prefab │ ├── pageBanner.prefab.meta │ ├── pageChild.prefab │ ├── pageChild.prefab.meta │ ├── pagePicker.prefab │ ├── pagePicker.prefab.meta │ ├── pageScrollView.prefab │ ├── pageScrollView.prefab.meta │ ├── pageVideo.prefab │ ├── pageVideo.prefab.meta │ ├── start.prefab │ └── start.prefab.meta ├── package.json ├── profiles └── v2 │ └── packages │ ├── android.json │ ├── builder.json │ ├── cocos-service.json │ ├── device.json │ ├── engine.json │ ├── ios.json │ ├── native.json │ ├── preview.json │ ├── program.json │ └── scene.json ├── project ├── assets │ ├── assets │ │ ├── cx.prefab │ │ │ ├── config.json │ │ │ ├── import │ │ │ │ ├── 32 │ │ │ │ │ └── 32d38c52-f788-44f8-b6e8-53890d825af6.json │ │ │ │ ├── 34 │ │ │ │ │ └── 348f167f-710c-4b8c-9b87-63adbc5f3978@f9941.json │ │ │ │ ├── 58 │ │ │ │ │ └── 584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941.json │ │ │ │ ├── 59 │ │ │ │ │ └── 5907f4b0-7090-4266-82ce-b88a85e49a74@f9941.json │ │ │ │ ├── 84 │ │ │ │ │ └── 84e624e8-b14f-4ef5-8867-cc43b179bff2@f9941.json │ │ │ │ ├── 85 │ │ │ │ │ └── 85291583-c34d-4aea-9d63-e1bbeaab8368.json │ │ │ │ ├── 99 │ │ │ │ │ └── 99dba72d-3365-4300-a6b3-cbc7a332d741@f9941.json │ │ │ │ ├── 01 │ │ │ │ │ └── 01fcf8e0a.json │ │ │ │ ├── 05 │ │ │ │ │ └── 059bf95b-35d1-48c6-b935-be1423bc41ab@f9941.json │ │ │ │ ├── 08 │ │ │ │ │ └── 0871327f0.json │ │ │ │ ├── 5f │ │ │ │ │ └── 5fffa384-9ca0-4a4e-8d0c-07750b8b5e0c.json │ │ │ │ ├── 6c │ │ │ │ │ └── 6cfc5922-3049-4dc3-b943-ad79b62754bb.json │ │ │ │ ├── 7d │ │ │ │ │ └── 7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941.json │ │ │ │ ├── a3 │ │ │ │ │ └── a34f1ee6-66c8-4ebc-a1d5-e67cf02981fb@f9941.json │ │ │ │ ├── b7 │ │ │ │ │ └── b75f295b-153f-4147-b5cb-abe1c0371fee@f9941.json │ │ │ │ ├── b9 │ │ │ │ │ └── b994b487-8cae-43ac-abfc-57584686d976@f9941.json │ │ │ │ ├── e0 │ │ │ │ │ └── e0c075bf-922a-400b-ba33-c5a3cead2b82@f9941.json │ │ │ │ ├── e3 │ │ │ │ │ └── e3b52bb7-1217-459e-8db8-dc485e24ad91@f9941.json │ │ │ │ ├── e4 │ │ │ │ │ └── e46d2d74-d301-43b0-a0c7-c82b558297d0@f9941.json │ │ │ │ ├── e6 │ │ │ │ │ └── e65c7265-d427-4eee-b1c1-af76082632ec.json │ │ │ │ └── ee │ │ │ │ │ └── eec5716c-2f55-4a2e-a1b8-fdb78284b125@f9941.json │ │ │ └── index.js │ │ ├── main │ │ │ ├── config.json │ │ │ ├── import │ │ │ │ ├── 27 │ │ │ │ │ └── 272a8bdc-517b-4554-ba44-1c6f7f3e8456.json │ │ │ │ └── fd │ │ │ │ │ └── fd8ec536-a354-4a17-9c74-4f3883c378c8.json │ │ │ └── index.js │ │ ├── resources │ │ │ ├── config.json │ │ │ ├── import │ │ │ │ ├── 71 │ │ │ │ │ └── 7101f089-a11f-4b14-abc1-92037e4c9275@f9941.json │ │ │ │ ├── 78 │ │ │ │ │ └── 788de6e5-d68e-4d64-b425-9a33fb184595@f9941.json │ │ │ │ ├── 03 │ │ │ │ │ └── 0355f3ad3.json │ │ │ │ ├── 07 │ │ │ │ │ └── 079ab863-f375-44c3-a1f1-f341273bf9a3@f9941.json │ │ │ │ └── 0f │ │ │ │ │ └── 0f0356ddc.json │ │ │ └── index.js │ │ └── ui │ │ │ ├── config.json │ │ │ ├── import │ │ │ ├── 29 │ │ │ │ └── 29bd2427-c75b-4a38-9f8f-2f534d63cac7.json │ │ │ ├── 38 │ │ │ │ └── 38ca63c5-65a2-4ec8-8558-dc351913671e.json │ │ │ ├── 39 │ │ │ │ └── 398767c5-1d02-447b-a800-d9a7c3ec9990.json │ │ │ ├── 55 │ │ │ │ └── 55e01f73-301f-4819-bc74-71216eb56aa6.json │ │ │ ├── 58 │ │ │ │ └── 584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941.json │ │ │ ├── 02 │ │ │ │ └── 02592d9f4.json │ │ │ ├── 05 │ │ │ │ └── 054fc3d47.json │ │ │ ├── 0a │ │ │ │ └── 0a32dfd21.json │ │ │ ├── 0b │ │ │ │ └── 0b368afea.json │ │ │ ├── 1a │ │ │ │ └── 1ac38b8b-e1a2-4dc9-a4f8-0fdd7d45aaf3.json │ │ │ ├── 7d │ │ │ │ └── 7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941.json │ │ │ ├── ac │ │ │ │ └── ace5540d-3273-4b22-bc82-d9f9281cf56a.json │ │ │ ├── bd │ │ │ │ └── bda4381d-47bc-4b3e-9770-d8fe7bd83dd8@f9941.json │ │ │ └── cc │ │ │ │ └── cc933fe3-f218-4226-869f-91545b573a79.json │ │ │ └── index.js │ ├── jsb-adapter │ │ ├── jsb-builtin.js │ │ └── jsb-engine.js │ ├── main.js │ └── src │ │ ├── application.js │ │ ├── chunks │ │ └── bundle.js │ │ ├── cocos-js │ │ └── cc.js │ │ ├── import-map.json │ │ ├── settings.json │ │ └── system.bundle.js ├── boot │ ├── boot.js │ ├── project.manifest │ └── version.manifest ├── cxdemo.android │ ├── app │ │ ├── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── ic_launcher-web.png │ │ ├── libs │ │ │ └── armeabi-v7a │ │ │ │ └── libcocos.so │ │ ├── proguard-rules.pro │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── video_pause.png │ │ │ │ ├── video_play.png │ │ │ │ └── video_stop.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── video_pause.png │ │ │ │ ├── video_play.png │ │ │ │ └── video_stop.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── video_pause.png │ │ │ │ ├── video_play.png │ │ │ │ └── video_stop.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── video_pause.png │ │ │ │ ├── video_play.png │ │ │ │ └── video_stop.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── video_pause.png │ │ │ │ ├── video_play.png │ │ │ │ └── video_stop.png │ │ │ ├── drawable │ │ │ │ └── launch_image.png │ │ │ ├── layout │ │ │ │ ├── mask_view.xml │ │ │ │ └── video_action_view.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── cx3 │ │ │ └── blank │ │ │ ├── demo │ │ │ ├── AppActivity.java │ │ │ └── PermsissionClass.java │ │ │ └── sdk │ │ │ ├── JsIntf.java │ │ │ ├── system │ │ │ └── SystemIntf.java │ │ │ └── video │ │ │ ├── VideoIntf.java │ │ │ └── VideoView.java │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── libcc │ │ ├── AndroidManifest.xml │ │ ├── build.gradle │ │ └── proguard-rules.pro │ ├── local.properties │ └── settings.gradle ├── cxdemo.ios │ ├── Classes │ │ ├── jsIntf-ios.mm │ │ ├── jsIntf-mac.mm │ │ ├── system │ │ │ ├── systemIntf.h │ │ │ └── systemIntf.mm │ │ └── video │ │ │ ├── videoImpl.h │ │ │ ├── videoImpl.mm │ │ │ ├── videoIntf.h │ │ │ └── videoIntf.mm │ ├── cx3-demo.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcuserdata │ │ │ │ └── blank.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ ├── cx3-demo Mac.xcscheme │ │ │ │ └── cx3-demo iOS.xcscheme │ │ └── xcuserdata │ │ │ └── blank.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── ios │ │ ├── AppController.h │ │ ├── AppController.mm │ │ ├── Base.lproj │ │ │ └── LaunchScreen.storyboard │ │ ├── Info.plist │ │ ├── LaunchImage.png │ │ ├── Prefix.pch │ │ ├── ViewController.h │ │ ├── ViewController.mm │ │ ├── main.m │ │ └── service │ │ │ ├── SDKWrapper.h │ │ │ └── SDKWrapper.m │ └── mac │ │ ├── AppController.h │ │ ├── AppController.mm │ │ ├── Info.plist │ │ ├── LaunchImage.png │ │ ├── Prefix.pch │ │ ├── UserConfigMac.debug.xcconfig │ │ ├── UserConfigMac.release.xcconfig │ │ ├── ViewController.h │ │ ├── ViewController.mm │ │ ├── gfx_tests.entitlements │ │ └── main.m ├── statics │ ├── 1.mp4 │ ├── video_pause.png │ ├── video_play.png │ └── video_stop.png └── update.js ├── settings └── v2 │ └── packages │ ├── builder.json │ ├── cocos-service.json │ ├── device.json │ ├── engine.json │ ├── program.json │ └── project.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | #/////////////////////////// 3 | # Cocos Creator 3D Project 4 | #/////////////////////////// 5 | build/ 6 | library/ 7 | local/ 8 | native 9 | temp/ 10 | 11 | #////////////////////////// 12 | # NPM 13 | #////////////////////////// 14 | node_modules/ 15 | 16 | #////////////////////////// 17 | # VSCode 18 | #////////////////////////// 19 | .vscode/ 20 | 21 | #////////////////////////// 22 | # WebStorm 23 | #////////////////////////// 24 | .idea/ 25 | 26 | .gradle/ 27 | *.iml -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Latest 7 | DisableBuildSystemDeprecationWarning 8 | 9 | PreviewsEnabled 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildIntermediatesPath 8 | cocos3.1-libs/Intermediates.noindex 9 | CustomBuildLocationType 10 | RelativeToDerivedData 11 | CustomBuildProductsPath 12 | cocos3.1-libs/Products 13 | DerivedDataLocationStyle 14 | Default 15 | IssueFilterStyle 16 | ShowActiveSchemeOnly 17 | LiveSourceIssuesEnabled 18 | 19 | ShowSharedSchemesAutomaticallyEnabled 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-ios.xcodeproj/xcuserdata/blank.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | cocos3 iOS.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 46916BBC264CCEF4000C7B53 16 | 17 | primary 18 | 19 | 20 | 46916D11264CD362000C7B53 21 | 22 | primary 23 | 24 | 25 | 46916E52264CD4B0000C7B53 26 | 27 | primary 28 | 29 | 30 | C0436D9181584B92A7E37006 31 | 32 | primary 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger() 5 | 6 | defaultConfig { 7 | minSdkVersion PROP_MIN_SDK_VERSION 8 | targetSdkVersion PROP_TARGET_SDK_VERSION 9 | versionCode 1 10 | versionName "1.0" 11 | } 12 | 13 | sourceSets.main { 14 | aidl.srcDir "../java/src" 15 | java.srcDir "../java/src" 16 | manifest.srcFile "AndroidManifest.xml" 17 | } 18 | 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | compileOptions { 26 | sourceCompatibility JavaVersion.VERSION_1_8 27 | targetCompatibility JavaVersion.VERSION_1_8 28 | } 29 | } 30 | 31 | dependencies { 32 | implementation fileTree(include: ['*.jar'], dir: '../java/libs') 33 | } 34 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/libs/com.android.vending.expansion.zipfile.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-libcc/libs/com.android.vending.expansion.zipfile.jar -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/libs/okhttp-3.12.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-libcc/libs/okhttp-3.12.7.jar -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/libs/okio-1.15.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-libcc/libs/okio-1.15.0.jar -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/btn_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/btn_outline.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/edit_focus.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/edit_gray.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/edit_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/edit_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-libcc/res/drawable/launch_image.png -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/values-zh-rCN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 完成 5 | 下一个 6 | 搜索 7 | 前往 8 | 发送 9 | 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #00000000 5 | #ffffff 6 | #f7f7f7 7 | #f0f0f0 8 | #d0d0d0 9 | #e0e0e0 10 | #000000 11 | #333333 12 | #444444 13 | #777777 14 | #999999 15 | #ff0000 16 | #e51300 17 | #ff6900 18 | #0000ff 19 | #009ecf 20 | #41a9b6 21 | #333b73 22 | #1d2241 23 | #00ff00 24 | #ffff00 25 | #fff000 26 | 27 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16sp 5 | 6 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Done 5 | Next 6 | Search 7 | Go 8 | Send 9 | 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/src/com/cocos/lib/CocosJavascriptJavaBridge.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016 Chukong Technologies Inc. 3 | * Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package com.cocos.lib; 25 | 26 | public class CocosJavascriptJavaBridge { 27 | public static native int evalString(String value); 28 | } 29 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/src/com/cocos/lib/GlobalObject.java: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | package com.cocos.lib; 25 | 26 | import android.app.Activity; 27 | 28 | public class GlobalObject { 29 | private static Activity sActivity = null; 30 | 31 | public static void setActivity(Activity activity) { 32 | GlobalObject.sActivity = activity; 33 | } 34 | 35 | public static Activity getActivity() { 36 | return GlobalObject.sActivity; 37 | } 38 | } -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/src/cx/NativeIntf.java: -------------------------------------------------------------------------------- 1 | package cx; 2 | 3 | import com.cocos.lib.CocosHelper; 4 | import com.cocos.lib.CocosJavascriptJavaBridge; 5 | 6 | import cx.mask.MaskIntf; 7 | import cx.sys.SysIntf; 8 | 9 | public class NativeIntf 10 | { 11 | public interface JsInterface 12 | { 13 | String call(NativeParams params); 14 | } 15 | 16 | private static JsInterface jsInterface = null; 17 | public static void setJsIntf(JsInterface jsInterface) 18 | { 19 | NativeIntf.jsInterface = jsInterface; 20 | } 21 | 22 | public static String call(String classname, String fname, String params) 23 | { 24 | NativeParams nativeParams = new NativeParams(classname, fname, params.split("#@#")); 25 | if (classname.equals("cx.sys")) 26 | return SysIntf.ins().call(nativeParams); 27 | 28 | if (classname.equals("cx.mask")) 29 | return MaskIntf.ins().call(nativeParams); 30 | 31 | if (jsInterface != null) 32 | return jsInterface.call(nativeParams); 33 | 34 | return ""; 35 | } 36 | 37 | public static void callJs(final String classname, final int v1, final String v2) 38 | { 39 | CocosHelper.runOnGameThread(new Runnable() 40 | { 41 | @Override 42 | public void run() 43 | { 44 | CocosJavascriptJavaBridge.evalString("cx.native.androidCallback('" + classname + "'," + v1 + ",'" + v2 + "')"); 45 | } 46 | }); 47 | } 48 | 49 | // CocosActivity.app.runOnUiThread(new Runnable() 50 | // { 51 | // @Override 52 | // public void run() 53 | // { 54 | // 55 | // } 56 | // }); 57 | } 58 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-libcc/src/cx/NativeParams.java: -------------------------------------------------------------------------------- 1 | package cx; 2 | 3 | public class NativeParams 4 | { 5 | public class NativeParam 6 | { 7 | private String param; 8 | 9 | public NativeParam(String param) 10 | { 11 | this.param = param; 12 | } 13 | 14 | public String asString() 15 | { 16 | return param; 17 | } 18 | 19 | public int asInt() 20 | { 21 | return Integer.parseInt(param); 22 | } 23 | 24 | public float asFloat() 25 | { 26 | return Float.parseFloat(param); 27 | } 28 | 29 | public boolean asBool() 30 | { 31 | return Boolean.parseBoolean(param); 32 | } 33 | } 34 | 35 | public String classname; 36 | public String fname; 37 | private String[] params; 38 | public NativeParams(String classname, String fname, String[] params) 39 | { 40 | this.classname = classname; 41 | this.fname = fname; 42 | this.params = params; 43 | } 44 | 45 | public NativeParam at(int index) 46 | { 47 | return new NativeParam(params[index]); 48 | } 49 | 50 | @Override 51 | public String toString() 52 | { 53 | String s = ""; 54 | for (int i=0; i 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Latest 7 | DisableBuildSystemDeprecationWarning 8 | 9 | PreviewsEnabled 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildIntermediatesPath 8 | Build/Intermediates.noindex 9 | CustomBuildLocationType 10 | RelativeToDerivedData 11 | CustomBuildProductsPath 12 | Build/Products 13 | DerivedDataLocationStyle 14 | Default 15 | IssueFilterStyle 16 | ShowActiveSchemeOnly 17 | LiveSourceIssuesEnabled 18 | 19 | ShowSharedSchemesAutomaticallyEnabled 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/xcuserdata/blank.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/cocos3-mac.xcodeproj/xcuserdata/blank.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ALL_BUILD.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | ZERO_CHECK.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 2 16 | 17 | cocos3 Mac.xcscheme_^#shared#^_ 18 | 19 | orderHint 20 | 1 21 | 22 | cx3-demo-desktop.xcscheme_^#shared#^_ 23 | 24 | orderHint 25 | 0 26 | 27 | 28 | SuppressBuildableAutocreation 29 | 30 | 46916FCB264D6D28000C7B53 31 | 32 | primary 33 | 34 | 35 | E77C5DADC6FB43A28EC868C1 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/libcocos3 Mac.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/libcocos3 Mac.a -------------------------------------------------------------------------------- /cx-framework3.1/cocos3-libs/libcocos3 iOS.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cocos3-libs/libcocos3 iOS.a -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/Game.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2018 Xiamen Yaji Software Co., Ltd. 3 | 4 | http://www.cocos.com 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated engine source code (the "Software"), a limited, 8 | worldwide, royalty-free, non-assignable, revocable and non-exclusive license 9 | to use Cocos Creator solely to develop games on your target platforms. You shall 10 | not use Cocos Creator software for developing other software or tools that's 11 | used for developing games. You are not granted to publish, distribute, 12 | sublicense, and/or sell copies of Cocos Creator. 13 | 14 | The software or tools in this License Agreement are licensed, not sold. 15 | Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | #pragma once 26 | 27 | #include "platform/Application.h" 28 | /** 29 | @brief The cocos2d Application. 30 | 31 | The reason for implement as private inheritance is to hide some interface call by Director. 32 | */ 33 | class Game : public cc::Application 34 | { 35 | public: 36 | /** 37 | * width and height in logical pixel unit 38 | */ 39 | Game(int width, int height); 40 | virtual bool init() override; 41 | virtual void onPause() override; 42 | virtual void onResume() override; 43 | }; 44 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxCreator.cpp: -------------------------------------------------------------------------------- 1 | #include "cxCreator.h" 2 | #include "cxIntf.h" 3 | 4 | #if CC_PLATFORM == CC_PLATFORM_MAC_IOS 5 | #include "cxMask/cxMaskIntf.h" 6 | #endif 7 | 8 | #if CC_PLATFORM != CC_PLATFORM_ANDROID 9 | #include "cxSys/cxSysIntf.h" 10 | #endif 11 | 12 | NativeIntfClass* NativeCreator::createNativeClass(std::string classname) 13 | { 14 | if (classname == "cx") 15 | return CxIntf::ins(); 16 | 17 | #if CC_PLATFORM == CC_PLATFORM_MAC_IOS 18 | 19 | if (classname == "cx.mask") 20 | return CxMaskIntf::ins(); 21 | 22 | #endif 23 | 24 | 25 | #if CC_PLATFORM != CC_PLATFORM_ANDROID 26 | 27 | if (classname == "cx.sys") 28 | return CxSysIntf::ins(); 29 | 30 | return createAppNativeClass(classname); 31 | 32 | #endif 33 | 34 | return nullptr; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxCreator.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cxDefine.h" 5 | 6 | #if CC_PLATFORM != CC_PLATFORM_ANDROID 7 | extern NativeIntfClass* createAppNativeClass(std::string classname); 8 | #endif 9 | 10 | class NativeCreator 11 | { 12 | public: 13 | static NativeIntfClass* createNativeClass(std::string classname); 14 | }; 15 | 16 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxDefine.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cocos/base/Value.h" 5 | 6 | typedef std::function DataCallback; 7 | 8 | class NativeIntfClass 9 | { 10 | public: 11 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback){ return nullptr; }; 12 | }; 13 | 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxIntf.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cxIntf.h" 3 | 4 | DataCallback CxIntf::m_cxCallback = NULL; 5 | 6 | static CxIntf* s_sharedCxIntf = nullptr; 7 | CxIntf* CxIntf::ins() 8 | { 9 | if (!s_sharedCxIntf) 10 | s_sharedCxIntf = new CxIntf(); 11 | return s_sharedCxIntf; 12 | } 13 | 14 | std::string CxIntf::call(std::string fname, cc::ValueVector params, const DataCallback& callback) 15 | { 16 | if (fname == "encode" || fname == "decode" || fname == "md5") 17 | return params.at(0).asString(); 18 | return ""; 19 | } 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxIntf.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cocos/base/Value.h" 5 | #include "cxDefine.h" 6 | 7 | class CxIntf : public NativeIntfClass 8 | { 9 | public: 10 | static CxIntf* ins(); 11 | 12 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback) override; 13 | 14 | static DataCallback m_cxCallback; 15 | 16 | private: 17 | 18 | 19 | }; 20 | 21 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxJsb.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "cocos/bindings/jswrapper/SeApi.h" 4 | 5 | extern se::Object* __jsb_NativeCreator_proto; 6 | extern se::Class* __jsb_NativeCreator_class; 7 | 8 | bool js_register_NativeCreator(se::Object* obj); 9 | bool register_all_cx(se::Object* obj); 10 | SE_DECLARE_FUNC(js_cx_NativeCreator_createNativeClass); 11 | 12 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxMask/cxMaskIntf.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cxDefine.h" 5 | 6 | class CxMaskIntf : public NativeIntfClass 7 | { 8 | public: 9 | static CxMaskIntf* ins(); 10 | 11 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback) override; 12 | 13 | void addNativeView(std::string maskName, void* view); 14 | bool hasNativeView(std::string maskName, void* view); 15 | 16 | private: 17 | 18 | 19 | }; 20 | 21 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxMask/cxMaskView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CxMaskView : UIView 4 | 5 | @property (strong, nonatomic) UIView* contentView; 6 | 7 | @end 8 | 9 | 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxMask/cxMaskView.mm: -------------------------------------------------------------------------------- 1 | 2 | #import "cxMaskView.h" 3 | 4 | #define pop_height 200 5 | #define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] 6 | 7 | @implementation CxMaskView 8 | 9 | 10 | - (id)initWithFrame:(CGRect)frame 11 | { 12 | self = [super initWithFrame:frame]; 13 | self.userInteractionEnabled = false; 14 | self.clipsToBounds = true; 15 | 16 | CGSize screen = [[UIScreen mainScreen] bounds].size; 17 | self.contentView = [[UIView alloc] initWithFrame:CGRectMake(-frame.origin.x, -frame.origin.y, screen.width, screen.height)]; 18 | self.contentView.userInteractionEnabled = false; 19 | [self addSubview:self.contentView]; 20 | 21 | return self; 22 | } 23 | 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /cx-framework3.1/cx-native/cxSys/cxSysIntf.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cxDefine.h" 5 | #include "cocos/bindings/event/EventDispatcher.h" 6 | 7 | class CxSysIntf : public NativeIntfClass 8 | { 9 | public: 10 | static CxSysIntf* ins(); 11 | 12 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback) override; 13 | 14 | static DataCallback m_cxSysCallback; 15 | 16 | private: 17 | 18 | void restartForUpdate(cc::CustomEvent evt); 19 | 20 | 21 | 22 | }; 23 | 24 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "22cfb89f-3438-44eb-88b0-297381f69f2f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.adapt.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "bf4f5efb-16d9-4df5-9888-f51aa81eaa26", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.define.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | 3 | import native from "./cx.native"; 4 | import picker from "./cx.picker"; 5 | import res from "./cx.res"; 6 | import script from "./cx.script"; 7 | import serv from "./cx.serv"; 8 | import sys from "./cx.sys"; 9 | import ui from "./cx.ui"; 10 | import utils from "./cx.utils"; 11 | 12 | class cx extends ui 13 | { 14 | static native = native; 15 | static picker = picker; 16 | static res = res; 17 | static script = script; 18 | static serv = serv; 19 | static sys = sys; 20 | static utils = utils; 21 | 22 | static config = sys.config; 23 | static os = sys.os; 24 | 25 | static log = console.log; 26 | 27 | static init(mainScene: cc.Component) 28 | { 29 | console.log("..... cx init (framework: " + sys.version + ") ....."); 30 | 31 | sys.init(); 32 | ui.init(mainScene); 33 | 34 | if (!sys.config.debug) 35 | this.log = function(){}; 36 | 37 | console.log("..... cx init success (sw:" + ui.sw + ", sh:" + ui.sh + ") ....."); 38 | } 39 | } 40 | 41 | window.cx = window.cx || cx; 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.define.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "09fe4b13-8d70-477f-9e93-1b76c37ba3cb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.native.ts: -------------------------------------------------------------------------------- 1 | import sys from './cx.sys'; 2 | 3 | export default class native 4 | { 5 | static androidIntf: any = {}; 6 | static undefinedIns = {call:function(){return "";}}; 7 | 8 | static ins (name: string): any 9 | { 10 | if (!sys.os.native) 11 | return this.undefinedIns; 12 | 13 | //非android使用jsb c++ 14 | if (!sys.os.android || name == "cx") 15 | return typeof cxnative != "undefined" && cxnative.NativeCreator.createNativeClass(name) || this.undefinedIns; 16 | 17 | //android使用jsb.reflection 18 | if (!jsb.reflection) 19 | { 20 | console.log("!!!!! error: jsb.reflection is undefined !!!!!"); 21 | return this.undefinedIns; 22 | } 23 | 24 | var intf = this.androidIntf[name]; 25 | if (!intf) 26 | { 27 | intf = this.androidIntf[name] = {}; 28 | intf.name = name, 29 | intf.call = (function(fname: string, params: any[], callback?: Function) 30 | { 31 | intf.callback = callback; 32 | return jsb.reflection.callStaticMethod("cx/NativeIntf", "call", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", 33 | intf.name, fname, params && params.join("#@#") || ""); 34 | }).bind(intf); 35 | } 36 | return intf; 37 | } 38 | 39 | static androidCallback (name: string, v1: number, v2: string) 40 | { 41 | var intf = native.androidIntf[name]; 42 | intf && intf.callback && intf.callback(v1, v2); 43 | } 44 | } -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.native.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b97ea3bc-cb32-4fc9-bfb4-a52dab76bdf9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.picker.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "9cbbf9f1-7d7e-42bf-a933-8313aa01f1f4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.res.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "6d1e5209-0e30-42db-bd36-eff1ab6988eb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.script.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | 3 | export default 4 | { 5 | pageView: 6 | { 7 | initAutoScroll(page: cc.Component, viewName: string, autoScrollSeconds: number, loop: boolean, callback?: Function) 8 | { 9 | var script: any = page.getComponent("cxui.pageView") || page.addComponent("cxui.pageView"); 10 | script.initAutoScroll.apply(script, arguments); 11 | } 12 | }, 13 | 14 | scrollView: 15 | { 16 | //添加增量加载数据功能 17 | initDeltaInsert (page: cc.Component, viewName: string, queryHandler: Function) 18 | { 19 | var script: any = page.getComponent("cxui.scrollView") || page.addComponent("cxui.scrollView"); 20 | script.initDeltaInsert.apply(script, arguments); 21 | }, 22 | 23 | //增量加载数据完成时调用 24 | overDeltaInsert (page: cc.Component, noMoreData: boolean) 25 | { 26 | var script: any = page.getComponent("cxui.scrollView"); 27 | script && script.overDeltaInsert.call(script, noMoreData); 28 | }, 29 | 30 | //添加下拉刷新功能 31 | initDropRefresh (page: cc.Component, viewName: string, refreshHandler: Function) 32 | { 33 | var script: any = page.getComponent("cxui.scrollView") || page.addComponent("cxui.scrollView"); 34 | script.initDropRefresh.apply(script, arguments); 35 | }, 36 | 37 | //下拉刷新结束时调用 38 | overDropRefresh (page: cc.Component) 39 | { 40 | var script: any = page.getComponent("cxui.scrollView"); 41 | script && script.overDropRefresh.call(script); 42 | } 43 | }, 44 | 45 | nativeMask: 46 | { 47 | init (page: cc.Component, node: Node, x: number, y: number, width: number, height: number): string 48 | { 49 | var script: any = page.getComponent("cxui.nativeMask") || page.addComponent("cxui.nativeMask"); 50 | return script.init.apply(script, arguments); 51 | } 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.script.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "5e9f4376-ed55-457b-89dc-0ae3be5c97d3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.serv.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "fed014af-56c5-416f-bbfb-22589be96888", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.sys.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f6d0649e-e9e2-4656-a22e-f20c516aabc3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.ui.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "65f94526-5d8d-4385-a552-f58a5c951f3f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/core/cx.utils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "55c7bd0f-7a87-4083-bc6c-5b37f6f384f9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "37024b87-866b-43c6-b0af-bb7bfd49b947", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true, 12 | "bundleName": "cx.prefab" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/cx.alert.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "e65c7265-d427-4eee-b1c1-af76082632ec", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.alert" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/cx.confirm.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "6cfc5922-3049-4dc3-b943-ad79b62754bb", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.confirm" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/cx.hint.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "85291583-c34d-4aea-9d63-e1bbeaab8368", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.hint" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/cx.picker.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "32d38c52-f788-44f8-b6e8-53890d825af6", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.picker" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/cx.pickerScrollView.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "5fffa384-9ca0-4a4e-8d0c-07750b8b5e0c", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.pickerScrollView" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_al.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_al.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_al.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a", 14 | "displayName": "s_al", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "584cd881-9cb2-40cb-876c-5ab8c6d49139" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941", 37 | "displayName": "s_al", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 18, 49 | "height": 32, 50 | "rawWidth": 18, 51 | "rawHeight": 32, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_alert_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_alert_bg.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_alert_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_alert_ok.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_border.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_color.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_color.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "5907f4b0-7090-4266-82ce-b88a85e49a74", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "5907f4b0-7090-4266-82ce-b88a85e49a74@6c48a", 14 | "displayName": "s_color", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "5907f4b0-7090-4266-82ce-b88a85e49a74" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "5907f4b0-7090-4266-82ce-b88a85e49a74@f9941", 37 | "displayName": "s_color", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 48, 49 | "height": 48, 50 | "rawWidth": 48, 51 | "rawHeight": 48, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "5907f4b0-7090-4266-82ce-b88a85e49a74@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "5907f4b0-7090-4266-82ce-b88a85e49a74@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_confirm_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_confirm_bg.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_confirm_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_confirm_no.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_confirm_yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_confirm_yes.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_loading.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_none.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_none.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_picker_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_picker_no.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_picker_yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_picker_yes.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx-framework3.1/cx/prefab/s_shadow.png -------------------------------------------------------------------------------- /cx-framework3.1/cx/prefab/s_shadow.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "e46d2d74-d301-43b0-a0c7-c82b558297d0", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "e46d2d74-d301-43b0-a0c7-c82b558297d0@6c48a", 14 | "displayName": "s_shadow", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "e46d2d74-d301-43b0-a0c7-c82b558297d0" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "e46d2d74-d301-43b0-a0c7-c82b558297d0@f9941", 37 | "displayName": "s_shadow", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 11, 49 | "height": 36, 50 | "rawWidth": 11, 51 | "rawHeight": 36, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "e46d2d74-d301-43b0-a0c7-c82b558297d0@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "e46d2d74-d301-43b0-a0c7-c82b558297d0@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "dd121554-2c98-4301-b414-f9c1fc7d31bb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.mainScene.ts: -------------------------------------------------------------------------------- 1 | 2 | import {_decorator, Component, setDisplayStats} from 'cc'; 3 | const {ccclass} = _decorator; 4 | 5 | @ccclass('cxui.MainScene') 6 | class CxuiMainScene extends Component 7 | { 8 | onLoad () 9 | { 10 | setDisplayStats(false); 11 | cx.init(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.mainScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "78daf419-e3cc-4573-a291-c945d1cb2218", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.nativeMask.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "e70ce5e6-573a-4fab-ad1c-dace0edc0024", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.page.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ad451481-a8b8-4d3a-9f12-4a138481898b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.pageView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "dae97eb7-eaab-4ae6-936c-ca644ba3152c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.safearea.ts: -------------------------------------------------------------------------------- 1 | 2 | import {_decorator, Component, Widget, UITransform, CCInteger} from 'cc'; 3 | const {ccclass, property} = _decorator; 4 | 5 | @ccclass('cxui.safearea') 6 | class CxuiSafearea extends Component 7 | { 8 | @property 9 | private safeHeight = 170; 10 | 11 | @property 12 | private safeWidgetTop = 0; 13 | 14 | @property 15 | private safeWidgetBottom = 0; 16 | 17 | onLoad () 18 | { 19 | if (cx.os.native && !cx.os.android && cx.sh/cx.sw > 1.8) 20 | { 21 | if (this.safeHeight) 22 | { 23 | var uiTransform = this.node.getComponent(UITransform); 24 | uiTransform?.setContentSize(uiTransform.width, this.safeHeight); 25 | } 26 | 27 | if (this.safeWidgetTop || this.safeWidgetBottom) 28 | { 29 | var widget = this.node.getComponent(Widget); 30 | if (widget) 31 | { 32 | widget.top = this.safeWidgetTop; 33 | widget.bottom = this.safeWidgetBottom; 34 | } 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.safearea.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "de62e376-60c0-4f13-9de6-89796aaf27c1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/scripts/cxui.scrollView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a1949e42-d9be-4b29-b399-a81b156b6916", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/template.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "269169f6-e49d-4566-b590-9923cad1c901", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/template/cx.imageLabel.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "2caacf7d-7295-4bfe-878d-15e3cc35306a", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.imageLabel" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx-framework3.1/cx/template/cx.page.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "cd447ecc-8b0e-433f-b598-c063640d1409", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.page" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo.apk -------------------------------------------------------------------------------- /cx3-demo/assets/cx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "a537ab7e-3301-4615-b2ff-a64b9bbcf527", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "22cfb89f-3438-44eb-88b0-297381f69f2f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.adapt.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "bf4f5efb-16d9-4df5-9888-f51aa81eaa26", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.define.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | 3 | import native from "./cx.native"; 4 | import picker from "./cx.picker"; 5 | import res from "./cx.res"; 6 | import script from "./cx.script"; 7 | import serv from "./cx.serv"; 8 | import sys from "./cx.sys"; 9 | import ui from "./cx.ui"; 10 | import utils from "./cx.utils"; 11 | 12 | class cx extends ui 13 | { 14 | static native = native; 15 | static picker = picker; 16 | static res = res; 17 | static script = script; 18 | static serv = serv; 19 | static sys = sys; 20 | static utils = utils; 21 | 22 | static config = sys.config; 23 | static os = sys.os; 24 | 25 | static log = console.log; 26 | 27 | static init(mainScene: cc.Component) 28 | { 29 | console.log("..... cx init (framework: " + sys.version + ") ....."); 30 | 31 | sys.init(); 32 | ui.init(mainScene); 33 | 34 | if (!sys.config.debug) 35 | this.log = function(){}; 36 | 37 | console.log("..... cx init success (sw:" + ui.sw + ", sh:" + ui.sh + ") ....."); 38 | } 39 | } 40 | 41 | window.cx = window.cx || cx; 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.define.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "09fe4b13-8d70-477f-9e93-1b76c37ba3cb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.native.ts: -------------------------------------------------------------------------------- 1 | import sys from './cx.sys'; 2 | 3 | export default class native 4 | { 5 | static androidIntf: any = {}; 6 | static undefinedIns = {call:function(){return "";}}; 7 | 8 | static ins (name: string): any 9 | { 10 | if (!sys.os.native) 11 | return this.undefinedIns; 12 | 13 | //非android使用jsb c++ 14 | if (!sys.os.android || name == "cx") 15 | return typeof cxnative != "undefined" && cxnative.NativeCreator.createNativeClass(name) || this.undefinedIns; 16 | 17 | //android使用jsb.reflection 18 | if (!jsb.reflection) 19 | { 20 | console.log("!!!!! error: jsb.reflection is undefined !!!!!"); 21 | return this.undefinedIns; 22 | } 23 | 24 | var intf = this.androidIntf[name]; 25 | if (!intf) 26 | { 27 | intf = this.androidIntf[name] = {}; 28 | intf.name = name, 29 | intf.call = (function(fname: string, params: any[], callback?: Function) 30 | { 31 | intf.callback = callback; 32 | return jsb.reflection.callStaticMethod("cx/NativeIntf", "call", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", 33 | intf.name, fname, params && params.join("#@#") || ""); 34 | }).bind(intf); 35 | } 36 | return intf; 37 | } 38 | 39 | static androidCallback (name: string, v1: number, v2: string) 40 | { 41 | var intf = native.androidIntf[name]; 42 | intf && intf.callback && intf.callback(v1, v2); 43 | } 44 | } -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.native.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b97ea3bc-cb32-4fc9-bfb4-a52dab76bdf9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.picker.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "9cbbf9f1-7d7e-42bf-a933-8313aa01f1f4", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.res.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "6d1e5209-0e30-42db-bd36-eff1ab6988eb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.script.ts: -------------------------------------------------------------------------------- 1 | import * as cc from 'cc'; 2 | 3 | export default 4 | { 5 | pageView: 6 | { 7 | initAutoScroll(page: cc.Component, viewName: string, autoScrollSeconds: number, loop: boolean, callback?: Function) 8 | { 9 | var script: any = page.getComponent("cxui.pageView") || page.addComponent("cxui.pageView"); 10 | script.initAutoScroll.apply(script, arguments); 11 | } 12 | }, 13 | 14 | scrollView: 15 | { 16 | //添加增量加载数据功能 17 | initDeltaInsert (page: cc.Component, viewName: string, queryHandler: Function) 18 | { 19 | var script: any = page.getComponent("cxui.scrollView") || page.addComponent("cxui.scrollView"); 20 | script.initDeltaInsert.apply(script, arguments); 21 | }, 22 | 23 | //增量加载数据完成时调用 24 | overDeltaInsert (page: cc.Component, noMoreData: boolean) 25 | { 26 | var script: any = page.getComponent("cxui.scrollView"); 27 | script && script.overDeltaInsert.call(script, noMoreData); 28 | }, 29 | 30 | //添加下拉刷新功能 31 | initDropRefresh (page: cc.Component, viewName: string, refreshHandler: Function) 32 | { 33 | var script: any = page.getComponent("cxui.scrollView") || page.addComponent("cxui.scrollView"); 34 | script.initDropRefresh.apply(script, arguments); 35 | }, 36 | 37 | //下拉刷新结束时调用 38 | overDropRefresh (page: cc.Component) 39 | { 40 | var script: any = page.getComponent("cxui.scrollView"); 41 | script && script.overDropRefresh.call(script); 42 | } 43 | }, 44 | 45 | nativeMask: 46 | { 47 | init (page: cc.Component, node: Node, x: number, y: number, width: number, height: number): string 48 | { 49 | var script: any = page.getComponent("cxui.nativeMask") || page.addComponent("cxui.nativeMask"); 50 | return script.init.apply(script, arguments); 51 | } 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.script.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "5e9f4376-ed55-457b-89dc-0ae3be5c97d3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.serv.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "fed014af-56c5-416f-bbfb-22589be96888", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.sys.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f6d0649e-e9e2-4656-a22e-f20c516aabc3", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.ui.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "65f94526-5d8d-4385-a552-f58a5c951f3f", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/core/cx.utils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "55c7bd0f-7a87-4083-bc6c-5b37f6f384f9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "37024b87-866b-43c6-b0af-bb7bfd49b947", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true, 12 | "bundleName": "cx.prefab" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/cx.alert.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "e65c7265-d427-4eee-b1c1-af76082632ec", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.alert" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/cx.confirm.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "6cfc5922-3049-4dc3-b943-ad79b62754bb", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.confirm" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/cx.hint.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "85291583-c34d-4aea-9d63-e1bbeaab8368", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.hint" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/cx.picker.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "32d38c52-f788-44f8-b6e8-53890d825af6", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.picker" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/cx.pickerScrollView.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "5fffa384-9ca0-4a4e-8d0c-07750b8b5e0c", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.pickerScrollView" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_al.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_al.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_al.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a", 14 | "displayName": "s_al", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "584cd881-9cb2-40cb-876c-5ab8c6d49139" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941", 37 | "displayName": "s_al", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 18, 49 | "height": 32, 50 | "rawWidth": 18, 51 | "rawHeight": 32, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_alert_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_alert_bg.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_alert_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_alert_ok.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_border.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_color.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_confirm_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_confirm_bg.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_confirm_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_confirm_no.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_confirm_yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_confirm_yes.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_loading.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_none.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_none.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_picker_no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_picker_no.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_picker_yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_picker_yes.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/prefab/s_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/cx/prefab/s_shadow.png -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "dd121554-2c98-4301-b414-f9c1fc7d31bb", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.mainScene.ts: -------------------------------------------------------------------------------- 1 | 2 | import {_decorator, Component, setDisplayStats} from 'cc'; 3 | const {ccclass} = _decorator; 4 | 5 | @ccclass('cxui.MainScene') 6 | class CxuiMainScene extends Component 7 | { 8 | onLoad () 9 | { 10 | setDisplayStats(false); 11 | cx.init(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.mainScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "78daf419-e3cc-4573-a291-c945d1cb2218", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.nativeMask.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "e70ce5e6-573a-4fab-ad1c-dace0edc0024", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.page.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "ad451481-a8b8-4d3a-9f12-4a138481898b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.pageView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "dae97eb7-eaab-4ae6-936c-ca644ba3152c", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.safearea.ts: -------------------------------------------------------------------------------- 1 | 2 | import {_decorator, Component, Widget, UITransform, CCInteger} from 'cc'; 3 | const {ccclass, property} = _decorator; 4 | 5 | @ccclass('cxui.safearea') 6 | class CxuiSafearea extends Component 7 | { 8 | @property 9 | private safeHeight = 170; 10 | 11 | @property 12 | private safeWidgetTop = 0; 13 | 14 | @property 15 | private safeWidgetBottom = 0; 16 | 17 | onLoad () 18 | { 19 | if (cx.os.native && !cx.os.android && cx.sh/cx.sw > 1.8) 20 | { 21 | if (this.safeHeight) 22 | { 23 | var uiTransform = this.node.getComponent(UITransform); 24 | uiTransform?.setContentSize(uiTransform.width, this.safeHeight); 25 | } 26 | 27 | if (this.safeWidgetTop || this.safeWidgetBottom) 28 | { 29 | var widget = this.node.getComponent(Widget); 30 | if (widget) 31 | { 32 | widget.top = this.safeWidgetTop; 33 | widget.bottom = this.safeWidgetBottom; 34 | } 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.safearea.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "de62e376-60c0-4f13-9de6-89796aaf27c1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/scripts/cxui.scrollView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "a1949e42-d9be-4b29-b399-a81b156b6916", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/template.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "269169f6-e49d-4566-b590-9923cad1c901", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/template/cx.imageLabel.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "2caacf7d-7295-4bfe-878d-15e3cc35306a", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.imageLabel" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/cx/template/cx.page.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "cd447ecc-8b0e-433f-b598-c063640d1409", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "cx.page" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/img.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "64351758-840c-4ca3-bfcf-effa409cf58b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/btn_orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/btn_orange.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_home1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/m_home1.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_home1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "76ec2281-4788-4c40-aacd-82abc107e80b", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "76ec2281-4788-4c40-aacd-82abc107e80b@6c48a", 14 | "displayName": "m_home1", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "76ec2281-4788-4c40-aacd-82abc107e80b" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "76ec2281-4788-4c40-aacd-82abc107e80b@f9941", 37 | "displayName": "m_home1", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 38, 49 | "height": 40, 50 | "rawWidth": 38, 51 | "rawHeight": 40, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "76ec2281-4788-4c40-aacd-82abc107e80b@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "76ec2281-4788-4c40-aacd-82abc107e80b@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_home2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/m_home2.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_home2.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "50f32365-940d-4a54-8b4c-29fd9a9394b4", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "50f32365-940d-4a54-8b4c-29fd9a9394b4@6c48a", 14 | "displayName": "m_home2", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "50f32365-940d-4a54-8b4c-29fd9a9394b4" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "50f32365-940d-4a54-8b4c-29fd9a9394b4@f9941", 37 | "displayName": "m_home2", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 38, 49 | "height": 40, 50 | "rawWidth": 38, 51 | "rawHeight": 40, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "50f32365-940d-4a54-8b4c-29fd9a9394b4@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "50f32365-940d-4a54-8b4c-29fd9a9394b4@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_mine1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/m_mine1.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_mine1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "4919b80d-4b8f-46ae-b2a9-4cfad3180579", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "4919b80d-4b8f-46ae-b2a9-4cfad3180579@6c48a", 14 | "displayName": "m_mine1", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "4919b80d-4b8f-46ae-b2a9-4cfad3180579" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "4919b80d-4b8f-46ae-b2a9-4cfad3180579@f9941", 37 | "displayName": "m_mine1", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 38, 49 | "height": 40, 50 | "rawWidth": 38, 51 | "rawHeight": 40, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "4919b80d-4b8f-46ae-b2a9-4cfad3180579@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "4919b80d-4b8f-46ae-b2a9-4cfad3180579@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_mine2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/m_mine2.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/m_mine2.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9@6c48a", 14 | "displayName": "m_mine2", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9@f9941", 37 | "displayName": "m_mine2", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 38, 49 | "height": 40, 50 | "rawWidth": 38, 51 | "rawHeight": 40, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "50eb6f34-f5ba-4070-a4fb-1e507e19e6d9@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/rank1.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5@6c48a", 14 | "displayName": "rank1", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5@f9941", 37 | "displayName": "rank1", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 69, 49 | "height": 74, 50 | "rawWidth": 69, 51 | "rawHeight": 74, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "9807a2bf-2bcd-4629-bdc2-1a563b12a5d5@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/rank2.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank2.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "c4e16a19-f101-4475-939d-b8e026f6474e", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "c4e16a19-f101-4475-939d-b8e026f6474e@6c48a", 14 | "displayName": "rank2", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "c4e16a19-f101-4475-939d-b8e026f6474e" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "c4e16a19-f101-4475-939d-b8e026f6474e@f9941", 37 | "displayName": "rank2", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 69, 49 | "height": 75, 50 | "rawWidth": 69, 51 | "rawHeight": 75, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "c4e16a19-f101-4475-939d-b8e026f6474e@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "c4e16a19-f101-4475-939d-b8e026f6474e@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/img/rank3.png -------------------------------------------------------------------------------- /cx3-demo/assets/img/rank3.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.21", 3 | "importer": "image", 4 | "imported": true, 5 | "uuid": "bfbbc12a-07df-4aec-b347-579c265f9e50", 6 | "files": [ 7 | ".png", 8 | ".json" 9 | ], 10 | "subMetas": { 11 | "6c48a": { 12 | "importer": "texture", 13 | "uuid": "bfbbc12a-07df-4aec-b347-579c265f9e50@6c48a", 14 | "displayName": "rank3", 15 | "id": "6c48a", 16 | "name": "texture", 17 | "userData": { 18 | "wrapModeS": "repeat", 19 | "wrapModeT": "repeat", 20 | "minfilter": "linear", 21 | "magfilter": "linear", 22 | "mipfilter": "none", 23 | "anisotropy": 0, 24 | "isUuid": true, 25 | "imageUuidOrDatabaseUri": "bfbbc12a-07df-4aec-b347-579c265f9e50" 26 | }, 27 | "ver": "1.0.21", 28 | "imported": true, 29 | "files": [ 30 | ".json" 31 | ], 32 | "subMetas": {} 33 | }, 34 | "f9941": { 35 | "importer": "sprite-frame", 36 | "uuid": "bfbbc12a-07df-4aec-b347-579c265f9e50@f9941", 37 | "displayName": "rank3", 38 | "id": "f9941", 39 | "name": "spriteFrame", 40 | "userData": { 41 | "trimType": "auto", 42 | "trimThreshold": 1, 43 | "rotated": false, 44 | "offsetX": 0, 45 | "offsetY": 0, 46 | "trimX": 0, 47 | "trimY": 0, 48 | "width": 71, 49 | "height": 78, 50 | "rawWidth": 71, 51 | "rawHeight": 78, 52 | "borderTop": 0, 53 | "borderBottom": 0, 54 | "borderLeft": 0, 55 | "borderRight": 0, 56 | "packable": true, 57 | "isUuid": true, 58 | "imageUuidOrDatabaseUri": "bfbbc12a-07df-4aec-b347-579c265f9e50@6c48a", 59 | "atlasUuid": "" 60 | }, 61 | "ver": "1.0.9", 62 | "imported": true, 63 | "files": [ 64 | ".json" 65 | ], 66 | "subMetas": {} 67 | } 68 | }, 69 | "userData": { 70 | "hasAlpha": true, 71 | "type": "sprite-frame", 72 | "redirect": "bfbbc12a-07df-4aec-b347-579c265f9e50@f9941" 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /cx3-demo/assets/resources.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "3ae5e34a-9cc7-4877-b3d5-f2cec8e22984", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "isBundle": true, 10 | "bundleName": "resources", 11 | "priority": 8, 12 | "compressionType": {}, 13 | "isRemoteBundle": {} 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /cx3-demo/assets/resources/banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/resources/banner1.png -------------------------------------------------------------------------------- /cx3-demo/assets/resources/banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/resources/banner2.png -------------------------------------------------------------------------------- /cx3-demo/assets/resources/banner3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/assets/resources/banner3.png -------------------------------------------------------------------------------- /cx3-demo/assets/scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "e1b06b55-a5ea-40e2-9d6b-90255e8026a9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/scene/mainScene.scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "scene", 4 | "imported": true, 5 | "uuid": "272a8bdc-517b-4554-ba44-1c6f7f3e8456", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": {} 11 | } 12 | -------------------------------------------------------------------------------- /cx3-demo/assets/script.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "971e8982-3c64-4686-97db-4113a6458f2b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/config.ts: -------------------------------------------------------------------------------- 1 | import {game} from 'cc'; 2 | 3 | game.appConfig = 4 | { 5 | debug: true, //调试模式输出log 6 | startPage: "ui/start", //开始页 7 | autoRemoveLaunchImage: false, //自动移除启动屏,为false时,在适当时候自行调用cx.removeLaunchImage() 8 | 9 | designSizeMinWidth: 0, //最小设计宽度,如果适配后的宽度小于该值,则适配模式自动变为宽度适配 10 | designSizeMinHeight: 750, //最小设计高度,如果适配后的高度小于该值,则适配模式自动变为高度适配 11 | 12 | slideEventDisabled: false, //禁止子页面右划 13 | pageActionDisabled: false, //禁止页面显示和退出动画 14 | androidkeyDisabled: false, //禁止android返回键 15 | 16 | hintFontSize: 36, //cx.hint 文字尺寸 17 | hintFontColor: "ff0000", //cx.hint 文字颜色 18 | hintFontOutlineWidth: 1, //cx.hint 文字描边宽度 19 | hintFontOutlineColor: "777777", //cx.hint 文字描边颜色 20 | } -------------------------------------------------------------------------------- /cx3-demo/assets/script/config.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "f5b81b3d-0795-4ccd-b16f-b1f49e2e7bfd", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "0a21e66a-e568-45bf-a7d1-68fd523bced5", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/home.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "5be63ed4-375a-425e-baa1-f1a369d91bfd", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageBanner.ts: -------------------------------------------------------------------------------- 1 | import {_decorator, Component, Node, PageView, UITransform} from 'cc'; 2 | const {ccclass} = _decorator; 3 | 4 | @ccclass('pageBanner') 5 | class pageBanner extends Component 6 | { 7 | data: any; 8 | 9 | start () 10 | { 11 | cx.gn(this, "spClose").setTouchCallback(this, cx.closePage); 12 | 13 | this.scheduleOnce(this.loadBanner, 0.5); 14 | 15 | cx.script.pageView.initAutoScroll(this, "viewBanner", 2, true, this.onBannerClick); //自动循环滚动 16 | } 17 | 18 | loadBanner () 19 | { 20 | var data = [ 21 | {id:1, img: "banner1"}, 22 | {id:2, img: "banner2"}, 23 | {id:3, img: "banner3"} 24 | ]; 25 | 26 | var pageView: PageView = cx.gn(this, "viewBanner").getComponent(PageView)!; 27 | pageView.removeAllPages(); 28 | for (var i in data) 29 | { 30 | var node: Node = new Node(); 31 | node.pro().dataIndex = i; 32 | node.addComponent(UITransform).setContentSize(pageView.node.getContentSize()); 33 | pageView.addPage(node); 34 | cx.res.setImageFromRes(node, data[i].img); 35 | } 36 | 37 | this.data = data; 38 | } 39 | 40 | onBannerClick (page: Node) 41 | { 42 | cx.hint("banner id: " + this.data[page.pro().dataIndex].id); 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageBanner.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "b8721887-5481-415b-9f31-719ecd12703b", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageChild.ts: -------------------------------------------------------------------------------- 1 | import {_decorator, Component} from 'cc'; 2 | const {ccclass} = _decorator; 3 | 4 | @ccclass('pageChild') 5 | class PageChild extends Component 6 | { 7 | start () 8 | { 9 | // 关闭页面的两种方式: 10 | cx.gn(this, "spClose").setTouchCallback(this, cx.closePage); 11 | cx.gn(this, "spClosePage").setTouchCallback(this, this.close); 12 | 13 | cx.gn(this, "spAlert").setTouchCallback(this, () => { cx.alert("pageChild alert"); }); 14 | 15 | //cx.showPage可以直接放在setTouchCallback里 16 | cx.gn(this, "spShowPage").setTouchCallback(this, cx.showPage, "ui/pageChild"); 17 | } 18 | 19 | close () 20 | { 21 | //do something 22 | cx.closePage(this); 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageChild.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "64ed96d0-f2c5-41de-a2d1-d64c0313d5c0", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pagePicker.ts: -------------------------------------------------------------------------------- 1 | import {_decorator, Component, Node, Label} from 'cc'; 2 | const {ccclass} = _decorator; 3 | 4 | @ccclass('pagePicker') 5 | class PagePicker extends Component 6 | { 7 | start () 8 | { 9 | cx.gn(this, "spClose").setTouchCallback(this, cx.closePage); 10 | cx.gn(this, "spYearMonth").setTouchCallback(this, this.showPicker); 11 | cx.gn(this, "spMonthDay").setTouchCallback(this, this.showPicker); 12 | cx.gn(this, "spYearMonthDay").setTouchCallback(this, this.showPicker); 13 | cx.gn(this, "spHourMinute").setTouchCallback(this, this.showPicker); 14 | cx.gn(this, "spString").setTouchCallback(this, this.showPicker); 15 | cx.gn(this, "spObject").setTouchCallback(this, this.showPicker); 16 | } 17 | 18 | showPicker (sender: Node) 19 | { 20 | switch (sender.name) 21 | { 22 | case "spYearMonth": cx.picker.createYearMonth(this, this.pickerCallback, cx.picker.year(-1, 1)); break; 23 | case "spMonthDay": cx.picker.createMonthDay(this, this.pickerCallback, cx.picker.month(1), 2, null, 28); break; 24 | case "spYearMonthDay": cx.picker.createYearMonthDay(this, this.pickerCallback, cx.picker.year(-3, 0)); break; 25 | case "spHourMinute": cx.picker.createHourMinute(this, this.pickerCallback); break; 26 | case "spString": cx.picker.create(this, this.pickerCallback, [{data:["A", "B"], index:1}]); break; 27 | case "spObject": cx.picker.create(this, this.pickerCallback, [{data:[{id:1, name:"A"}, {id:2, name:"B"}], display:"name", index:1}]); break; 28 | } 29 | } 30 | 31 | pickerCallback () 32 | { 33 | var s = "\n"; 34 | for (var i in arguments) 35 | s += JSON.stringify(arguments[i]) + "\n"; 36 | cx.gn(this, "lblSelected").getComponent(Label)!.string = s; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pagePicker.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "d2e4ba14-2bbd-4fa8-8bbb-7afebacf7520", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageScrollView.ts: -------------------------------------------------------------------------------- 1 | import {_decorator, Component, Node, Label, color} from 'cc'; 2 | const {ccclass} = _decorator; 3 | 4 | @ccclass('pageScrollView') 5 | class pageScrollView extends Component 6 | { 7 | dataCount: number = 0; 8 | isRefresh: boolean = false; 9 | 10 | start () 11 | { 12 | cx.gn(this, "spClose").setTouchCallback(this, cx.closePage); 13 | 14 | cx.script.scrollView.initDeltaInsert(this, "view", this.queryData); //设置增量新增数据到view的能力 15 | cx.script.scrollView.initDropRefresh(this, "view", this.refreshData); //设置下拉刷新能力 16 | 17 | this.queryData(); 18 | } 19 | 20 | refreshData () 21 | { 22 | this.dataCount = 0; 23 | this.isRefresh = true; 24 | this.queryData(); 25 | } 26 | 27 | queryData () 28 | { 29 | //模拟从服务器取数据,0.5秒后获得数据 30 | cx.log("queryData " + this.dataCount); 31 | this.scheduleOnce(this.queryDataOk, 0.5); 32 | } 33 | 34 | queryDataOk () 35 | { 36 | cx.log("queryDataOk..."); 37 | if (this.isRefresh) 38 | { 39 | this.isRefresh = false; 40 | cx.gn(this, "content").removeAllChildren(); 41 | } 42 | 43 | for (var i = 0; i < 20; i++) 44 | this.createPanel(); 45 | 46 | cx.script.scrollView.overDeltaInsert(this, this.dataCount > 200); //结束新增能力,模拟总数量200个 47 | cx.script.scrollView.overDropRefresh(this); //结束本次下拉刷新 48 | } 49 | 50 | 51 | createPanel () 52 | { 53 | var node = new Node(); 54 | node.addComponent(Label).string = ++this.dataCount + ""; 55 | node.getComponent(Label)!.color = color("555555"); 56 | 57 | var panel = cx.createPanel("ffffffff", cx.sw, 100); 58 | panel.addChild(node); 59 | 60 | cx.gn(this, "content").addChild(panel); 61 | } 62 | } 63 | 64 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageScrollView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "4a8b8222-d7ed-44bb-ab1d-115087a9c42a", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/pageVideo.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "25316e67-d064-4a6d-9233-a5e08407e7f9", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/start.ts: -------------------------------------------------------------------------------- 1 | import {_decorator, Component, Node, color, Label} from 'cc'; 2 | const {ccclass} = _decorator; 3 | 4 | @ccclass('start') 5 | class Start extends Component 6 | { 7 | tabs!: any[]; 8 | onLoad () 9 | { 10 | console.log("Start onLoad..."); 11 | 12 | this.node.slideEventDisabled = true; 13 | this.node.pageActionDisabled = true; 14 | this.node.androidBackHandler = "closeApp"; 15 | 16 | this.tabs = [ 17 | {name: "ui/home"}, 18 | {name: "ui/mine"} 19 | ]; 20 | 21 | cx.gn(this, "tabHome").setTouchCallback(this, this.showTab, 0); 22 | cx.gn(this, "tabMine").setTouchCallback(this, this.showTab, 1); 23 | 24 | this.showTab(undefined, 0); 25 | } 26 | 27 | showTab (sender: any, index: any) 28 | { 29 | for (var i in this.tabs) 30 | { 31 | var tab: any = this.tabs[i]; 32 | if (tab.page) 33 | tab.page.active = i == index; 34 | else if (i == index) 35 | { 36 | tab.page = {}; 37 | cx.addPage(cx.gn(this, "layerPage"), tab.name, undefined, (page:Node) => { this.tabs[index].page = page; }); 38 | } 39 | } 40 | var children = cx.gn(this, "layerTab").children; 41 | for (var i in children) 42 | { 43 | var child:Node = children[i]; 44 | child.getChildByName("img")!.active = i == index; 45 | child.getChildByName("imgGray")!.active = i != index; 46 | child.getChildByName("label")!.getComponent(Label)!.color = color(i == index ? "22A1FF" : "777777"); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /cx3-demo/assets/script/page/start.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "4.0.22", 3 | "importer": "typescript", 4 | "imported": true, 5 | "uuid": "dd9c6400-5e86-497a-a04b-226cafc786c2", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": {} 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "importer": "directory", 4 | "imported": true, 5 | "uuid": "78a8d1d9-ccd6-4669-ba41-6d100ed491a1", 6 | "files": [], 7 | "subMetas": {}, 8 | "userData": { 9 | "compressionType": {}, 10 | "isRemoteBundle": {}, 11 | "isBundle": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/home.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "38ca63c5-65a2-4ec8-8558-dc351913671e", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "home" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/mine.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "1ac38b8b-e1a2-4dc9-a4f8-0fdd7d45aaf3", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "mine" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/pageBanner.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "ace5540d-3273-4b22-bc82-d9f9281cf56a", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "pageBanner" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/pageChild.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "29bd2427-c75b-4a38-9f8f-2f534d63cac7", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "pageChild" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/pagePicker.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "55e01f73-301f-4819-bc74-71216eb56aa6", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "pagePicker" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/pageScrollView.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "cc933fe3-f218-4226-869f-91545b573a79", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "pageScrollView" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/pageVideo.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "398767c5-1d02-447b-a800-d9a7c3ec9990", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "pageVideo" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/assets/ui/start.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.27", 3 | "importer": "prefab", 4 | "imported": true, 5 | "uuid": "ffc43389-ad4e-475f-b319-0f9374b71d9f", 6 | "files": [ 7 | ".json" 8 | ], 9 | "subMetas": {}, 10 | "userData": { 11 | "syncNodeName": "start" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /cx3-demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cx3-demo", 3 | "type": "3d", 4 | "uuid": "4a7e5b10-3fd5-4013-abdc-753aa3b87e69", 5 | "version": "3.1.1", 6 | "creator": { 7 | "version": "3.1.1" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/android.json: -------------------------------------------------------------------------------- 1 | { 2 | "options": { 3 | "android": { 4 | "packageName": "com.cocos.android", 5 | "apiLevel": "android-26", 6 | "appABIs": [ 7 | "armeabi-v7a" 8 | ], 9 | "useDebugKeystore": true, 10 | "keystorePath": "", 11 | "keystorePassword": "", 12 | "keystoreAlias": "", 13 | "keystoreAliasPassword": "", 14 | "appBundle": false, 15 | "androidInstant": false, 16 | "remoteUrl": "", 17 | "orientation": { 18 | "portrait": true, 19 | "upsideDown": false, 20 | "landscapeRight": false, 21 | "landscapeLeft": false 22 | }, 23 | "renderBackEnd": { 24 | "vulkan": false, 25 | "gles3": true, 26 | "gles2": false 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/cocos-service.json: -------------------------------------------------------------------------------- 1 | { 2 | "options": { 3 | "web-desktop": { 4 | "configID": "389e04", 5 | "services": [] 6 | }, 7 | "ios": { 8 | "configID": "389e04", 9 | "services": [] 10 | }, 11 | "mac": { 12 | "configID": "389e04", 13 | "services": [] 14 | }, 15 | "android": { 16 | "configID": "389e04", 17 | "services": [] 18 | } 19 | }, 20 | "builder-options": { 21 | "configID": "389e04", 22 | "services": [] 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/device.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.1" 3 | } 4 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/engine.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.5" 3 | } 4 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/ios.json: -------------------------------------------------------------------------------- 1 | { 2 | "options": { 3 | "ios": { 4 | "orientation": { 5 | "portrait": true, 6 | "landscapeLeft": false, 7 | "landscapeRight": false 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/native.json: -------------------------------------------------------------------------------- 1 | { 2 | "options": { 3 | "ios": { 4 | "polyfills": { 5 | "asyncFunctions": false 6 | }, 7 | "encrypted": false, 8 | "xxteaKey": "daQAcUmotNh4cSQ3", 9 | "compressZip": false, 10 | "makeAfterBuild": false 11 | }, 12 | "mac": { 13 | "polyfills": { 14 | "asyncFunctions": false 15 | }, 16 | "encrypted": false, 17 | "xxteaKey": "daQAcUmotNh4cSQ3", 18 | "compressZip": false, 19 | "makeAfterBuild": false 20 | }, 21 | "android": { 22 | "polyfills": { 23 | "asyncFunctions": true 24 | }, 25 | "encrypted": false, 26 | "xxteaKey": "daQAcUmotNh4cSQ3", 27 | "compressZip": false, 28 | "makeAfterBuild": false 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/preview.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.1", 3 | "general": { 4 | "start_scene": "272a8bdc-517b-4554-ba44-1c6f7f3e8456" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /cx3-demo/profiles/v2/packages/scene.json: -------------------------------------------------------------------------------- 1 | { 2 | "gizmos-infos": { 3 | "is2D": true, 4 | "is3DIcon": false, 5 | "iconSize": 2, 6 | "gridVisible": true, 7 | "gridColor": [ 8 | 150, 9 | 150, 10 | 150, 11 | 255 12 | ], 13 | "isIconGizmo3D": false, 14 | "iconGizmoSize": 2, 15 | "isGridVisible": true 16 | }, 17 | "camera-infos": { 18 | "f46876e4-e81b-4931-b493-6d367be385e7": { 19 | "position": { 20 | "x": 374.99999999999994, 21 | "y": 667, 22 | "z": 5000 23 | }, 24 | "rotation": { 25 | "x": 0, 26 | "y": 0, 27 | "z": 0, 28 | "w": 1 29 | }, 30 | "viewCenter": { 31 | "x": 0, 32 | "y": 0, 33 | "z": 0 34 | } 35 | } 36 | }, 37 | "camera-uuids": [ 38 | "f46876e4-e81b-4931-b493-6d367be385e7" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/01/01fcf8e0a.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.Texture2D","data":[["2,2,0,0,0,0",["7dj5uJT9FMn6OrOOx83tfK"]],["2,2,0,0,0,0",["05m/lbNdFIxrk1vhQjvEGr"]],["2,2,0,0,0,0",["845iTosU9O9YhnzEOxeb/y"]],["2,2,0,0,0,0",["9926ctM2VDAKazy8ejMtdB"]],["2,2,0,0,0,0",["34jxZ/cQxLjJuHY628Xzl4"]],["2,2,0,0,0,0",["58TNiBnLJAy4dsWrjG1JE5"]],["2,2,0,0,0,0",["59B/SwcJBCZoLOuIqF5Jp0"]],["2,2,0,0,0,0",["a3Tx7mZshOvKHV5nzwKYH7"]],["2,2,0,0,0,0",["b7XylbFT9BR7XLq+HANx/u"]],["2,2,0,0,0,0",["b9lLSHjK5DrKv8V1hGhtl2"]],["2,2,0,0,0,0",["e0wHW/kipAC7ozxaPOrSuC"]],["2,2,0,0,0,0",["e3tSu3EhdFno243EheJK2R"]],["2,2,0,0,0,0",["e4bS100wFDsKDHyCtVgpfQ"]],["2,2,0,0,0,0",["eexXFsL1VKLqG4/beChLEl"]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/05/059bf95b-35d1-48c6-b935-be1423bc41ab@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["05m/lbNdFIxrk1vhQjvEGr@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_confirm_no","rect":{"x":0,"y":0,"width":299,"height":88},"offset":{"x":0,"y":0},"originalSize":{"width":299,"height":88},"rotated":false,"capInsets":[0,0,0,0],"texture":"059bf95b-35d1-48c6-b935-be1423bc41ab@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/08/0871327f0.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.ImageAsset","data":[[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/34/348f167f-710c-4b8c-9b87-63adbc5f3978@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["34jxZ/cQxLjJuHY628Xzl4@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_alert_bg","rect":{"x":0,"y":0,"width":600,"height":400},"offset":{"x":0,"y":0},"originalSize":{"width":600,"height":400},"rotated":false,"capInsets":[159,139,186,158],"texture":"348f167f-710c-4b8c-9b87-63adbc5f3978@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/58/584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["58TNiBnLJAy4dsWrjG1JE5@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_al","rect":{"x":0,"y":0,"width":18,"height":32},"offset":{"x":0,"y":0},"originalSize":{"width":18,"height":32},"rotated":false,"capInsets":[0,0,0,0],"texture":"584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/59/5907f4b0-7090-4266-82ce-b88a85e49a74@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["59B/SwcJBCZoLOuIqF5Jp0@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_color","rect":{"x":0,"y":0,"width":48,"height":48},"offset":{"x":0,"y":0},"originalSize":{"width":48,"height":48},"rotated":false,"capInsets":[0,0,0,0],"texture":"5907f4b0-7090-4266-82ce-b88a85e49a74@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/5f/5fffa384-9ca0-4a4e-8d0c-07750b8b5e0c.json: -------------------------------------------------------------------------------- 1 | [1,["7dj5uJT9FMn6OrOOx83tfK@f9941"],["node","_spriteFrame","root","_content","data"],[["cc.Node",["_name","_layer","_components","_prefab","_children","_parent","_lpos"],1,9,4,2,1,5],["cc.Prefab",["_name"],2],["cc.UITransform",["node","__prefab","_contentSize","_anchorPoint"],3,1,4,5,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Layout",["_resizeMode","_layoutType","_isAlign","node","__prefab"],0,1,4],["cc.PrefabInfo",["fileId","root","asset"],2,1,1],["cc.Mask",["node","__prefab"],3,1,4],["cc.Sprite",["_sizeMode","node","__prefab","_spriteFrame"],2,1,4,6],["cc.ScrollView",["bounceDuration","brake","horizontal","node","__prefab","_content"],0,1,4,1]],[[3,0,2],[2,0,1,2,3,1],[5,0,1,2,2],[1,0,2],[0,0,4,2,3,2],[0,0,1,5,4,2,3,3],[0,0,1,5,2,3,6,3],[4,0,1,2,3,4,4],[6,0,1,1],[7,0,1,2,3,2],[8,0,1,2,3,4,5,4]],[[3,"cx.pickerScrollView"],[4,"cx.pickerScrollView",[-6],[[1,-2,[0,"15fCSwGKNA5Ikb0zSxhp16"],[5,750,400],[0,0.5,0]],[9,0,-3,[0,"4dhOV9pUZNO5lw+vOxHNpY"],0],[10,0.6,0.75,false,-5,[0,"31emUMJhhK8YdEity5dmaV"],-4]],[2,"3ex+NNeRVD5Y4ycNEQzz80",-1,0]],[5,"maskContent",33554432,1,[-9],[[1,-7,[0,"danHM7aSFBqYGJxTfWZ9bH"],[5,750,400],[0,0.5,0]],[8,-8,[0,"b6u4SfObJAHZKrOSMuVL0r"]]],[2,"97lYlBSSlHjaQcMeQxttn/",1,0]],[6,"content",33554432,2,[[1,-10,[0,"a5WylOEpRE/KKqoaKFanIC"],[5,750,400],[0,0.5,1]],[7,1,2,true,-11,[0,"9bppCMx+tCwadCZ7s3dkOl"]]],[2,"d5L13HRqNEkZkKP92/l0Zk",1,0],[1,0,400,0]]],0,[0,2,1,0,0,1,0,0,1,0,3,3,0,0,1,0,-1,2,0,0,2,0,0,2,0,-1,3,0,0,3,0,0,3,0,4,1,11],[0],[1],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/7d/7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["7dj5uJT9FMn6OrOOx83tfK@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"default_sprite_splash","rect":{"x":0,"y":0,"width":2,"height":2},"offset":{"x":0,"y":0},"originalSize":{"width":2,"height":2},"rotated":false,"capInsets":[0,0,0,0],"texture":"7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/84/84e624e8-b14f-4ef5-8867-cc43b179bff2@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["845iTosU9O9YhnzEOxeb/y@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_loading","rect":{"x":1,"y":1,"width":109,"height":109},"offset":{"x":0,"y":0},"originalSize":{"width":111,"height":111},"rotated":false,"capInsets":[0,0,0,0],"texture":"84e624e8-b14f-4ef5-8867-cc43b179bff2@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/85/85291583-c34d-4aea-9d63-e1bbeaab8368.json: -------------------------------------------------------------------------------- 1 | [1,0,["node","root","data","_parent"],[["cc.Node",["_name","_layer","_components","_prefab","_children","_parent"],1,9,4,2,1],["cc.Widget",["_alignFlags","_originalHeight","node","__prefab"],1,1,4],["cc.Prefab",["_name"],2],["cc.UITransform",["node","__prefab","_contentSize"],3,1,4,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Label",["_actualFontSize","_fontSize","_overflow","node","__prefab"],0,1,4],["cc.LabelOutline",["_width","node","__prefab","_color"],2,1,4,5],["cc.UIOpacity",["node","__prefab"],3,1,4],["cc.PrefabInfo",["fileId","root","asset"],2,1,1]],[[4,0,2],[3,0,1,2,1],[8,0,1,2,2],[2,0,2],[0,0,1,4,2,3,3],[0,0,5,4,2,3,2],[0,0,1,2,3,3],[5,0,1,2,3,4,4],[6,0,1,2,3,2],[7,0,1,1],[1,0,2,3,2],[1,0,1,2,3,3]],[[3,"cx.hint"],[4,"cx.hint",33554432,[-4],[[1,-2,[0,"c68UOAlNhN171Umca6yVvF"],[5,750,1334]],[11,21,50.4,-3,[0,"97kDr4nkFLd7Dmv1XV7sbY"]]],[2,"f08MNWi+NOz7eS0wv91jO7",-1,0]],[6,"lblHint",33554432,[[1,-5,[0,"c68UOAlNhN171Umca6yVvF"],[5,650,60]],[7,37,36,2,-6,[0,"2frm37uaJHQr0AEEaYyM82"]],[8,1,-7,[0,"d3FpDLjaVFOqcFboM3/hOg"],[4,4286019447]],[9,-8,[0,"90iLMXmrJFPa19LOw5Z5Ug"]]],[2,"5cdvl/uiBEJ757kJ4j3PQS",1,0]],[5,"nodeHint",1,[2],[[1,-9,[0,"2fSBiUj0lA1KWxAndzJzBT"],[5,650,120]],[10,18,-10,[0,"0eQiOZZQhNN4ZARCHw0a+y"]]],[2,"ae9IQBq9pCy5lwUNWB9eSY",1,0]]],0,[0,1,1,0,0,1,0,0,1,0,-1,3,0,0,2,0,0,2,0,0,2,0,0,2,0,0,3,0,0,3,0,2,1,2,3,3,10],[],[],[]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/99/99dba72d-3365-4300-a6b3-cbc7a332d741@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["9926ctM2VDAKazy8ejMtdB@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_picker_no","rect":{"x":0,"y":0,"width":299,"height":88},"offset":{"x":0,"y":0},"originalSize":{"width":299,"height":88},"rotated":false,"capInsets":[0,0,0,0],"texture":"99dba72d-3365-4300-a6b3-cbc7a332d741@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/a3/a34f1ee6-66c8-4ebc-a1d5-e67cf02981fb@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["a3Tx7mZshOvKHV5nzwKYH7@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_picker_yes","rect":{"x":0,"y":0,"width":299,"height":88},"offset":{"x":0,"y":0},"originalSize":{"width":299,"height":88},"rotated":false,"capInsets":[0,0,0,0],"texture":"a34f1ee6-66c8-4ebc-a1d5-e67cf02981fb@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/b7/b75f295b-153f-4147-b5cb-abe1c0371fee@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["b7XylbFT9BR7XLq+HANx/u@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_none","rect":{"x":47,"y":47,"width":1,"height":1},"offset":{"x":23.5,"y":-23.5},"originalSize":{"width":48,"height":48},"rotated":false,"capInsets":[0,0,0,0],"texture":"b75f295b-153f-4147-b5cb-abe1c0371fee@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/b9/b994b487-8cae-43ac-abfc-57584686d976@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["b9lLSHjK5DrKv8V1hGhtl2@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_alert_ok","rect":{"x":1,"y":0,"width":599,"height":88},"offset":{"x":0.5,"y":0},"originalSize":{"width":600,"height":88},"rotated":false,"capInsets":[0,0,0,0],"texture":"b994b487-8cae-43ac-abfc-57584686d976@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/e0/e0c075bf-922a-400b-ba33-c5a3cead2b82@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["e0wHW/kipAC7ozxaPOrSuC@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_border","rect":{"x":0,"y":0,"width":48,"height":48},"offset":{"x":0,"y":0},"originalSize":{"width":48,"height":48},"rotated":false,"capInsets":[8,9,10,15],"texture":"e0c075bf-922a-400b-ba33-c5a3cead2b82@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/e3/e3b52bb7-1217-459e-8db8-dc485e24ad91@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["e3tSu3EhdFno243EheJK2R@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_confirm_bg","rect":{"x":0,"y":0,"width":600,"height":400},"offset":{"x":0,"y":0},"originalSize":{"width":600,"height":400},"rotated":false,"capInsets":[200,141,211,168],"texture":"e3b52bb7-1217-459e-8db8-dc485e24ad91@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/e4/e46d2d74-d301-43b0-a0c7-c82b558297d0@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["e4bS100wFDsKDHyCtVgpfQ@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_shadow","rect":{"x":0,"y":0,"width":11,"height":36},"offset":{"x":0,"y":0},"originalSize":{"width":11,"height":36},"rotated":false,"capInsets":[0,0,0,0],"texture":"e46d2d74-d301-43b0-a0c7-c82b558297d0@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/import/ee/eec5716c-2f55-4a2e-a1b8-fdb78284b125@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["eexXFsL1VKLqG4/beChLEl@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_confirm_yes","rect":{"x":0,"y":0,"width":299,"height":88},"offset":{"x":0,"y":0},"originalSize":{"width":299,"height":88},"rotated":false,"capInsets":[0,0,0,0],"texture":"eec5716c-2f55-4a2e-a1b8-fdb78284b125@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/cx.prefab/index.js: -------------------------------------------------------------------------------- 1 | System.register("chunks:///_virtual/cx.prefab",[],(function(){"use strict";return{execute:function(){}}})); 2 | 3 | (function(r) { 4 | r('virtual:///prerequisite-imports/cx.prefab', 'chunks:///_virtual/cx.prefab'); 5 | })(function(mid, cid) { 6 | System.register(mid, [cid], function (_export, _context) { 7 | return { 8 | setters: [function(_m) { 9 | var _exportObj = {}; 10 | 11 | for (var _key in _m) { 12 | if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key]; 13 | } 14 | 15 | _export(_exportObj); 16 | }], 17 | execute: function () { } 18 | }; 19 | }); 20 | }); -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/main/config.json: -------------------------------------------------------------------------------- 1 | {"importBase":"import","nativeBase":"native","name":"main","deps":[],"uuids":["27KovcUXtFVLpEHG9/PoRW","fdjsU2o1RKF5x0TziDw3jI"],"paths":{"1":["db:/internal/default_renderpipeline/builtin-forward",0]},"scenes":{"db://assets/scene/mainScene.scene":0},"packs":{},"versions":{"import":[],"native":[]},"redirect":[],"debug":false,"types":["cc.RenderPipeline"]} -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/main/import/27/272a8bdc-517b-4554-ba44-1c6f7f3e8456.json: -------------------------------------------------------------------------------- 1 | [1,0,["node","_cameraComponent","scene","_parent"],[["cc.SceneAsset",["_name"],2],["cc.Scene",["_name","_children","_globals"],2,2,4],["cc.Node",["_name","_layer","_id","_children","_components","_lpos"],0,2,9,5],["cc.Node",["_name","_parent","_components","_lpos"],2,1,2,5],["cc.Camera",["_projection","_priority","_orthoHeight","_far","_clearFlags","_visibility","node","_color"],-3,1,5],["cc.UITransform",["node","__prefab","_contentSize"],3,1,4,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Canvas",["node","__prefab","_cameraComponent"],3,1,4,1],["cc.Widget",["_alignFlags","_left","_right","node","__prefab"],0,1,4],["78dafQZ48xFc6KRyUXRyyIY",["node"],3,1],["cc.SceneGlobals",["ambient","shadows","_skybox","fog"],3,4,4,4,4],["cc.AmbientInfo",[],3],["cc.ShadowsInfo",["_shadowColor"],3,5],["cc.SkyboxInfo",[],3],["cc.FogInfo",[],3]],[[6,0,2],[0,0,2],[1,0,1,2,2],[2,0,1,2,3,4,5,4],[3,0,1,2,3,2],[4,0,1,2,3,4,5,6,7,7],[5,0,1,2,1],[7,0,1,2,1],[8,0,1,2,3,4,4],[9,0,1],[10,0,1,2,3,1],[11,1],[12,0,1],[13,1],[14,1]],[[1,"mainScene"],[3,"Canvas",33554432,"ceRJ02prBJyal3TidgBTQF",[-6],[[6,-1,[0,"0dngp/9gNO34wUQjZfN/CX"],[5,750,1334]],[7,-3,[0,"3f2oTdCepERZdpmIfLsrhd"],-2],[8,21,375,375,-4,[0,"e8a+bU/8dPDbbJguUzLdoF"]],[9,-5]],[1,375,667,0]],[2,"mainScene",[1],[10,[11],[12,[4,4283190348]],[13],[14]]],[4,"Camera",1,[-7],[1,0,0,1000]],[5,0,1073741824,667,2000,6,1107296256,3,[4,4278190080]]],0,[0,0,1,0,1,4,0,0,1,0,0,1,0,0,1,0,-1,3,0,-1,4,0,2,2,1,3,2,7],[],[],[]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/main/import/fd/fd8ec536-a354-4a17-9c74-4f3883c378c8.json: -------------------------------------------------------------------------------- 1 | [1,0,0,[["RenderQueueDesc",["stages","isTransparent","sortMode"],0],["ForwardPipeline",["_flows"],3,9],["ShadowFlow",["_name","_stages"],2,9],["ShadowStage",["_name"],2],["ForwardFlow",["_name","_priority","_stages"],1,9],["ForwardStage",["_name","renderQueues"],2,9]],[[1,0,1],[2,0,1,2],[3,0,2],[4,0,1,2,3],[5,0,1,2],[0,0,2],[0,1,2,0,4]],[[0,[[1,"ShadowFlow",[[2,"ShadowStage"]]],[3,"ForwardFlow",1,[[4,"ForwardStage",[[5,["default"]],[6,true,1,["default"]]]]]]]]],0,0,[],[],[]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/config.json: -------------------------------------------------------------------------------- 1 | {"importBase":"import","nativeBase":"native","name":"resources","deps":[],"uuids":["0355f3ad3","07mrhj83VEw6Hx80EnO/mj","07mrhj83VEw6Hx80EnO/mj@6c48a","07mrhj83VEw6Hx80EnO/mj@f9941","0f0356ddc","71AfCJoR9LFKvBkgN+TJJ1","71AfCJoR9LFKvBkgN+TJJ1@6c48a","78jebl1o5NZLQlmjP7GEWV","78jebl1o5NZLQlmjP7GEWV@6c48a","71AfCJoR9LFKvBkgN+TJJ1@f9941","78jebl1o5NZLQlmjP7GEWV@f9941"],"paths":{"1":["banner3",0],"2":["banner3/texture",1,1],"3":["banner3/spriteFrame",2,1],"5":["banner2",0],"6":["banner2/texture",1,1],"7":["banner1",0],"8":["banner1/texture",1,1],"9":["banner2/spriteFrame",2,1],"10":["banner1/spriteFrame",2,1]},"scenes":{},"packs":{"0f0356ddc":["1","7","5"],"0355f3ad3":["2","8","6"]},"versions":{"import":[],"native":[]},"redirect":[],"debug":false,"types":["cc.ImageAsset","cc.Texture2D","cc.SpriteFrame"]} -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/import/03/0355f3ad3.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.Texture2D","data":[["2,2,0,0,0,0",["07mrhj83VEw6Hx80EnO/mj"]],["2,2,0,0,0,0",["78jebl1o5NZLQlmjP7GEWV"]],["2,2,0,0,0,0",["71AfCJoR9LFKvBkgN+TJJ1"]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/import/07/079ab863-f375-44c3-a1f1-f341273bf9a3@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["07mrhj83VEw6Hx80EnO/mj@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"banner3","rect":{"x":0,"y":0,"width":750,"height":350},"offset":{"x":0,"y":0},"originalSize":{"width":750,"height":350},"rotated":false,"capInsets":[0,0,0,0],"texture":"079ab863-f375-44c3-a1f1-f341273bf9a3@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/import/0f/0f0356ddc.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.ImageAsset","data":[[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/import/71/7101f089-a11f-4b14-abc1-92037e4c9275@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["71AfCJoR9LFKvBkgN+TJJ1@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"banner2","rect":{"x":0,"y":0,"width":750,"height":350},"offset":{"x":0,"y":0},"originalSize":{"width":750,"height":350},"rotated":false,"capInsets":[0,0,0,0],"texture":"7101f089-a11f-4b14-abc1-92037e4c9275@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/import/78/788de6e5-d68e-4d64-b425-9a33fb184595@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["78jebl1o5NZLQlmjP7GEWV@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"banner1","rect":{"x":0,"y":0,"width":750,"height":350},"offset":{"x":0,"y":0},"originalSize":{"width":750,"height":350},"rotated":false,"capInsets":[0,0,0,0],"texture":"788de6e5-d68e-4d64-b425-9a33fb184595@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/resources/index.js: -------------------------------------------------------------------------------- 1 | System.register("chunks:///_virtual/resources",[],(function(){"use strict";return{execute:function(){}}})); 2 | 3 | (function(r) { 4 | r('virtual:///prerequisite-imports/resources', 'chunks:///_virtual/resources'); 5 | })(function(mid, cid) { 6 | System.register(mid, [cid], function (_export, _context) { 7 | return { 8 | setters: [function(_m) { 9 | var _exportObj = {}; 10 | 11 | for (var _key in _m) { 12 | if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key]; 13 | } 14 | 15 | _export(_exportObj); 16 | }], 17 | execute: function () { } 18 | }; 19 | }); 20 | }); -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/config.json: -------------------------------------------------------------------------------- 1 | {"importBase":"import","nativeBase":"native","name":"ui","deps":["resources"],"uuids":["02592d9f4","054fc3d47","07mrhj83VEw6Hx80EnO/mj@f9941","0a32dfd21","0b368afea","1aw4uL4aJNyaT4D919Rarz","29vSQnx1tKOJ+PL1NNY8rH","38ymPFZaJOyIVY3DUZE2ce","39h2fFHQJEe6gA2afD7JmQ","49GbgNS49GrrKpTPrTGAV5","49GbgNS49GrrKpTPrTGAV5@6c48a","49GbgNS49GrrKpTPrTGAV5@f9941","5062809bpAcKT7HlB+GebZ","5062809bpAcKT7HlB+GebZ@6c48a","5062809bpAcKT7HlB+GebZ@f9941","508yNllA1KVItMKf2ak5S0","508yNllA1KVItMKf2ak5S0@6c48a","508yNllA1KVItMKf2ak5S0@f9941","554B9zMB9IGbx0cSFutWqm","58TNiBnLJAy4dsWrjG1JE5","58TNiBnLJAy4dsWrjG1JE5@6c48a","58TNiBnLJAy4dsWrjG1JE5@f9941","767CKBR4hMQKrNgqvBB+gL","767CKBR4hMQKrNgqvBB+gL@6c48a","767CKBR4hMQKrNgqvBB+gL@f9941","7dj5uJT9FMn6OrOOx83tfK","7dj5uJT9FMn6OrOOx83tfK@6c48a","7dj5uJT9FMn6OrOOx83tfK@f9941","ffxDOJrU5HX7MZD5N0tx2f","ac5VQNMnNLIryC2fkoHPVq","afxHkx8GZGsJC+n+YfITQo","afxHkx8GZGsJC+n+YfITQo@6c48a","afxHkx8GZGsJC+n+YfITQo@f9941","b7MFJ8MjNBwqr3fNq1j5dJ","b7MFJ8MjNBwqr3fNq1j5dJ@6c48a","b7MFJ8MjNBwqr3fNq1j5dJ@f9941","bdpDgdR7xLPpdw2P572D3Y","bdpDgdR7xLPpdw2P572D3Y@6c48a","bdpDgdR7xLPpdw2P572D3Y@f9941","cckz/j8hhCJoafkVRbVzp5","ffuIqPr2JI9I8dPLYGRDpD","ffuIqPr2JI9I8dPLYGRDpD@6c48a","ffuIqPr2JI9I8dPLYGRDpD@f9941"],"paths":{"5":["mine",0],"6":["pageChild",0],"7":["home",0],"8":["pageVideo",0],"18":["pagePicker",0],"28":["start",0],"29":["pageBanner",0],"39":["pageScrollView",0]},"scenes":{},"packs":{"02592d9f4":["25","12","15","22","19","9","30","33","36","40"],"0a32dfd21":["32","35","42"],"0b368afea":["11","14","17","24","28"],"054fc3d47":["26","13","16","23","20","10","31","34","37","41"]},"versions":{"import":[],"native":[]},"redirect":[2,"0"],"debug":false,"types":["cc.Prefab"]} -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/02/02592d9f4.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.ImageAsset","data":[[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]],[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0}],[0],0,[],[],[]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/05/054fc3d47.json: -------------------------------------------------------------------------------- 1 | {"type":"cc.Texture2D","data":[["2,2,0,0,0,0",["7dj5uJT9FMn6OrOOx83tfK"]],["2,2,0,0,0,0",["5062809bpAcKT7HlB+GebZ"]],["2,2,0,0,0,0",["508yNllA1KVItMKf2ak5S0"]],["2,2,0,0,0,0",["767CKBR4hMQKrNgqvBB+gL"]],["2,2,0,0,0,0",["58TNiBnLJAy4dsWrjG1JE5"]],["2,2,0,0,0,0",["49GbgNS49GrrKpTPrTGAV5"]],["2,2,0,0,0,0",["afxHkx8GZGsJC+n+YfITQo"]],["2,2,0,0,0,0",["b7MFJ8MjNBwqr3fNq1j5dJ"]],["2,2,0,0,0,0",["bdpDgdR7xLPpdw2P572D3Y"]],["2,2,0,0,0,0",["ffuIqPr2JI9I8dPLYGRDpD"]]]} 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/0a/0a32dfd21.json: -------------------------------------------------------------------------------- 1 | [1,["afxHkx8GZGsJC+n+YfITQo@6c48a","b7MFJ8MjNBwqr3fNq1j5dJ@6c48a","ffuIqPr2JI9I8dPLYGRDpD@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[[[{"name":"default_scrollbar_vertical","rect":{"x":0,"y":0,"width":15,"height":30},"offset":{"x":0,"y":0},"originalSize":{"width":15,"height":30},"rotated":false,"capInsets":[4,10,4,10],"texture":"afc47931-f066-46b0-90be-9fe61f213428@6c48a","packable":true}],[0],0,[0],[0],[0]],[[{"name":"default_panel","rect":{"x":0,"y":0,"width":20,"height":20},"offset":{"x":0,"y":0},"originalSize":{"width":20,"height":20},"rotated":false,"capInsets":[8,8,8,8],"texture":"b730527c-3233-41c2-aaf7-7cdab58f9749@6c48a","packable":true}],[0],0,[0],[0],[1]],[[{"name":"default_scrollbar_vertical_bg","rect":{"x":0,"y":0,"width":15,"height":30},"offset":{"x":0,"y":0},"originalSize":{"width":15,"height":30},"rotated":false,"capInsets":[4,10,4,10],"texture":"ffb88a8f-af62-48f4-8f1d-3cb606443a43@6c48a","packable":true}],[0],0,[0],[0],[2]]]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/58/584cd881-9cb2-40cb-876c-5ab8c6d49139@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["58TNiBnLJAy4dsWrjG1JE5@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"s_al","rect":{"x":0,"y":0,"width":18,"height":32},"offset":{"x":0,"y":0},"originalSize":{"width":18,"height":32},"rotated":false,"capInsets":[0,0,0,0],"texture":"584cd881-9cb2-40cb-876c-5ab8c6d49139@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/7d/7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["7dj5uJT9FMn6OrOOx83tfK@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"default_sprite_splash","rect":{"x":0,"y":0,"width":2,"height":2},"offset":{"x":0,"y":0},"originalSize":{"width":2,"height":2},"rotated":false,"capInsets":[0,0,0,0],"texture":"7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/import/bd/bda4381d-47bc-4b3e-9770-d8fe7bd83dd8@f9941.json: -------------------------------------------------------------------------------- 1 | [1,["bdpDgdR7xLPpdw2P572D3Y@6c48a"],["_textureSource"],["cc.SpriteFrame"],0,[{"name":"btn_orange","rect":{"x":0,"y":0,"width":315,"height":84},"offset":{"x":0,"y":0},"originalSize":{"width":315,"height":84},"rotated":false,"capInsets":[59,23,66,27],"texture":"bda4381d-47bc-4b3e-9770-d8fe7bd83dd8@6c48a","packable":true}],[0],0,[0],[0],[0]] 2 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/assets/ui/index.js: -------------------------------------------------------------------------------- 1 | System.register("chunks:///_virtual/ui",[],(function(){"use strict";return{execute:function(){}}})); 2 | 3 | (function(r) { 4 | r('virtual:///prerequisite-imports/ui', 'chunks:///_virtual/ui'); 5 | })(function(mid, cid) { 6 | System.register(mid, [cid], function (_export, _context) { 7 | return { 8 | setters: [function(_m) { 9 | var _exportObj = {}; 10 | 11 | for (var _key in _m) { 12 | if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key]; 13 | } 14 | 15 | _export(_exportObj); 16 | }], 17 | execute: function () { } 18 | }; 19 | }); 20 | }); -------------------------------------------------------------------------------- /cx3-demo/project/assets/main.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | // SystemJS support. 4 | window.self = window; 5 | require("src/system.bundle.js"); 6 | 7 | const importMapJson = jsb.fileUtils.getStringFromFile("src/import-map.json"); 8 | const importMap = JSON.parse(importMapJson); 9 | System.warmup({ 10 | importMap, 11 | importMapUrl: 'src/import-map.json', 12 | defaultHandler: (urlNoSchema) => { 13 | require(urlNoSchema.startsWith('/') ? urlNoSchema.substr(1) : urlNoSchema); 14 | }, 15 | }); 16 | 17 | System.import('./src/application.js').then(({ createApplication }) => { 18 | return createApplication({ 19 | loadJsListFile: (url) => require(url), 20 | }); 21 | }).then((application) => { 22 | return application.import('cc').then((cc) => { 23 | require('jsb-adapter/jsb-engine.js'); 24 | cc.sys.__init(); 25 | cc.macro.CLEANUP_IMAGE_CACHE = false; 26 | }).then(() => { 27 | return application.start({ 28 | settings: window._CCSettings, 29 | findCanvas: () => { 30 | var container = document.createElement('div'); 31 | var frame = document.documentElement; 32 | var canvas = window.__canvas; 33 | return { frame, canvas, container }; 34 | }, 35 | }); 36 | }); 37 | }).catch((err) => { 38 | console.error(err.toString()); 39 | }); 40 | -------------------------------------------------------------------------------- /cx3-demo/project/assets/src/chunks/bundle.js: -------------------------------------------------------------------------------- 1 | System.register([], function(_export, _context) { return { execute: function () { 2 | System.register("chunks:///_virtual/_rollupPluginModLoBabelHelpers.js",[],(function(e){"use strict";return{execute:function(){e({applyDecoratedDescriptor:function(e,i,r,n,t){var l={};Object.keys(n).forEach((function(e){l[e]=n[e]})),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0);l=r.slice().reverse().reduce((function(r,n){return n(e,i,r)||r}),l),t&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(t):void 0,l.initializer=void 0);void 0===l.initializer&&(Object.defineProperty(e,i,l),l=null);return l},defineProperty:function(e,i,r){i in e?Object.defineProperty(e,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[i]=r;return e},initializerDefineProperty:function(e,i,r,n){if(!r)return;Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}})}}})); 3 | 4 | } }; }); -------------------------------------------------------------------------------- /cx3-demo/project/assets/src/import-map.json: -------------------------------------------------------------------------------- 1 | {"imports":{"cc":"./cocos-js/cc.js"}} -------------------------------------------------------------------------------- /cx3-demo/project/assets/src/settings.json: -------------------------------------------------------------------------------- 1 | {"debug":false,"designResolution":{"width":750,"height":1334,"policy":4},"platform":"ios","bundleVers":{},"subpackages":[],"remoteBundles":[],"hasResourcesBundle":true,"hasStartSceneBundle":false,"launchScene":"db://assets/scene/mainScene.scene","jsList":[],"moduleIds":[],"renderPipeline":"fdjsU2o1RKF5x0TziDw3jI","engineModules":[],"splashScreen":{"displayRatio":0.4,"totalTime":0,"effect":"","clearColor":{"x":0.88,"y":0.88,"z":0.88,"w":1},"displayWatermark":false,"base64src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAhUlEQVRoQ+3SsQ0AIAzEwGT/pRniChTJ9H6Bzc7xs8fvPz3gd8EKVAAN9IVQIOMVYIU4UAEUyHgFWCEOVAAFMl4BVogDFUCBjFeAFeJABVAg4xVghThQARTIeAVYIQ5UAAUyXgFWiAMVQIGMV4AV4kAFUCDjFWCFOFABFMh4BVghDpwv8ACa9QAx8lijdQAAAABJRU5ErkJggg=="},"customJointTextureLayouts":[],"physics":{"physicsEngine":"","gravity":{"x":0,"y":-10,"z":0},"allowSleep":true,"sleepThreshold":0.1,"autoSimulation":true,"fixedTimeStep":0.0166667,"maxSubSteps":1,"defaultMaterial":{"friction":0.5,"rollingFriction":0.1,"spinningFriction":0.1,"restitution":0.1}},"scriptPackages":["./chunks/bundle.js"]} -------------------------------------------------------------------------------- /cx3-demo/project/boot/version.manifest: -------------------------------------------------------------------------------- 1 | {"packageUrl":"http://192.168.50.5:8080/cx-web/cx3-demo-update/assets/","remoteManifestUrl":"http://192.168.50.5:8080/cx-web/cx3-demo-update/project.manifest","remoteVersionUrl":"http://192.168.50.5:8080/cx-web/cx3-demo-update/version.manifest","version":"1.0"} -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/ic_launcher-web.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/libs/armeabi-v7a/libcocos.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/libs/armeabi-v7a/libcocos.so -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Proguard Cocos2d-x-lite for release 20 | -keep public class com.cocos.** { *; } 21 | -dontwarn com.cocos.** 22 | 23 | # Proguard Apache HTTP for release 24 | -keep class org.apache.http.** { *; } 25 | -dontwarn org.apache.http.** 26 | 27 | # Proguard okhttp for release 28 | -keep class okhttp3.** { *; } 29 | -dontwarn okhttp3.** 30 | 31 | -keep class okio.** { *; } 32 | -dontwarn okio.** 33 | 34 | # Proguard Android Webivew for release. you can comment if you are not using a webview 35 | -keep public class android.net.http.SslError 36 | -keep public class android.webkit.WebViewClient 37 | 38 | -dontwarn android.webkit.WebView 39 | -dontwarn android.net.http.SslError 40 | -dontwarn android.webkit.WebViewClient 41 | 42 | # keep anysdk for release. you can comment if you are not using anysdk 43 | -keep public class com.anysdk.** { *; } 44 | -dontwarn com.anysdk.** 45 | 46 | # amapLocation 47 | -keep class com.amap.api.location.**{*;} 48 | -keep class com.amap.api.fence.**{*;} 49 | -keep class com.loc.**{*;} 50 | -keep class com.autonavi.aps.amapapi.model.**{*;} 51 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-hdpi/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-mdpi/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xhdpi/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxhdpi/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable-xxxhdpi/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/drawable/launch_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/drawable/launch_image.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/layout/mask_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.android/app/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | cx-demo 3 | 4 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/src/cx3/blank/demo/AppActivity.java: -------------------------------------------------------------------------------- 1 | package cx3.blank.demo; 2 | 3 | import android.graphics.Color; 4 | import android.os.Build; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.view.Window; 8 | import android.view.WindowManager; 9 | 10 | import com.cocos.lib.CocosActivity; 11 | 12 | import cx3.blank.sdk.JsIntf; 13 | 14 | public class AppActivity extends CocosActivity 15 | { 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) 18 | { 19 | super.onCreate(savedInstanceState); 20 | if (!isTaskRoot()) 21 | { 22 | return; 23 | } 24 | 25 | if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) 26 | { 27 | mFrameLayout.setFitsSystemWindows(false); 28 | Window window = getWindow(); 29 | window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS 30 | | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); 31 | window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 32 | | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 33 | | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR 34 | | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); 35 | window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); 36 | window.setStatusBarColor(Color.TRANSPARENT); 37 | window.setNavigationBarColor(Color.TRANSPARENT); 38 | } 39 | 40 | app = this; 41 | JsIntf.init(); 42 | } 43 | 44 | public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] paramArrayOfInt) 45 | { 46 | PermsissionClass.onRequestPermissionsResult(requestCode, permissions, paramArrayOfInt); 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/src/cx3/blank/sdk/JsIntf.java: -------------------------------------------------------------------------------- 1 | package cx3.blank.sdk; 2 | 3 | import cx.NativeIntf; 4 | import cx.NativeParams; 5 | import cx3.blank.sdk.system.SystemIntf; 6 | import cx3.blank.sdk.video.VideoIntf; 7 | 8 | public class JsIntf 9 | { 10 | public static void init() 11 | { 12 | NativeIntf.setJsIntf(JsIntf::call); 13 | } 14 | 15 | public static String call(NativeParams params) 16 | { 17 | String classname = params.classname; 18 | if (classname.equals("system")) 19 | return SystemIntf.ins().call(params); 20 | 21 | if (classname.equals("video")) 22 | return VideoIntf.ins().call(params); 23 | 24 | return ""; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/app/src/cx3/blank/sdk/system/SystemIntf.java: -------------------------------------------------------------------------------- 1 | package cx3.blank.sdk.system; 2 | 3 | import android.Manifest; 4 | import android.content.Intent; 5 | import android.net.Uri; 6 | 7 | import com.cocos.lib.CocosActivity; 8 | 9 | import cx.NativeParams; 10 | import cx3.blank.demo.PermsissionClass; 11 | 12 | public class SystemIntf 13 | { 14 | private static SystemIntf s_sharedSystemIntf = null; 15 | public static SystemIntf ins() 16 | { 17 | if (s_sharedSystemIntf == null) 18 | s_sharedSystemIntf = new SystemIntf(); 19 | return s_sharedSystemIntf; 20 | } 21 | 22 | public String call(NativeParams params) 23 | { 24 | String fname = params.fname; 25 | if (fname.equals("callPhone")) 26 | checkPermission(fname, params); 27 | 28 | return ""; 29 | } 30 | 31 | private final int permissionRequestCode = PermsissionClass.makeRequestCode(); 32 | private final String[] permissions = { 33 | Manifest.permission.CALL_PHONE 34 | }; 35 | private void checkPermission(String fname, NativeParams params) 36 | { 37 | PermsissionClass.checkPermission(CocosActivity.app, new PermsissionClass.PermsissionInterface() 38 | { 39 | @Override 40 | public void checkPermissionCallback(int requestCode, boolean granted) 41 | { 42 | if (granted) 43 | { 44 | if (fname.equals("callPhone")) 45 | callPhone(params.at(0).asString()); 46 | } 47 | } 48 | }, permissionRequestCode, permissions); 49 | } 50 | 51 | private void callPhone(String phone) 52 | { 53 | Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phone)); 54 | try 55 | { 56 | CocosActivity.app.startActivity(intent); 57 | } 58 | catch (SecurityException e) 59 | { 60 | 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.2.0' 11 | 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | flatDir { 23 | dirs 'libs' 24 | } 25 | } 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/gradle.properties: -------------------------------------------------------------------------------- 1 | android.injected.testOnly=false 2 | 3 | # Android SDK version that will be used as the compile project 4 | PROP_COMPILE_SDK_VERSION=28 5 | 6 | # Android SDK version that will be used as the earliest version of android this application can run on 7 | PROP_MIN_SDK_VERSION=21 8 | 9 | # Android SDK version that will be used as the latest version of android this application has been tested on 10 | PROP_TARGET_SDK_VERSION=27 11 | 12 | # Android Build Tools version that will be used as the compile project 13 | PROP_BUILD_TOOLS_VERSION=28.0.2 14 | 15 | # List of CPU Archtexture to build that application with 16 | # Available architextures (armeabi-v7a | arm64-v8a | x86) 17 | # To build for multiple architexture, use the `:` between them 18 | # Example - PROP_APP_ABI=armeabi-v7a 19 | PROP_APP_ABI=armeabi-v7a 20 | 21 | # fill in sign information for release mode 22 | RELEASE_STORE_FILE=/Applications/CocosCreator/Creator/3.1.1/CocosCreator.app/Contents/Resources/tools/keystore/debug.keystore 23 | RELEASE_STORE_PASSWORD=123456 24 | RELEASE_KEY_ALIAS=debug_keystore 25 | RELEASE_KEY_PASSWORD=123456 26 | 27 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Oct 27 10:18:28 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip 7 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/libcc/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/libcc/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger() 5 | 6 | defaultConfig { 7 | minSdkVersion PROP_MIN_SDK_VERSION 8 | targetSdkVersion PROP_TARGET_SDK_VERSION 9 | versionCode 1 10 | versionName "1.0" 11 | } 12 | 13 | sourceSets.main { 14 | java.srcDir "../../../../cx-framework3.1/cocos3-libs/cocos3-libcc/src" 15 | res.srcDirs "../../../../cx-framework3.1/cocos3-libs/cocos3-libcc/res" 16 | jniLibs.srcDirs = ["../../../../cx-framework3.1/cocos3-libs/cocos3-libcc/libs"] 17 | manifest.srcFile "AndroidManifest.xml" 18 | } 19 | 20 | buildTypes { 21 | release { 22 | minifyEnabled false 23 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 24 | } 25 | } 26 | compileOptions { 27 | sourceCompatibility JavaVersion.VERSION_1_8 28 | targetCompatibility JavaVersion.VERSION_1_8 29 | } 30 | } 31 | 32 | dependencies { 33 | implementation fileTree(include: ['*.jar'], dir: '../../../../cx-framework3.1/cocos3-libs/cocos3-libcc/libs') 34 | } 35 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/libcc/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Sun Aug 02 14:51:16 CST 2020 8 | ndk.dir=/Users/blank/Library/Android/sdk/ndk-bundle 9 | sdk.dir=/Users/blank/Library/Android/sdk 10 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':libcc' 3 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/jsIntf-ios.mm: -------------------------------------------------------------------------------- 1 | #include "cxCreator.h" 2 | 3 | //#include 4 | //#include "amapLocationIntf.h" 5 | #include "systemIntf.h" 6 | #include "videoIntf.h" 7 | 8 | 9 | void vendorSdkInit(std::string classname); 10 | 11 | NativeIntfClass* createAppNativeClass(std::string classname) 12 | { 13 | vendorSdkInit(classname); 14 | 15 | // if (classname == "amapLocation") 16 | // return AmapLocationIntf::ins(); 17 | 18 | if (classname == "system") 19 | return SystemIntf::ins(); 20 | 21 | if (classname == "video") 22 | return VideoIntf::ins(); 23 | 24 | return nullptr; 25 | } 26 | 27 | static bool vendorSdkInited = false; 28 | void vendorSdkInit(std::string classname) 29 | { 30 | if (vendorSdkInited) 31 | return; 32 | vendorSdkInited = true; 33 | 34 | //[AMapServices sharedServices].apiKey = @"33492236ca1ace0d029c93755fa4d6d0"; 35 | } 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/jsIntf-mac.mm: -------------------------------------------------------------------------------- 1 | #include "cxCreator.h" 2 | 3 | NativeIntfClass* createAppNativeClass(std::string classname) 4 | { 5 | return nullptr; 6 | } 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/system/systemIntf.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cxDefine.h" 5 | 6 | class SystemIntf : public NativeIntfClass 7 | { 8 | public: 9 | static SystemIntf* ins(); 10 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback) override; 11 | 12 | private: 13 | 14 | DataCallback dataCallback; 15 | }; 16 | 17 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/system/systemIntf.mm: -------------------------------------------------------------------------------- 1 | 2 | #include "systemIntf.h" 3 | #include "AppController.h" 4 | 5 | static SystemIntf* s_sharedSystemIntf = nullptr; 6 | SystemIntf* SystemIntf::ins() 7 | { 8 | if (!s_sharedSystemIntf) 9 | s_sharedSystemIntf = new SystemIntf(); 10 | return s_sharedSystemIntf; 11 | } 12 | 13 | std::string SystemIntf::call(std::string fname, cc::ValueVector params, const DataCallback& callback) 14 | { 15 | // callPhone(std::string num); 16 | if (fname == "callPhone") 17 | { 18 | NSString* strNum = [[NSString alloc] initWithUTF8String:params.at(0).asString().c_str()]; 19 | NSMutableString* msNum = [[NSMutableString alloc] initWithFormat:@"tel:%@", strNum]; 20 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString: msNum] options:@{} completionHandler:nil]; 21 | } 22 | 23 | return ""; 24 | } 25 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/video/videoImpl.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import 4 | 5 | @interface VideoView : UIView 6 | 7 | -(void) setPosition:(float)left top:(float)top; 8 | -(void) play:(NSString*)url listenProgress:(bool)listenProgress; 9 | -(void) pause; 10 | -(void) resume; 11 | -(void) close; 12 | -(void) setFullScreen:(bool)value; 13 | -(void) seekToTime:(int)seconds; 14 | -(void) showBar:(bool)value; 15 | -(void) lockSeek:(bool)value; 16 | 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/Classes/video/videoIntf.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "cxDefine.h" 5 | 6 | class VideoIntf : public NativeIntfClass 7 | { 8 | public: 9 | static VideoIntf* ins(); 10 | 11 | virtual std::string call(std::string fname, cc::ValueVector params, const DataCallback& callback) override; 12 | 13 | void callJs(int state, std::string value); 14 | 15 | private: 16 | 17 | DataCallback dataCallback; 18 | 19 | void createInMask(std::string videoName, std::string maskName, float rectX, float rectY, float rectW, float rectH); 20 | void create(std::string videoName, float rectX, float rectY, float rectW, float rectH); 21 | void setRoundRadius(std::string videoName, float radius); 22 | void setPosition(std::string videoName, float rectX, float rectY); 23 | void removeVideo(std::string videoName); 24 | void removeInMask(std::string maskName); 25 | void play(std::string videoName, std::string url, const DataCallback& callback); 26 | void setFullScreen(std::string videoName, bool value); 27 | void pause(std::string videoName, bool hide); 28 | void resume(std::string videoName); 29 | void seekToTime(std::string videoName, int seconds); 30 | void lockSeek(std::string videoName, bool value); 31 | void showBar(std::string videoName, bool value); 32 | 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Latest 7 | DisableBuildSystemDeprecationWarning 8 | 9 | PreviewsEnabled 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/project.xcworkspace/xcuserdata/blank.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildIntermediatesPath 8 | Build/Intermediates.noindex 9 | CustomBuildLocationType 10 | RelativeToDerivedData 11 | CustomBuildProductsPath 12 | Build/Products 13 | DerivedDataLocationStyle 14 | Default 15 | IssueFilterStyle 16 | ShowActiveSchemeOnly 17 | LiveSourceIssuesEnabled 18 | 19 | ShowSharedSchemesAutomaticallyEnabled 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/xcuserdata/blank.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/cx3-demo.xcodeproj/xcuserdata/blank.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | cocos2d.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | cx3-demo Mac.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 1 16 | 17 | cx3-demo iOS.xcscheme_^#shared#^_ 18 | 19 | orderHint 20 | 0 21 | 22 | demo-mobile.xcscheme_^#shared#^_ 23 | 24 | orderHint 25 | 1 26 | 27 | 28 | SuppressBuildableAutocreation 29 | 30 | 462F68B7263EC8DA00C0C965 31 | 32 | primary 33 | 34 | 35 | 49164E491975499DBB1BBD21 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/AppController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "ViewController.h" 4 | 5 | @interface AppController : NSObject 6 | 7 | @property (strong, nonatomic) ViewController* rootViewController; //cocos root view 8 | @property (strong, nonatomic) UINavigationController* appViewController; //app root view 9 | 10 | @property (nonatomic) bool isFullScreen; 11 | 12 | + (AppController *)ins; 13 | 14 | - (void) pushViewController:(UIViewController*)vc animated:(BOOL)animated; 15 | - (void) addView:(UIView*)view; 16 | - (void) removeLaunchImage; 17 | 18 | @end 19 | 20 | 21 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | cx3.demo 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons~ipad 12 | 13 | CFBundleIdentifier 14 | $(PRODUCT_BUNDLE_IDENTIFIER) 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1.0 27 | LSRequiresIPhoneOS 28 | 29 | NSAppTransportSecurity 30 | 31 | NSAllowsArbitraryLoads 32 | 33 | 34 | NSLocationWhenInUseUsageDescription 35 | 需要定位的说明 36 | NSPhotoLibraryUsageDescription 37 | 需要打开相册的说明 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIPrerenderedIcon 41 | 42 | UIRequiredDeviceCapabilities 43 | 44 | accelerometer 45 | 46 | opengles-1 47 | 48 | 49 | UIRequiresFullScreen 50 | 51 | UIStatusBarHidden 52 | 53 | UISupportedInterfaceOrientations 54 | 55 | UIInterfaceOrientationPortrait 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.ios/ios/LaunchImage.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'HelloJavascript' target in the 'HelloJavascript' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/ViewController.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | Copyright (c) 2013-2016 Chukong Technologies Inc. 4 | Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. 5 | 6 | http://www.cocos2d-x.org 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | ****************************************************************************/ 26 | 27 | #import 28 | 29 | @interface ViewController : UIViewController 30 | { 31 | bool barHideStatus; 32 | } 33 | - (void) setBarHideStatus:(bool)hide; 34 | - (BOOL) prefersStatusBarHidden; 35 | //- (void) removeLaunchImage; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/ios/main.m: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import 4 | 5 | int main(int argc, char *argv[]) { 6 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 7 | int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); 8 | [pool release]; 9 | return retVal; 10 | } 11 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/AppController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "ViewController.h" 4 | 5 | @interface AppController : NSObject 6 | { 7 | } 8 | 9 | @property (strong, nonatomic) ViewController* viewController; 10 | 11 | + (AppController *)ins; 12 | - (void) removeLaunchImage; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | NSHumanReadableCopyright 31 | Copyright © 2019 minggo. All rights reserved. 32 | NSPrincipalClass 33 | NSApplication 34 | NSSupportsAutomaticTermination 35 | 36 | NSSupportsSuddenTermination 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/cxdemo.ios/mac/LaunchImage.png -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/UserConfigMac.debug.xcconfig: -------------------------------------------------------------------------------- 1 | // Configuration settings file format documentation can be found at: 2 | // https://help.apple.com/xcode/#/dev745c5c974 3 | 4 | #include "/Users/minggo/sourcecode/creator/3d/editor-3d/resources/3d/cocos2d-x-lite/cocos/platform/mac/CCModuleConfigMac.debug.xcconfig" 5 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/UserConfigMac.release.xcconfig: -------------------------------------------------------------------------------- 1 | // Configuration settings file format documentation can be found at: 2 | // https://help.apple.com/xcode/#/dev745c5c974 3 | 4 | #include "/Users/minggo/sourcecode/creator/3d/editor-3d/resources/3d/cocos2d-x-lite/cocos/platform/mac/CCModuleConfigMac.release.xcconfig" 5 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/ViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface ViewController : NSViewController 5 | - (instancetype)initWithSize:(NSRect)rect; 6 | @end 7 | 8 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/ViewController.mm: -------------------------------------------------------------------------------- 1 | #import "ViewController.h" 2 | #import "platform/mac/View.h" 3 | 4 | @implementation ViewController 5 | { 6 | View* _view; 7 | } 8 | 9 | - (instancetype)initWithSize:(NSRect)rect { 10 | if (self = [super init]) { 11 | _view = [[View alloc] initWithFrame:rect]; 12 | self.view = _view; 13 | } 14 | return self; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/gfx_tests.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /cx3-demo/project/cxdemo.ios/mac/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "AppController.h" 3 | 4 | int main(int argc, const char * argv[]) 5 | { 6 | id delegate = [[AppController alloc] init]; 7 | NSApplication.sharedApplication.delegate = delegate; 8 | return NSApplicationMain(argc, argv); 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/project/statics/1.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/statics/1.mp4 -------------------------------------------------------------------------------- /cx3-demo/project/statics/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/statics/video_pause.png -------------------------------------------------------------------------------- /cx3-demo/project/statics/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/statics/video_play.png -------------------------------------------------------------------------------- /cx3-demo/project/statics/video_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blanking003/cx-cocos/ee731bd51d2cc07e16fd0b06b49cf80a4f72154c/cx3-demo/project/statics/video_stop.png -------------------------------------------------------------------------------- /cx3-demo/settings/v2/packages/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.2.8", 3 | "splash-setting": { 4 | "totalTime": 0, 5 | "displayWatermark": false, 6 | "url": "/Users/blank/ccapp3/cx-framework3.1/cx/prefab/s_none.png" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /cx3-demo/settings/v2/packages/cocos-service.json: -------------------------------------------------------------------------------- 1 | { 2 | "game": { 3 | "name": "未知游戏", 4 | "app_id": "UNKNOW", 5 | "c_id": "0" 6 | }, 7 | "appConfigMaps": [ 8 | { 9 | "app_id": "UNKNOW", 10 | "config_id": "389e04" 11 | } 12 | ], 13 | "configs": [ 14 | { 15 | "app_id": "UNKNOW", 16 | "config_id": "389e04", 17 | "config_name": "Default", 18 | "config_remarks": "", 19 | "services": [] 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /cx3-demo/settings/v2/packages/device.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.1" 3 | } 4 | -------------------------------------------------------------------------------- /cx3-demo/settings/v2/packages/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.0" 3 | } 4 | -------------------------------------------------------------------------------- /cx3-demo/settings/v2/packages/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "__version__": "1.0.1", 3 | "general": { 4 | "designResolution": { 5 | "width": 750, 6 | "height": 1334 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /cx3-demo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | /* Base configuration. Do not edit this field. */ 3 | "extends": "./temp/tsconfig.cocos.json", 4 | 5 | /* Add your custom configuration here. */ 6 | 7 | "compilerOptions": 8 | { 9 | "types": [ 10 | "../cx-framework3.1/cx", 11 | ] 12 | } 13 | } 14 | --------------------------------------------------------------------------------